TokenCap
FeaturesDocsCLIPricingAbout
Demo CLI
TokenCap emblem

TokenCap

Coding context at the speed of thought.
Built for the LLM era.

Product

  • Features
  • Docs
  • Changelog

Resources

  • Terms
  • Privacy
  • Security

Community

  • •GitHub
  • •Discord
© 2026 TokenCap. Built for developers.
terminal

Documentation

v2.4.0
rocket_launchGetting StartedsettingsConfigurationsettings_input_componentContext Profilesaccount_treeKnowledge Graphinventory_2Memory Layerenhanced_encryptionSecret RedactionterminalCLI ReferenceextensionVS Code Extension
codeGitHubforumDiscord
DOCUMENTATION

Project Knowledge Graph

TokenCap scans all JS/TS source files and maps how they connect to each other.

bash
tokencap graph

This generates TOKENCAP_GRAPH.md containing:

  • Changed Files — files with unstaged/staged Git changes
  • File Relationships — source → dependency import edges
  • Important Nodes — files classified by type
  • All Scanned Files — grouped by classification

Supported file extensions: .ts, .tsx, .js, .jsx, .mjs, .cjs

Import patterns parsed:

  • import x from "./file"
  • import { x } from "../file"
  • export { x } from "./file"
  • const x = require("./file")

Node classification:

PatternType
/app/, /pages/, page.*, route.*, layout.*route
/api/ + route.*api
Uppercase name, /components/, /ui/, .tsxcomponent
/lib/, /services/, /utils/, /hooks/service
schema.prisma, /models/, /db/, /database/database
next.config.*, vite.config.*, tsconfig.*, package.jsonconfig

Note: Only local relative imports are followed. External packages (react, lodash, etc.) are ignored.

chevron_leftDocs OverviewCLI Referencechevron_right