TypeScript & JS
16 mapped · 4 known gaps
Coverage
Proven from code, never guessed. Every box and line on Chomp Map links back to an exact file and line—explore every framework rule Chomp maps today alongside the known gaps we track openly.
Built-in stacks ship with framework-specific rules on top of plain TypeScript & JavaScript. Partial stacks use the TS/JS base while framework-specific wiring is tracked below.
16 mapped · 4 known gaps
10 mapped · 1 known gap
5 mapped
11 mapped · 2 known gaps
4 mapped · 1 known gap
16 mapped
2 mapped
5 mapped
1 mapped
TS/JS base · 1 known gap
TS/JS base · 1 known gap
Showing 80 of 80 patterns.
Maps exported function declarations, arrow/const functions, callable object-literal exports, and trailing export { fn } clauses.
Extracts classes, public methods, static helpers, get accessors, extends inheritance chains, and new Class() instantiation links.
Traces calls on factory-returned instances (createService().run()), fluent builder chains, ReturnType<typeof fn> types, and interface sub-properties.
Connects functions passed by reference into callbacks (items.map(fn), .then(fn)) and object/map handler dispatch tables.
Resolves cross-workspace imports, .js to .ts aliases, multi-hop barrel re-exports, and tsconfig.json paths / baseUrl aliases without tsc.
Detects fetch, HTTP clients, database drivers, node:fs mutations, node:child_process, WebSockets, and stitches internal fetch("/api/...") calls to matching routes.
Marks non-literal await import(dynamicPath), eval(), and unprovable dynamic calls as ? unresolved instead of guessing a link.
Records syntactically present parameter types, return types, and Zod validator schemas directly onto mapped nodes.
An exported HTTP-method function (or export const { GET, POST } = handlers) in app/**/route.<ext> is an HTTP endpoint.
The default-exported function of app/**/page.<ext> is the page for its route.
The default-exported function of app/**/layout.<ext> is the layout for its route segment.
An exported generateMetadata or generateStaticParams function/const in app/**/{page,layout}.<ext> is a Next.js App Router lifecycle entry point.
export { X as middleware } or a default-exported function in middleware.<ext> is the request middleware.
An exported route segment config constant (dynamic, revalidate, runtime, ...).
export const metadata = { ... } declares the segment metadata.
A call to revalidatePath() / revalidateTag() reaches beyond the code: the Next.js data cache.
An exported function under a file-level or function-level 'use server' directive is a Server Action: callable from the client, executed on the server.
A JSX element whose tag is bound via Next.js dynamic(() => import(...)) renders the target component.
export const X = memo(fn) / React.forwardRef(fn) (also nested) exports a component. The exported constant is the node, and calls inside the wrapped function belong to it.
A JSX element whose Capitalized tag is statically imported from a local module renders that module’s exported component.
A JSX element whose tag is bound via React.lazy(() => import(...)) / lazy(() => import(...)) renders the target component.
A JSX element whose tag names a function or wrapped component exported from the same source file renders it, with no import to prove it. A tag with no proven same-file export yields no edge.
A JSX property-access element (<Form.Input />) renders the proven target component via namespace import, compound object, or same-file export.
An Express route registration (app.get(path, handler), router.post(path, handler), app.route(path)) is an HTTP route.
app.use([path], middleware) registers a request-intercepting middleware.
app.param(name, callback) / router.param([names], callback) registers a route parameter handler.
res.format({ ... }) declares an Accept-header content negotiation branch table.
app.listen(...) / server.listen(...) opens a network listener.
res.cookie(name, ...) / res.clearCookie(name) mutates client response cookies.
methods.forEach(...) dynamically attaches HTTP verb methods onto the Express application/router prototype.
app.use([pathPrefix], middleware) mounts a middleware to intercept requests under pathPrefix.
app.use([pathPrefix], router) mounts a sub-router module under pathPrefix.
Intermediate arguments in app.<method>(path, mw1, ..., handler) intercept requests on that route.
A referenced final argument in app.<method>(path, ..., handler) binds the route to that handler node.
server.tool(name, ..., handler) declares an MCP tool endpoint node and emits a registration link from the enclosing scope.
A variable initialized with pgTable / mysqlTable / sqliteTable / pgEnum declares a Drizzle database schema node.
The topmost call of a db.select/insert/update/delete/execute/transaction fluent chain or db.query.<table>.findFirst/findMany relational query is a database query connector, paired with a read/write link when a schema table is referenced.
const X: CollectionConfig = { ... } declares a Payload collection node.
const X: GlobalConfig = { ... } declares a Payload global node.
const X: Block = { ... } declares a Payload content block node.
const X: TaskConfig = { ... } declares a Payload background job task node.
fields: [...] inside a Payload config declares its schema fields node.
endpoints: [...] inside a Payload config declares custom REST endpoints.
access: { ... } inside a Payload config declares its access control rule.
Calls to initTransaction / commitTransaction / rollbackTransaction / killTransaction.
Direct payload.db.<method>({ collection }) adapter operation, paired with a read/write schema link.
payload.jobs.queue(...) / req.payload.jobs.queue(...) dispatches a background job.
payload.<find|create|update|delete|findGlobal|updateGlobal>({ collection | global }) local API call, paired with a read/write schema link.
Model.<method>(...) Mongoose model operation inside Payload.
Hook array registration (beforeChange: [fn], afterRead: [fn], ...).
buildConfig({ collections: [Posts] }) mounts collections into the Payload config.
buildConfig({ globals: [Header] }) mounts globals into the Payload config.
buildConfig({ plugins: [seoPlugin(...)] }) registers Payload plugins.
An exported getStaticPaths function or constant in pages/** / src/pages/** is an Astro static route lifecycle entry point.
An exported uppercase HTTP-method handler (GET, POST, ..., ALL) in an Astro endpoint under pages/** / src/pages/** is an HTTP endpoint.
An exported load function or constant in routes/**/+page.server.<ext> or routes/**/+page.<ext> is a SvelteKit route data loader.
An exported load function or constant in routes/**/+layout.server.<ext> or routes/**/+layout.<ext> is a SvelteKit layout data loader.
An exported actions object in routes/**/+page.server.<ext> defines SvelteKit form actions for that route.
An exported HTTP-method (GET, POST, ..., fallback) handler in routes/**/+server.<ext> is a SvelteKit server endpoint.
An exported SvelteKit hook (handle, handleFetch, handleError, init, reroute, transport) in hooks.server.<ext>, hooks.client.<ext>, or src/hooks.<ext> is a framework request middleware.
Bare side-effect import 'server-only' asserting a server-bundle boundary.
Object.defineProperty(obj, name, ...) or defineGetter(obj, name, ...) property getter.
Exported NextAuth(...) factory assignment or destructured auth interface exports.
Exported Drizzle-Zod validator schema (createInsertSchema / createSelectSchema).
Exported property-access pgTable schema (e.g. schema.pgTable(...)).
Exported Zod validator schema (z.object / z.discriminatedUnion).
Prototype method assignment (Class.prototype.method = function() {}).
CommonJS aliased export assignment (alias.method = function() {}).
Dynamic element-access CommonJS method assignment (app[method] = function() {}).
CommonJS module.exports / exports.<name> export.
Passing a same-file Drizzle table into a schema generator (createSelectSchema(table)) does not yet emit a reference link between them.
Controller classes registered via a server options array (controllers: [UsersController]) are not yet linked to the server factory.
Routers instantiated and mounted dynamically inside an array loop (routes.forEach(...)) are marked ? unresolved.
Classes wired through NestJS @Module providers/exports arrays or @UseGuards / @UseInterceptors decorators are not yet linked automatically.
JSX <a href="/api/..."> and <img src="/api/..."> attributes targeting local Next.js API routes are not yet linked as frontend-to-backend edges.
Method calls invoked through React Router LoaderArgs.context injected by getLoadContext are marked ? unresolved until bridged.
Dynamic bracket lookups on imported factory registries (factories[kind].run()) cannot be proved statically and are marked ? unresolved.
Top-level await import("./server/index") bootstrap calls are marked as dynamic exits rather than resolving to the target module default export.
Imported functions placed inside exported config objects or spread arrays (export const config = [...base]) do not yet emit usage links.
Methods passed as callback arguments into class constructors (new Strategy(opts, AuthService.verify)) are not yet linked automatically.
Where code is too dynamic for static analysis to prove, Chomp marks ? N unresolved instead of faking a connection and groups similar calls by shape. You can inspect the exact line in Chomp Map or wire custom wrappers, dependency injection, and event buses locally with the Bridges plugin (chomp_local_shims).
Connect proprietary wrappers or custom DI locally today with the Bridges plugin—or work with us through Founding Teams for custom framework rules tailored to your stack.