@frozenfrank/toggl-to-delorean
v1.5.0
Published
Pull time entries from Toggl (or CSV), review and chart them, and format timecards for entry into DeLorean.
Maintainers
Readme
Toggl to Delorean
A small browser-based utility that loads time entries from Toggl (or a CSV export), groups and filters them for review, and formats clean timecard reports ready for entry into DeLorean.
The app follows a simple three-step workflow: Import → Filter → View/Export. Pull a date range straight from the Toggl API or drop in a CSV, narrow the data down by client, billable status, and project code, then read it back as a daily timecard, a set of charts, or a full-month Markdown report.
Features
- Two data sources — fetch directly from the Toggl API v9 (via a lightweight cloud proxy) or upload a CSV export parsed with PapaParse.
- Flexible grouping — view entries by day, week, month, or all at once, with next/prev navigation.
- Filtering — filter by client, billable status, and project codes (DLG, TLP, PRJ, QAN, XDS).
- Timecard reports — formatted output sized for re-entry into DeLorean, with optional per-entry descriptions.
- Charts — visual summaries of where time was spent.
- Monthly Markdown export — generate a complete one-section-per-day Markdown report for an entire month.
- Keyboard shortcuts —
Ttoggle scale,O/W/M/Aset scale,N/Pnavigate,Dtoggle descriptions.
Getting Started
git clone https://github.com/frozenfrank/toggl-to-delorean.git
cd toggl-to-delorean
npm install
npm startnpm start builds the app and serves it locally with http-server. Open the printed URL in your browser.
Note: This project depends on Web Awesome Pro, referenced as a local file path in
devDependencies. You'll need a local copy to install and build.
Scripts
| Command | Description |
| --- | --- |
| npm start / npm run serve | Build and serve the app locally |
| npm run build | Bundle to dist/ with esbuild |
| npm run distribute | Build and publish to npm |
Project Structure
The frontend is vanilla TypeScript (no framework), bundled with esbuild and dependent on Web Awesome (Lit) components.
src/index.ts— bundle entry pointsrc/script.ts— main app logic: data import, grouping by time scale, and report renderingsrc/time-entry/— the unifiedTimeEntrymodel that normalizes CSV and API formats, plus grouping/processing helperssrc/toggl/— Toggl API v9 client (Basic Auth via cloud proxy)src/report.ts/src/markdown-report.ts— timecard and monthly Markdown report builderssrc/charts.ts— chart renderingscripts/— build and serve helpers
Toggl API tokens are stored in localStorage for convenience.
