Flaunt GitHub is a VS Code / Cursor extension that quietly tracks your coding activity and commits a rolling journal to a private code-tracking repo in your GitHub account. Your contribution graph stays green, and you get a searchable history of what you actually worked on.
- 🕒 Timezone-safe formatting — empty / invalid
codeTracking.timeZonevalues fall back to the system zone instead of crashing the commit tick. - 📝 Per-save log lines restored —
Saved ...,Auto-snapshot ..., andWorkspace diff snapshot ...lines appear in theFlauntGitHubLogchannel as activity happens, not just at commit time.
- 🧱 Modular architecture — auth, repo, interval, activity, status, commands are separate modules with unit tests.
- 🔐 Tokens never persisted in
.git/config— credentials are injected per-operation viahttp.extraheader. - 🗓 Rotated journal files —
journal/YYYY/MM.mdfor global activity andprojects/<repo>/YYYY/MM.mdfor per-project scoping (no more monolithiccoding_summary.txt). - 🧩 Multi-root workspace support — every folder is tracked independently.
- ⏸ Pause / resume from the status bar.
- 🛡 Ignore globs — sensible defaults (
**/.env*,**/secrets/**, keys) plus user overrides. - 🕵️ Optional path redaction — commit
<redacted:3>.tsinstead of real paths, still track language and counts. - 💾 Pending queue — if a push fails, the interval's activity is persisted and retried next tick. No more lost entries.
- 🔒 Single-instance file lock — only one VS Code window drives commits per global storage.
- ✅ First-run consent dialog — previews an example commit before anything is pushed.
- 📊 Webview dashboard — languages, sessions, diff at a glance.
- 🏷 Profile badge generator — SVG committed to your tracking repo, ready to paste in your GitHub profile README.
- 🤖 Opt-in AI daily summary — 2-3 sentence journal entry produced by Anthropic (BYOK, Claude Haiku by default).
- 📤 Export metrics — JSON or CSV.
- On startup, Flaunt acquires a file lock in the extension's global storage directory. Other windows become read-only.
- First-run consent dialog shows a sample commit line. Decline → tracking never starts.
- Credentials resolve in this order:
- Cached in Secret Storage.
codeTracking.githubToken+codeTracking.githubUsernamefrom settings (fallback; cached after first use).vscode.authentication.getSession('github', ['read:user','repo']).
- The private
code-trackingrepo is created if missing, cloned into global storage, andoriginis rewritten to a token-free URL.
At each interval (default 30 min):
- Manual saves →
Saved <path>entries. - No manual save but dirty docs →
Auto-snapshot <path>entries, thensaveAll. - No dirty docs but workspace git diff →
Workspace diff snapshot (+X/−Y). - Entries are written to per-project monthly markdown files inside the tracking repo.
git fetch→ merge → commit → push via-c http.extraheader=....- Commit message format:
[Flaunt] 2026-04-22, 11:07 · +128/−32 · flaunt-github · typescript · 7 saves - On failure, entries persist to
pending.jsonland retry next tick. setTimeoutself-chaining prevents interval overlap.
| Command | Description |
|---|---|
| Commit Now | Force an immediate commit |
| Open Dashboard | Open the webview dashboard |
| Show Metrics (log) | Text metrics dump to the output channel |
| Pause Tracking / Resume | Stop committing without uninstalling |
| Refresh GitHub Auth | Clear Secret Storage and re-authenticate |
| Reset Consent Prompt | Show the first-run dialog again |
| Open Tracking Repo | Jump to github.com in the browser |
| Generate Profile Badge | Write badges/flaunt.svg + copy markdown |
| Export Metrics | Save JSON/CSV |
| Show Log | Open the Flaunt output channel |
Click the status bar item for a quick-pick menu of all of these.
{
"codeTracking.githubToken": "ghp_...",
"codeTracking.githubUsername": "your-username"
}Prefer the built-in Sign in with GitHub flow. These settings exist only for headless / remote environments where VS Code's auth provider isn't available.
- The tracking repo is private by default when Flaunt creates it.
- File paths appear in commits unless
codeTracking.redactPathsis enabled. codeTracking.ignoreGlobsfilters out sensitive paths client-side before anything is logged.- No data is sent anywhere except GitHub (your own private repo) and, if you opt in, the Anthropic API for daily summaries.
npm install
npm run typecheck
npm run lint
npm test # runs mocha on pure-Node unit tests
npm run build # esbuild bundle
npm run package # vsce packageUnit tests live under src/test/*.test.ts. They compile to out-test/ and run in plain Node (no Electron harness required).
Releases are automated through three workflows. The happy path is a single commit:
- Bump
versioninpackage.json(semver). - Commit and push to
master:git commit -am "Release v<version>" git push origin master auto-tag.ymlsees the new version, checks that no matchingv<version>tag exists, creates the tag, and pushes it.release.ymlfires on the newv*tag and:- Verifies the tag matches
package.jsonversion. - Runs typecheck, lint, tests, build.
- Packages
flaunt-github-<version>.vsix. - Creates a GitHub Release with auto-generated notes and the
.vsixasset attached. - Publishes to Open VSX if
OVSX_PATis set. - Leaves a Marketplace reminder in the workflow log — VS Code Marketplace is published manually:
npx vsce publish --packagePath flaunt-github-<version>.vsix
- Verifies the tag matches
You can also trigger release.yml manually from the Actions tab (workflow_dispatch) by supplying a tag.
- Final releases:
v3.0.2,v3.1.0, … - Pre-releases (tag contains a hyphen):
v3.1.0-beta.1— marked as GitHub pre-release automatically.
| Secret | Purpose | Required? |
|---|---|---|
OVSX_PAT |
ovsx publish (Open VSX Registry). |
Optional — step is skipped if absent. |
No Marketplace secret is used by the workflow; that step is intentionally manual.
.github/dependabot.yml opens weekly PRs for:
- npm dependencies (grouped:
@types/*, eslint + typescript-eslint, build tools). - GitHub Actions versions (so
actions/checkout@v4→v5lands as a PR rather than silent rot).
Merge those and CI re-verifies; no manual bumps needed.
MIT
{ "codeTracking.commitInterval": 30, "codeTracking.commitMessagePrefix": "[Flaunt]", "codeTracking.timeZone": "", "codeTracking.trackFileOpens": false, "codeTracking.ignoreGlobs": [ "**/.env", "**/.env.*", "**/secrets/**", "**/*.pem", "**/*.key", "**/id_rsa*", "**/credentials*", "**/.aws/**", "**/.ssh/**" ], "codeTracking.paused": false, "codeTracking.redactPaths": false, "codeTracking.aiSummary.enabled": false, "codeTracking.aiSummary.anthropicApiKey": "", "codeTracking.aiSummary.model": "claude-haiku-4-5" }