ehmo/Repo Tokens
Zero-config token counting and context-window badges for any codebase
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| path | Path to scan (defaults to repo root) | no | . |
| context-window | Context window size for percentage calculation | no | 200000 |
| encoding | Tiktoken encoding name | no | cl100k_base |
| badge-path | Path to write SVG badge (empty to skip) | no | .github/badges/tokens.svg |
| readme | Path to README file for marker replacement | no | README.md |
| marker | HTML comment marker name in README | no | token-count |
| include-tests | Include test files in token count | no | false |
Outputs
| name | description |
|---|---|
| tokens | Total token count (e.g. 34940) |
| percentage | Percentage of context window (e.g. 17) |
| badge | Badge text (e.g. 34.9k tokens · 17% of context window) |
| json | Full JSON output with per-project breakdown |