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

FrameworkDetection keyTreated as entries
Next.jsnextjs in package.jsonapp/**/page.tsx, app/**/layout.tsx, app/**/route.ts, pages/**, middleware.ts, next.config.*
NestJSnestjs in package.json*.controller.ts, *.module.ts, *.service.ts, *.guard.ts, main.ts
Angularangular in package.json*.component.ts, *.module.ts, *.service.ts
Expressexpress in package.jsonroutes/**, server.ts
Fastifyfastify in package.jsonroutes/**
Vitevite in package.jsonvite.config.*
SvelteKitsveltekit in package.json+page.*, +layout.*, +server.*, +error.*
Remixremix in package.jsonroutes/**, 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.

Framework deep dives