$git clone https://github.com/Deodat-Lawson/LaunchStackThe TypeScript engine for AI-native Next.js apps. Ingestion, OCR, RAG, knowledge graph, LLM abstractions, and background jobs — ports-based, framework-agnostic, and designed to be wired into the Next.js app you already have.
| 1 | # Launchstack |
| 2 | |
| 3 | **The TypeScript engine for AI-native Next.js apps.** Ingestion, OCR, RAG, knowledge graph, LLM abstractions, and background jobs — ports-based, framework-agnostic, and designed to be wired into the Next.js app you already have. |
| 4 | |
| 5 | [](https://www.npmjs.com/package/@launchstack/core) |
| 6 | [](LICENSE) |
| 7 | [](https://github.com/launchstack/launchstack/actions/workflows/CI.yml) |
| 8 | [](https://www.typescriptlang.org/) |
| 9 | |
| 10 | [Quickstart](#quickstart) · [Packages](#whats-in-the-box) · [Architecture](#architecture) · [Reference app](#reference-app) · [Contributing](CONTRIBUTING.md) · [Discussions](https://github.com/launchstack/launchstack/discussions) |
| 11 | |
| 12 | --- |
| 13 | |
| 14 | ## Quickstart |
| 15 | |
| 16 | ```bash |
| 17 | pnpm add @launchstack/core |
| 18 | ``` |
| 19 | |
| 20 | ```ts |
| 21 | import { createEngine } from "@launchstack/core"; |
| 22 | |
| 23 | const engine = createEngine({ |
| 24 | db: { url: process.env.DATABASE_URL! }, |
| 25 | llm: { openai: { apiKey: process.env.OPENAI_API_KEY! } }, |
| 26 | embeddings: { indexName: "openai-3-small" }, |
| 27 | ocr: { defaultProvider: "DOCLING" }, |
| 28 | providers: {}, |
| 29 | storage: myStoragePort, // you implement StoragePort (S3, local, etc.) |
| 30 | jobs: { dispatcher: inngest }, // or any JobDispatcherPort |
| 31 | }); |
| 32 | |
| 33 | // Use any subsystem |
| 34 | const { db } = engine; |
| 35 | const results = await engine.rag?.port.search({ query: "What's in my docs?" }); |
| 36 | await engine.close(); // graceful shutdown |
| 37 | ``` |
| 38 | |
| 39 | Core reads **zero environment variables** at runtime — you supply the config, which makes the engine portable across Next.js, CLIs, workers, and MCP servers. |
| 40 | |
| 41 | --- |
| 42 | |
| 43 | ## What's in the box |
| 44 | |
| 45 | | Package | Status | What it does | |
| 46 | |---|---|---| |
| 47 | | [`@launchstack/core`](packages/core) | **published** | The engine. DB, LLM, embeddings, OCR, RAG, graph, crypto, guardrails, ingestion. Framework-agnostic. | |
| 48 | | [`@launchstack/features/*`](packages/features) | internal | Vertical features built on top of core: `adeu`, `client-prospector`, `company-metadata`, `doc-ingestion`, `legal-templates`, `marketing-pipeline`, `repo-explainer`, `trend-search`, `voice` | |
| 49 | | [`@launchstack/features/mcp`](packages/features/src/mcp) *(planned)* | roadmap | MCP server factory — expose core capabilities as tools | |
| 50 | | [`@launchstack/features/workflow-generation`](packages/features/src/workflow-generation) *(planned)* | roadmap | LLM-authored workflow DSL | |
| 51 | | [`@launchstack/features/rules-extraction`](packages/features/src/rules-extraction) *(planned)* | roadmap | Regulatory rule extraction | |
| 52 | | [`@launchstack/features/connectors`](packages/features/src/connectors) *(planned)* | roadmap | Third-party connector integrations | |
| 53 | | [`apps/web`](apps/web) | — | The Next.js reference app — how we wire everything together | |
| 54 | |
| 55 | Features import core via subpath imports (`@launchstack/core/db`, `@launchstack/core/ocr/processor`, etc.). The reference app imports features and supplies the ports (storage, jobs, credits, RAG) that connect to real infrastructure. |
| 56 | |
| 57 | --- |
| 58 | |
| 59 | ## Architecture |
| 60 | |
| 61 | Core exposes four **ports** that the host wires up. Features depend only on these ports; they never reach into the app or the framework. |
| 62 | |
| 63 | ``` |
| 64 | ┌───────────── apps/web (Next.js host) ────────────┐ |
| 65 | │ env.ts → engine.ts → createEngine(config) │ |
| 66 | │ │ │ |
| 67 | │ └─ wires: StoragePort (S3) │ |
| 68 | │ JobDispatcherPort (Inngest) |
| 69 | │ CreditsPort (DB) │ |
| 70 | │ RagPort (hybrid search) │ |
| 71 | └──────────────────┬────────────────────────────────┘ |
| 72 | │ |
| 73 | ┌──────────────────▼────────────────────┐ |
| 74 | │ @launchstack/features/* │ |
| 75 | │ (adeu, marketing-pipeline, ...) │ |
| 76 | │ imp |