ducktivity
> All-in-one productivity app. Manage tasks, calendars, habits, and more.
> repo.stats
- [ STARS ]
- 0
- [ FORKS ]
- 0
- [ COMMITS ]
- 3
- [ CREATED ]
- Sep 2025
- [ LAST PUSH ]
- 5mo ago
- TypeScript 92.3%
- CSS 5.0%
- JavaScript 2.6%
> Overview
Ducktivity is a local-first desktop planner built with Electron, React, TypeScript, and SQLite. It keeps planning calm and proposal-based, with deterministic local logic and an in-process MyDuck assistant runtime.
Current Stack
- Electron +
electron-vite - React + TypeScript renderer
- Typed preload bridge with
contextIsolationandsandbox - SQLite via
better-sqlite3 - Zod contracts for IPC payloads
- Vitest for unit and integration tests
- Playwright for Electron end-to-end and visual regression coverage
Product Surface
Home: analytics snapshot, next-up tasks, focus-area previews, local signals, and provider-aware recommendation upgradesTasks: temporal day/week/month planning, inline quick capture, full editor, completion flow, focus linking, and recommendation routingFocus Areas: ranked planning surface with role/status editing, priority shifts, linked-task summaries, and local recommendationsPomodoro: persisted timer sessions with a main-process runtime, recovery, history, and task/focus linkingJournal: manual notes, deterministic daily and weekly reflections, relation links, and grouped browsingDocs: manual docs, deterministic generated summaries and plans, filters, and relation linksMyDuck: provider management, Keychain-backed secrets, local transcript persistence, deterministic proposal drafting, apply/dismiss flows, and provider-aware recommendation text upgrades
Local-First Rules
- Core planning features work with no provider configured.
- Provider secrets are stored in Keychain, not SQLite.
- MyDuck runs in-process and never writes planner data directly from chat output.
- Proposed changes only land after explicit
Apply.
Requirements
- Node.js
20+ pnpm9+
Getting Started
Install dependencies:
pnpm install
Start the desktop app in development:
pnpm dev
Build the Electron app:
pnpm build
Create an unsigned local app bundle:
pnpm dist --dir
The packaged output is written to release/.
Testing
Static and unit coverage:
pnpm typecheck
pnpm lint
pnpm test
Electron end-to-end coverage:
pnpm test:e2e
Visual baselines:
pnpm test:visual
pnpm test:visual:update
better-sqlite3 is rebuilt for both Node and Electron through the existing rebuild:node-native, rebuild:native, and postinstall scripts.
Security CI
GitHub Actions security checks live in .github/workflows/security.yml. The workflow runs on pull requests, pushes to main or master, manual dispatch, and a weekly schedule, and it currently includes:
pnpm typecheckpnpm audit --audit-level highgitleakssecret scanning- CodeQL for JavaScript/TypeScript on public repositories by default
If this repository is private and has GitHub Advanced Security available, set the repository variable ENABLE_CODEQL=true to enable the CodeQL job.
Project Structure
src/main/- Electron entrypoint, typed IPC handlers, persistence bootstrap, MyDuck runtime/service logic, and packaging-adjacent services
src/preload/- secure
window.ducktivitybridge
- secure
src/renderer/- app shell, section screens, dialogs, and shared recommendation UI
src/shared/- domain models, feature logic, deterministic generators, fixtures, and Zod-backed contracts
tests/unit/- shared logic, repository, runtime, and contract tests
tests/e2e/- Electron smoke, feature, and visual-regression tests
build/- packaging resources, including the app icon
docs/- product planning, manual QA notes, and release documentation for the Electron app
Packaging And Release
- Auto-updates are explicitly disabled in the current desktop app. Releases are distributed manually until a signed update channel exists.
- Packaging uses the metadata in
package.json, resources frombuild/, and the notarization hook inscripts/after-sign.mjs. - When the following environment variables are set, the
afterSignhook notarizes and staples the macOS.appbundle:APPLE_IDAPPLE_APP_SPECIFIC_PASSWORDAPPLE_TEAM_ID
- Release workflow details live in
docs/release-electron.md.