Ship on Filecoin
in one command.
scaffold-foc generates a working Next.js app that uploads, retrieves, and verifies real storage — and checks your whole setup before you waste an afternoon on wallets and approvals.
Node 20+ · Runs against the Filecoin calibration testnet
Watch the setup run itself.
Every scaffolded project ships with foc:check — a script that verifies your entire Filecoin setup and tells you exactly what to fix.
From nothing to stored, in three steps.
Scaffold the project
One command gives you a Next.js app with the Synapse SDK, upload and retrieve routes, and the foc: scripts already wired up.
npx scaffold-foc my-project
cd my-project
npm installCheck and fund
Add your calibration key, then let the CLI tell you exactly what is missing and provision it for you.
npm run foc:check
npm run foc:setupStore your first file
Start the dev server and upload to real Filecoin storage. The round trip is already built.
npm run devFilecoin's trickiest setup, as one-liners.
npm run foc:checkInspects wallet, RPC, gas, USDFC balance, providers, and approvals — with a fix for every failing line.
npm run foc:setupDeposits USDFC and grants operator approval in one transaction so uploads stop getting rejected.
npm run foc:test-uploadUploads a small file and pulls it back, proving a real round trip against live storage.
npm run foc:statusReports account funds, data sets, and proof state — the health of everything you have stored.
Everything a scaffolded project ships with.
- Next.js 16 and TypeScript
- Synapse SDK, pre-configured
- Upload and retrieve routes
- Live storage status endpoint
- Wallet key normalization
- AGENTS.md for AI editors
- Calibration testnet defaults
- Ready-to-edit env template
scaffold-foc