Flect
Write createEnv(). Deploy. Flect wires up the databases, caches, and buckets — no URLs, ports, or secrets in your code.
What Flect is
Section titled “What Flect is”Flect is a developer platform for deploying apps and their backing resources —
databases, KV stores, and object storage — on your own infrastructure. You
declare what your project needs in flect.toml, and Flect provisions it, binds
it, and deploys your containers behind TLS.
Your application code stays clean: it calls createEnv() and asks for a binding
by name. It never sees a connection string, a port, or a credential.
import { createEnv } from '@getflect/sdk'
const env = createEnv()const db = await env.db('DB') // an official @libsql/clientconst rows = await db.execute('SELECT * FROM notes')The whole model in one screen
Section titled “The whole model in one screen”flect login # SSO — stored in ~/.flect/config.jsonflect use acme/web/prod # pick an org / workspace / project / environmentflect init # scaffold flect.tomlflect deploy # provision resources, bind them, deploy your appAt deploy time Flect injects exactly two environment variables into your
container — FLECT_TOKEN and FLECT_BROKER_URL. Everything else (the database
URL, the cache prefix, the bucket keys) is resolved at runtime through the
broker, scoped to your project, and never written into your image.
What you get
Section titled “What you get”- Apps — deploy any Docker image; get a public HTTPS URL with an auto-issued TLS certificate.
- Databases — SQLite-compatible via sqld/libsql, isolated per resource.
- KV — Redis-compatible via Valkey, key-prefixed per resource.
- Object storage — S3-compatible via Garage, one bucket + key pair per resource.
- SDK —
@getflect/sdkhands you the official client for each resource (@libsql/client,ioredis,@aws-sdk/client-s3), pre-wired and scoped. - Scopes — an Org → Workspace → Project → Environment tree, so the same
code deploys to
dev,staging, andprodwith isolated resources.
Next steps
Section titled “Next steps”- Quickstart — from
flect loginto a live app. - Local development — run
createEnv()with no broker. - SDK reference —
createEnv()and the resource clients. - CLI reference — every command.
- Platform architecture — how the control plane works.