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.

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.

PHP

StackBest for
LaravelHTTP client + service class pattern
Plain PHPcurl/Guzzle without a framework

PHP integrations use REST (/v1/chat) with Guzzle or curl — there is no official PHP SDK yet.

Production rule: use Laravel's HTTP client or Guzzle from controllers/services only. Never put the raw key in Blade templates, frontend JavaScript, or public config.

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.

On this page