Framework Support
Auto-detected frameworks
larkx reads package.json and applies framework-specific entry-point patterns automatically.
Detection runs every time you call
get_dead_code or larkx deadcode. No configuration required.Supported frameworks
| Framework | Detection key | Treated as entries |
|---|---|---|
| Next.js | nextjs in package.json | app/**/page.tsx, app/**/layout.tsx, app/**/route.ts, pages/**, middleware.ts, next.config.* |
| NestJS | nestjs in package.json | *.controller.ts, *.module.ts, *.service.ts, *.guard.ts, main.ts |
| Angular | angular in package.json | *.component.ts, *.module.ts, *.service.ts |
| Express | express in package.json | routes/**, server.ts |
| Fastify | fastify in package.json | routes/** |
| Vite | vite in package.json | vite.config.* |
| SvelteKit | sveltekit in package.json | +page.*, +layout.*, +server.*, +error.* |
| Remix | remix in package.json | routes/**, root.tsx |
Universal patterns (always active)
These are treated as entry points regardless of framework:
index.*,main.*,app.*,cli/index.**.test.*,*.spec.*,*.stories.*(test/story files)*.config.*(build tool configs)
Adding custom entry points
Edit .larkx/config.json:
json
{
"entryPoints": [
"src/workers/",
"src/scripts/",
"src/custom-entry.ts"
]
}Folders match anything inside them. Files match exactly. See Custom entry points.