Chickinfry Docs
Documentation

Build a project from one contract.

Chickinfry generates the server, ORM, and client SDKs from the same project declaration. These docs describe the public commands and concepts.

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
Generated files are regenerated from the contract. Keep business implementation in the user-owned source directories.

Project structure

chik/

The versioned project contract: project, schema, API, authentication, extensions, and named clients.

server/src/

Your server entry and business handlers. Chickinfry preserves this user-owned code.

server/generated/

Generated ORM, models, typed operations, dispatch, and runtime artifacts.

client/<name>/

A user-owned client application such as site or docs.

client/generated/

Shared generated SDK packages used by client applications.

.chick/

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.

Choosing Other? Use your provider's pooled connection string; apps run in a serverless environment.

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 generate refreshes shared SDKs while preserving user-owned client code.
  • chik client deploy --client site deploys 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
  1. Add the displayed TXT records to prove hostname ownership.
  2. Point the hostname to the displayed CNAME target.
  3. Run the same chik add domain command 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

AreaCurrent public scope
ServerTypeScript generated server
SDKGo and TypeScript
DatabasePostgreSQL
StorageS3-compatible storage
ClientsTypeScript web clients
AuthenticationEmail-and-password authentication