create-feltdb
Interactive CLI tool to scaffold new FeltDB applications.
Usage
One command scaffolds the application, installs its dependencies, and starts
it with the development authority and Studio (no global installation required):
npx --yes create-feltdb@latest my-app
Use the interactive menu, or accept its defaults non-interactively:
npx --yes create-feltdb@latest my-app --yes
Options
--browser, --server, --self-host, --managed — where the application's
data lives (default: --browser)
--runtime <browser|node|self-hosted|managed> — the same choice by name
--managed — connect the app and Studio to a managed FeltDB endpoint
(see managed sign-up)
--signin / --signup — managed: sign in to your existing feltdb.com account,
or create a new one
--framework <react|vanilla>
--distributed / --no-distributed — record whether the application will be
deployed to several feltdb-server nodes (default: not recorded)
--no-agents — vanilla template only; the React starter always includes its
assistants
--capabilities <search|vector|search,vector> — vanilla template only
--webllm / --no-webllm — include the private WebLLM app builder (default:
not included)
--no-install — generate without installing dependencies
--no-start — do not start services after generation
--yes or -y — skip the interactive menu and use defaults
--help or -h
--version
Managed sign-up
With --managed, create-feltdb asks "Do you already have a feltdb.com
account? [y/N]": answer y to sign in, or press Enter to create a new account
(the password is asked twice). Passwords are at least 12 characters. It says
which it did (✓ Signed in to feltdb.com as … or ✓ Created your feltdb.com account …), whether it reused or created the workspace and application, and
ends with where to open them: https://feltdb.com/login (sign in with that
e-mail and password, not "Continue with GitHub" unless you have linked GitHub)
and https://<workspace>.feltdb.com/<app>.
Non-interactively (--yes, CI), set FELTDB_MANAGED_EMAIL,
FELTDB_MANAGED_PASSWORD and FELTDB_MANAGED_MODE=signin|signup (or pass
--signin / --signup). With no mode, a script keeps the earlier behaviour:
create the account, or sign in to it if it exists.
What Gets Generated
The React starter is copied from apps/default-project:
my-app/
├── feltdb.flow
├── feltdb.config.json
├── agents/
├── capabilities/
├── workflows/
├── src/
│ ├── App.tsx
│ ├── feltdb.ts
│ ├── index.tsx
│ ├── context/
│ └── pages/
├── .feltdb/
├── .env.example
├── index.html
├── package.json
├── tsconfig.json
└── README.md
--self-host adds docker-compose.yml, Dockerfile, Dockerfile.feltdb,
Dockerfile.studio, .dockerignore and .env.
Run It Again
cd my-app
npm run feltdb:dev
This starts the app, the development authority, and Studio together. Do not
also run npm run dev. Self-hosted projects also start the version-matched
FeltDB server container and therefore require Docker.
Default Configuration
The generated project uses:
- Runtime: Browser
- Framework: React
- Storage: IndexedDB
- Distributed: Not recorded
- Capabilities: React: declared in
feltdb.flow; vanilla: search
- AI: WebLLM app builder not included (
--webllm to add it)
- Studio: Started alongside the application by
npm run feltdb:dev
License
MIT