LatentKit

Supported Stacks

Frameworks and languages supported by the LatentKit vibe coding prompt builder.

The vibe coding prompt builder generates tailored instructions for these stacks.

TypeScript & JavaScript

StackBest for
Next.js (App Router)Route Handlers, Server Actions, full-stack TS
React + ViteSPA with a separate backend or serverless API
Node.js + Express (TS/JS)REST APIs and microservices
JavaScript (fetch + API route)Generic backends when no SDK is used

Official SDK: @latentkit/sdk

Production rule: keep LATENTKIT_API_KEY in a server route, server action, API service, or serverless function. React/Vite browser code should call your own /api/chat endpoint.

CLI verification: @latentkit/cli can run latentkit whoami --json, latentkit chat ... --json, and latentkit logs tail --tenant t_123 while you debug.

Python

StackBest for
FastAPIAsync APIs and modern Python services
DjangoBatteries-included web apps and admin projects
FlaskLightweight Python APIs

Official SDK: latentkit

Production rule: use AsyncLatentKit in async frameworks such as FastAPI, validate request bodies with the framework's normal validation layer, and log exc.request_id when the SDK raises LatentKitAPIError.

CLI verification: use @latentkit/cli from a terminal to confirm login, route behavior, and request logs.

PHP

StackBest for
LaravelService classes, controllers, jobs, and commands
Plain PHPFramework-neutral server applications and workers

Official SDK: latentkit/latentkit-php (beta)

Production rule: create the SDK client in server-side PHP and keep the raw key out of Blade templates, browser JavaScript, HTML, and public configuration.

What a good AI-generated integration should do

  • Add one small server-side LatentKit client/service.
  • Add one API route or controller action for chat.
  • Validate that messages is an array before forwarding.
  • Return a safe 502 or framework-native upstream error when LatentKit fails.
  • Log status, error code, and X-LK-Request-ID or SDK request_id.
  • Leave provider/model selection out of code.

How to pick a stack

  1. Open Build with AI (Vibe Coding)
  2. Select your AI coding tool (Cursor, Windsurf, Claude, …)
  3. Select your framework & language
  4. Copy the generated prompt

The prompt includes install steps, handler examples, file layout, and safety rules scoped to that ecosystem.

Missing your stack?

Use Other AI tool + the closest stack, or JavaScript (fetch + API route) for generic REST integration. More stacks (NestJS, Rails, Go, Rust) can be added to the prompt catalog without changing the page structure.

  • Authentication — API key header format
  • CLI — terminal verification, logs, traces, and CI checks
  • Error handling — what to log when AI-generated code fails

On this page