DragonFocus is a minimalist focus workspace that combines a Pomodoro timer, class organization boards, and a rich-text note editor in one app. It runs as an Electron desktop app and as a static site on GitHub Pages.
- Six productivity methods: Classic Pomodoro, Super-Pomodoro, 52/17, Ultradian, Animedoro and DeskTime.
- Five timer visualizations (ring, progress bar, gauge, dot matrix, pie) plus notifications-only.
- Configurable durations, cycle counts, accent color, theme, background atmosphere, optional YouTube background, clock and quote styling, chime, and tasks with work-type recommendations.
- A rotating bank of 49 focus quotes and 24 break quotes so the corner quote rarely repeats back-to-back.
- Work type is a per-task category (Math / problems, Review, Reading, Writing, Coding, Memorization, Creative, General, or Auto). Each task shows its own suggested timer; pick a task to see the full recommendation and apply it.
- ICS calendar sync (URL or pasted content), keyboard shortcuts (
Space,R,K,T,S), session dots and an accessible live region.
- Padlet-style boards: add school classes, each with its own board.
- Cards are draggable by pointer and can also be positioned with numeric X/Y fields in the edit dialog (keyboard alternative).
- Two card types:
- Google tab / link — stores a URL for reuse in the class.
- Assignment — due date, assignment type, description, and linked websites.
- If an assignment links to a website that already exists as a card in the same class, a dashed connector line is drawn between the two cards and the link chip is highlighted. Clicking a linked website opens it directly in the browser.
- Choose a document type before writing; the editor changes to match:
- PDF — paper-like document page with serif text and page number.
- PPTX — 16:9 slide canvas with a slide strip and “New slide”.
- XLSX — editable 8-column × 20-row spreadsheet grid.
- Note — plain rich-text page.
- Editable title, fonts, sizes, bold/italic/underline, lists, indentation, alignment, images, video and file attachments.
- Notes autosave locally and carry a class tag or “Other”.
- Export dialog on every note:
- Download to this device — real
.pdf,.xlsx,.pptxwhen the pinned CDN libraries load; a styled.htmlfallback otherwise. - Add to Google Drive — opens a dedicated Sign in with Google dialog, asks you to authorize the app, then uploads automatically and shows the saved file name (requires your own OAuth client ID; see below). Already-connected accounts skip the prompt until you choose “Use another account”.
- Download to this device — real
The DragonFocus name, settings button and quote stay in the same place in every mode. Hover the left rail (or click its chevron) to expand the three mode links.
Requirements: Node.js 20+ and npm.
npm install
npm startBuild an installer for Windows:
npm run build:winRun syntax checks:
npm testDesktop-only note saving to C:\DragonFocus Documents was replaced by the download / Google Drive export dialog, so the same export flow works in the browser and in Electron. No files are written to disk by the web build.
- In DragonFocus, use Export note → Add to Google Drive. If this is your first time, the dialog walks you through setup:
- Click Open Google Cloud Console, configure the OAuth consent screen (name your app, add your own email as a Test user while it is in Testing), create an OAuth client ID of type Web application, enable the Google Drive API, and add the shown authorized JavaScript origin (for local testing:
http://localhost:3000). - Paste the client ID into the dialog, or upload the
client_secret.jsonyou downloaded from Google Cloud — the app readsweb.client_idautomatically. - Click Save and sign in.
- Click Open Google Cloud Console, configure the OAuth consent screen (name your app, add your own email as a Test user while it is in Testing), create an OAuth client ID of type Web application, enable the Google Drive API, and add the shown authorized JavaScript origin (for local testing:
- Sign in with Google and the note uploads automatically. Google shows the normal Choose an account screen and asks permission to “see, edit, create, and delete only the specific Google Drive files you use with this app” (
drive.filescope). Future exports skip setup until you sign out.
You can also paste the client ID later under Settings → Classes & Docs → Google Drive client ID. Google requires this ID to belong to your own account; no app can provide it for you. The client ID is stored only in your browser's local storage. No token is stored by the app.
The site is fully static: index.html, styles.css, script.js, fluid.js, and CDN libraries. No build step is needed.
- In GitHub Desktop, clone the repository (or open
C:\Python\Pomodoroas the local repo). - Make your changes, review them in Changes, write a summary, and click Commit to main.
- Click Publish repository (first time only), or Push origin for later changes.
- On GitHub, open Settings → Pages.
- Under Build and deployment:
- Source: Deploy from a branch
- Branch: main / root
- Save. After a minute or two the site is live at
https://techbyarnav.github.io/Pomodoro/. - A
.nojekyllfile is included so GitHub serves all files verbatim.
Notes: the GitHub Pages URL must match the repository name /Pomodoro/; all asset links are relative, so no base-path configuration is needed. Changing the repository name changes the URL. External libraries are loaded from jsDelivr with Subresource Integrity hashes; the Google Identity Services script comes from Google. An internet connection is needed for Google Fonts, the export libraries and Google Drive. If they are unavailable, the app still runs and note export falls back to styled HTML.
YouTube background troubleshooting: some videos have embedding disabled and YouTube reports error 153. DragonFocus detects this, restores the canvas background and shows a message in Settings → Background video; choose a different video. The embed URL includes enablejsapi=1 and a valid origin only on http(s) pages (the desktop file:// origin is omitted).
| File | Purpose |
|---|---|
index.html |
All UI: top bar, universal quote/settings, mode rail, three views, settings dialog |
styles.css |
Design tokens, dark/light themes, minimalist base with small neobrutalist and glass surfaces |
script.js |
Timer controller, settings, tasks, ICS, organization boards, notes, export/Drive upload |
fluid.js |
Optional WebGL background (respects reduced motion) |
main.js |
Electron main process, menu, tray, validated external-link IPC |
preload.js |
Minimal, named contextBridge API |
.nojekyll |
Tells GitHub Pages not to process files with Jekyll |
package.json |
Scripts, dependencies, Electron Builder config |
Tasks, classes, notes, settings and the Drive client ID are stored locally in localStorage. No account or backend is required. Google Drive upload only happens after you explicitly choose it and authorize the app. ICS feeds are fetched from the URL you provide. The YouTube background, if enabled, loads frames from YouTube.
npm testchecks JavaScript syntax for every app script.npm audit --omit=devreports production dependency vulnerabilities.- Desktop runtime is verified with Electron; web behavior is the same code path with
window.electronAPIabsent.
This project is a checklist result, not legal advice. Review the audit findings before shipping publicly.