Cloning a mvp of sakugabooru but with mainly typescript and good libs
- fix createHandler typing issue
- add playlist feature, which are pools in sakugabooru i think anyway, playlist like on youtube
- dockploy ??
- split upload and convert into components and utils
- better style Video (fix tailwind class not working)
- add shortcut keys to navigate to /user /tag /post toggle filters / seek next/previous frame / next/previous post / focus search
- there is builtint keyboard shortcut in media chrome
- filterAndSortPosts check how it worked before and how it works now, should we filter client or server side?
- cleanup post schemas and server fn
- prevent the sidebar from blinking of rerender / Suspense somehow
- ask neo how to better handle currentUserId /src/routes/posts/$postId.tsx
const currentUserId = context.user?.id; - better handle optional props that shouldnt be optional is some cases, currentUserId in comments.tsx maybe not sure
- better ui
@tanstack/react-dbSSR crash (React 19):pnpmpatch addsgetServerSnapshottouseSyncExternalStoreto fixMissing getServerSnapshoterror during SSR.- Upstream PR: TanStack/db#1534
- Tracking issue: TanStack/db#545
- When the PR is merged and released, remove:
pnpm.patchedDependencies["@tanstack/react-db"]frompackage.jsonpatches/@tanstack__react-db.patch
- ? add post ranking
git clone https://github.com/ozaki/vitesakuga
cd vitesakuga
pnpm i
pnpm devThis project uses Alchemy to automate the creation of Cloudflare R2 buckets.
- A Cloudflare Account
- Node.js installed
- Cloudflare Account ID (found on your dashboard)
- Cloudflare API Token with
R2 Editpermissions
Set your Account ID and deploy from the project root:
# Authenticate with Cloudflare
npx alchemy login
# Set your Cloudflare Account ID
export CLOUDFLARE_ACCOUNT_ID="YOUR_ACCOUNT_ID"
# Deploy the resources
pnpm run infra:deployFollow the console output from the deploy script to manually update your .env file with the newly created bucket name and your account ID.
You also need to manually add the S3 API Token from the Cloudflare R2 dashboard to your .env file to set CLOUDFLARE_ACCESS_KEY and CLOUDFLARE_SECRET_KEY:
CLOUDFLARE_ACCESS_KEY="your-access-key"
CLOUDFLARE_SECRET_KEY="your-secret-key"