DevLedger is a high-performance, local-first developer activity ledger designed for transparency, privacy, and data integrity. It captures granular IDE interactions and reconstructs them into verifiable coding sessions using a cryptographic hash chain.
- Immutable Event Log: All activity is stored in an append-only JSONL format, protected by a SHA-256 hash chain (blockchain-like integrity).
- Intelligent Session Reconstruction: Beyond raw events, DevLedger implements a heartbeat-based timeline model to accurately calculate active coding time and detect idle periods.
- Behavioral Analysis Layer: Detects non-human editing patterns (e.g., large automated pastes) through statistical analysis of edit entropy and timing.
- Zero External Dependencies: No APIs, no telemetry, no cloud. Your data never leaves your machine.
- Automated Reporting: Generates comprehensive Markdown reports and SVG visualizations for project documentation.
graph TD
VSCode[VS Code Extension] -->|Normalized Events| Core[DevLedger Core]
Core -->|SHA-256 Chaining| Log[(Append-only Log)]
subgraph "Processing Engine"
Log --> Agg[Aggregator]
Agg --> Sessions[Session Reconstruction]
Agg --> Behavior[Behavioral Analysis]
end
Sessions --> Report[Markdown / SVG Generator]
Behavior --> Report
Log --> Verify[Integrity Verification CLI]
DevLedger ensures data validity using a sequential cryptographic link. Each event
This model prevents:
- Silent Tampering: Any modification to a historical event invalidates all subsequent hashes.
- Backdating: Events are timestamped and chained in real-time.
- Data Loss: Gaps in the chain are immediately detectable during verification.
- Node.js v18+
- pnpm
pnpm install
pnpm build
# Install CLI globally
cd packages/cli && pnpm link --global- Navigate to
packages/vscode-extension. - Build:
pnpm build. - Package:
npx vsce package --no-dependencies --allow-missing-repository --allow-star-activation. - Install the resulting
.vsixvia the Extensions view in VS Code.
| Command | Description |
|---|---|
devledger stats |
Display raw aggregated statistics in JSON format. |
devledger report |
Generate a human-readable Markdown report. |
devledger inject -f <file> |
Update a specific file (e.g. README) between tags. |
devledger verify |
Validate the integrity of the entire hash chain. |
devledger reset <project> |
Insert a logical checkpoint to restart statistics tracking. |
- Total Events: 155
- Active Sessions: 1
- Total Coding Time: 5m
- Total Idle Time: 4m
- Integrity Hash:
ed79356eeeffad00886086cdd8a971da7c102f4cd56329e0648093b170c6b7cf - Summary Hash:
2a58d156a25da59334fdcbd4ad892790d3515f3a6853d9bfe1bd5166005365a7
- Humanity Score: 100%
- Behavioral patterns consistent with human activity
- typescript: 5m
- No abnormal patterns detected
DevLedger is designed as a trustless auditing tool. While it runs locally, the integrity hash allows for external verification of your activity logs. It is recommended to include the Integrity Hash in your project commits to provide a permanent, verifiable record of development effort.
Distributed under the MIT License. See LICENSE for more information.