Framework · JavaScript / TypeScript
Skeram for Next.js
Next.js is Skeram's most thoroughly tested framework: routes come from the file system, so the map of the app is exact before any model reads it.
What Skeram reads
| Routes | Listed by code from the file system: app router pages and route.ts handlers (with their exported HTTP methods), the pages router including pages/api, middleware.ts and Next 16's proxy.ts, and files with the "use server" directive as server actions. |
|---|---|
| AI calls | Every file that imports an AI SDK (Vercel AI SDK, OpenAI, Anthropic, Google, Mistral, Groq, Cohere, LangChain, Ollama) or calls a provider's API directly is found by code, with literal model ids, output caps (maxOutputTokens, max_tokens) and loop caps (stepCountIs, maxSteps). The call sites and the routes that reach them one import away are sent to the model first. |
| Data | Prisma and Drizzle schemas (including multi-file Prisma schemas and schemas in a sibling package of a monorepo), environment examples, and the database clients the code imports. |
| Background jobs | vercel.json crons and functions marked with extra memory or duration, trigger.dev tasks, and queue SDKs (Inngest, QStash, BullMQ, SQS and others) that back a job. |
| Hosting | A static export (output: "export" in next.config) is priced as static hosting on a CDN; vercel.json labels the deploy as Vercel, priced at the AWS-equivalent cost. |
“Listed by code” means found by plain code before any model is involved, so the same repository always gives the same list. Everything else is read by one model call from the files Skeram selects, and every claim must cite a file and line that exists. How the analysis works.
What it flags most in Next.js apps
- LLM calls with no output cap: streamText and generateText calls without maxOutputTokens are common in chat routes.
- Database connection pools on serverless: Prisma or pg pools deployed on Vercel open a pool per function instance.
- Background jobs that run inside requests: after() and fire-and-forget promises in route handlers do background work without a queue.
A real example
See a full teardown of a Next.js app: Vercel AI Chatbot, with its bill from 100 to 100,000 users and every finding cited to the line.
Known limits
- Server components that call a model directly are found through the SDK import, not the route list.
Price your Next.js app
Paste a public GitHub link, a folder link inside a monorepo, or upload private code with the CLI.