Quickstart
Get SemiLayer running in under 5 minutes. You'll connect a database, push a schema, and pick the integration path that fits your stack.
Prerequisites: Node.js 18+, a running database with data, and a SemiLayer account. No account yet? Sign up at console.semilayer.com.
Install the CLI
Setup
A browser window opens. Sign in (or create an account) and authorize the CLI. The token is stored locally — all subsequent commands are authenticated.
Run init in the root of your application:
You'll be prompted to select or create an Organization, Project, and
Environment. The selection is stored in .semilayerrc.
Add a Source — a connection to your existing database. SemiLayer reads from it during ingest and never writes to it.
Other bridges: MySQL, MongoDB, CockroachDB, and more. See Bridge SDK for the full list.
A Lens is a declaration of intelligence over a table. Open (or create) sl.config.ts:
Fields with searchable: true are concatenated and embedded for semantic search.
All fields appear in results. See Schema (Config) for the full spec.
Register the Lens (paused — no data yet):
Start the ingest pipeline:
Watch progress:
When status reaches ready, queries are live.
Choose your integration path
Pick the approach that fits your stack. All paths use the same API key and deliver the same results.
Path A — Generated Beam client
This is the recommended path for TypeScript apps. Generate a fully-typed client from your config:
This creates a semilayer/ directory with typed classes for every Lens in your config.
Re-run generate whenever you change sl.config.ts.
See Beam Client for the full API reference.
What's next?
- Concepts — Mental model: Organizations, Projects, Lenses, Facets, Beam
- Schema (Config) — Complete
sl.config.tsreference - Querying — Filters, pagination, search modes, streaming
- Auth & RBAC — API key types, access rules, row-level security
- HTTP & WebSocket — Write a client in any language
- Bridge SDK — Add your own database adapter