How imrlopezag/kello works
Kello is a contract-first TypeScript backend for PostgreSQL and Neon. A developer defines schema, contracts, and handlers; the CLI loads the project, generates typed application/client artifacts, and manages Neon provisioning and releases. At runtime, client and React integrations call server RPC procedures, which apply database, authentication, search, realtime, and job capabilities. Storage has a distinct control-plane flow for intents and signed object-store operations. The README documents several capabilities whose implementation paths are visible in the tree but were not sampled; those branches are included without asserting unsampled call chains.
Main entry points: database.ts Application RPC · rpc-transport.ts Typed client · load.ts Project loading · storage-http.ts Storage endpoint
Components 22
CLI and deployment
- Project loading
apps/kello-cli/src/tooling/project/load.ts - Project config
apps/kello-cli/src/tooling/config - Artifact generation
apps/kello-cli/src/tooling/codegen/application.ts - Neon deployment
apps/kello-cli/src/tooling/deploy/neon
Server runtime
- Application RPC
apps/kello/src/core/server/rpc/database.ts - RPC transport
apps/kello/src/core/adapters/neon/rpc-http.ts
Data capabilities
- Database access
apps/kello/src/core/server/database/connection.ts - Schema contracts
apps/kello/src/core/schema/define-schema.ts - Typed search
apps/kello/src/core/search/executor.ts - Live queries
apps/kello/src/core/server/realtime/procedure.ts - Durable jobs
apps/kello/src/core/server/jobs/durable-worker.ts
Clients and integrations
- Typed client
apps/kello/src/core/client/rpc-transport.ts - React integration
apps/kello/src/core/react/live-query.ts
Identity and storage
- Authentication
apps/kello/src/core/server/auth/verify.ts - Storage client
apps/kello/src/core/client/storage.ts - Storage endpoint
apps/kello/src/core/adapters/neon/storage-http.ts - Storage intents
apps/kello/src/core/server/storage/intents.ts - Private object storage
apps/kello/src/core/adapters/neon/storage.ts
Other components
- Application developer
- Neon platform
- PostgreSQL
- S3-compatible storage
Connections 23
- Application developer → Project loading: defines project
- Project loading → Project config: resolves config
apps/kello-cli/src/tooling/project/load.ts - Project loading → Artifact generation: supplies project
apps/kello-cli/src/tooling/codegen/application.ts - Application developer → Neon deployment: deploys backend
- Neon deployment → Neon platform: provisions and releases
- Artifact generation → Typed client: generates client
apps/kello-cli/src/tooling/codegen/application.ts - Application developer → Schema contracts: defines schema
- Application developer → Application RPC: implements handlers
- Application RPC → Database access: uses database
apps/kello/src/core/server/rpc/database.ts - Application RPC → Typed search: validates search
apps/kello/src/core/server/rpc/database.ts - Application RPC → Live queries: recognizes live contracts
apps/kello/src/core/server/rpc/database.ts - Application RPC → Durable jobs: supports background work
- Database access → PostgreSQL: runs transactions
- Typed client → RPC transport: sends RPC calls
- RPC transport → Application RPC: dispatches procedures
- React integration → Typed client: uses live client
apps/kello/src/core/react/live-query.ts - Typed client → Authentication: authenticates requests
- Storage client → Storage endpoint: sends storage requests
apps/kello/src/core/client/storage.ts - Storage endpoint → Storage intents: handles intents
apps/kello/src/core/adapters/neon/storage-http.ts - Storage endpoint → Authentication: verifies session
apps/kello/src/core/adapters/neon/storage-http.ts - Storage intents → Private object storage: verifies objects
- Private object storage → S3-compatible storage: signs and transfers objects
apps/kello/src/core/adapters/neon/storage.ts - Storage client → S3-compatible storage: uploads via signed URL