The LintLiot SDK is a single npm package that works across every major Node.js framework. After you install it and runDocumentation Index
Fetch the complete documentation index at: https://docs.lintliot.com/llms.txt
Use this file to discover all available pages before exploring further.
npx lintliot init, the SDK inserts itself into your request lifecycle automatically — before any of your routes run — so every incoming request is inspected and filtered without you having to change your application logic.
Prerequisites
- Node.js 18 or later — the SDK uses native
fetchandAbortSignal.timeout, both available from Node 18. - An API key from the LintLiot dashboard. You generate one when you create an app.
Install the package
Initialize your project
After installing the package, run the init command from your project root:lintliot.config.ts configuration file, and inserts the middleware into the right place for your framework. For Next.js it writes middleware.ts at the project root. For Express, Fastify, and Koa it adds the app.use or register call before your routes.
You need your API key ready before running
npx lintliot init. The command will prompt for it and write it to your .env file as LINTLIOT_API_KEY.Available adapters
The SDK ships separate entry points for each supported framework. Import from the path that matches your stack:| Framework | Import path | Guide |
|---|---|---|
| Next.js (App Router) | @lintliot/sdk/next | LintLiot for Next.js |
| Express | @lintliot/sdk/express | LintLiot for Express |
| Fastify | @lintliot/sdk/fastify | LintLiot for Fastify |
| Koa | @lintliot/sdk/koa | LintLiot for Koa |
| React (client-side gating) | @lintliot/sdk/react | — |
| Edge (Cloudflare Workers, Deno Deploy) | @lintliot/sdk/edge | — |
| Supabase | @lintliot/sdk/supabase | — |
| Vite | @lintliot/sdk/vite | — |
Set your API key
Add your API key to your environment. If you use a.env file:
.env
