Quickstart
After you create a customer account and project, the common local workflow is:
chik init
chik add database <project-id>
chik generate
chik dev
Add a named web client when your project needs a hosted site:
chik add client --template typescript --name site
chik generate
chik dev
Project structure
The versioned project contract: project, schema, API, authentication, extensions, and named clients.
Your server entry and business handlers. Chickinfry preserves this user-owned code.
Generated ORM, models, typed operations, dispatch, and runtime artifacts.
A user-owned client application such as site or docs.
Shared generated SDK packages used by client applications.
Local runtime state and protected connection material. Do not commit secrets.
Resources
PostgreSQL
Register a PostgreSQL database with chik add database <project-id>. Choose your PostgreSQL provider — Neon, Supabase, or Other — and enter its connection string through a protected prompt. The public declaration contains only the database profile and models needed for generation.
Change a registered connection with chik update database [project-id] from its linked workspace. It shows the current host, database and user, masks the password, and reads the new URL through hidden input or stdin. Organization ownership is required.
The same database is checked against its last applied migration state. A different empty database requires an interactive terminal and its exact name; existing data and users will not be copied. If the schema or migration history differs, the command explains the mismatch and stops. Switching to a populated database is not supported yet.
After saving, existing deployments keep their current connection until the next deployment. Restart chik dev locally. Deploy now? defaults to No; without an interactive terminal, the command finishes with Saved. Run chik deploy when you are ready. Deployment failure keeps the saved connection.
Storage
Use chik add storage to connect S3-compatible storage. Credentials are not written to the versioned contract.
Vault
Select Chickinfry Vault with chik add vault, store secrets with chik secret set, and read them in generated server code through ctx.vault.get("API_KEY").
Clients
A project can serve one API while hosting multiple named clients. A public website can be site and documentation can be docs, without changing the server identity.
chik add client --template typescript --name site
chik add client --template typescript --name docs
- Each client uses the standard package manifest and build script.
chik generaterefreshes shared SDKs while preserving user-owned client code.chik client deploy --client sitedeploys only that client surface.
Deployment
chik deploy reviews the server and every declared client, applies the database migration plan, and deploys changed targets. Preview both the contract changes and database plan with --dry-run. Destructive changes require confirmation or an explicit --yes for that invocation.
chik deploy --dry-run
chik deploy
chik client deploy --client site
chik client status --client site
chik client rollback <release-id> --client site
A deployment creates an immutable release and moves that surface's active pointer without changing its public address. Release rollback does not revert database migrations. Keep schema changes compatible with the previous release so it can still run after a rollback.
Domains
Attach a hostname to the API server or a named client surface:
chik add domain api.example.com
chik add domain example.com --client site
chik remove domain example.com --client site
- Add the displayed TXT records to prove hostname ownership.
- Point the hostname to the displayed CNAME target.
- Run the same
chik add domaincommand again to refresh certificate and routing status.
If a hostname is already attached to another surface, Chickinfry keeps the existing routing and issues a new ownership challenge. The surface changes only after the TXT record matches.
Support status
| Area | Current public scope |
|---|---|
| Server | TypeScript generated server |
| SDK | Go and TypeScript |
| Database | PostgreSQL |
| Storage | S3-compatible storage |
| Clients | TypeScript web clients |
| Authentication | Email-and-password authentication |