Documentation
Add Fireclass to a Next.js, React, or Express project — with the CLI or manually.
Fireclass setup starts with Firebase, not the CLI. Create the Firebase project,
enable Firestore, and prepare the credentials or web configuration for your
framework before running fireclass init.
Complete the prerequisites first
Follow Prerequisites, then open the framework guide below. The CLI references an existing Firebase file instead of overwriting it.
fireclass-ssr singleton.src/lib/firebase.ts, and realtime hooks.src/lib/firebase.ts, and a lazy getDb() factory.Each guide includes both the recommended CLI path and a complete manual path.
Once the framework-specific Firebase setup is ready, run:
$ npx fireclass init
The CLI detects the framework and package manager, writes fireclass.json,
installs the correct runtime, creates the Fireclass entry file and starter
model, and enables TypeScript decorators. Existing Firebase files are only
referenced.
npx fireclass doctorUse the framework pages above to install every dependency and create each file by hand. Manual installation follows the same boundaries as generated code:
lib/firebase.ts for React and Express.fireclass-ssr directly and does not need a Firebase file.BaseModel, hooks, and adapter.Every CLI setup writes a project-level fireclass.json. Read the
configuration reference before changing
its paths or exports manually.