Your local-first workspace for focused work, planning, and personal productivity.
Use BIT Focus | View changelog | Report an issue
BIT Focus combines a focus timer, time tracking, project planning, calendar timeblocking, rewards, notes, whiteboarding, ambient sound, and optional AI in one day-to-day workspace. Core features work without an account, and app data stays in your browser unless you explicitly connect an account or use an integration.
Project status: BIT Focus is under active development. Export a
.bitf.jsonbackup regularly, especially before upgrading a self-hosted instance.
Use BIT Focus
The easiest way to get started is the hosted app:
No installation or account is required. Complete onboarding, choose your tags and theme, then start a focus session. Accounts are optional and are only needed for cross-device sync.
BIT Focus is designed around a practical daily loop:
- Plan work with projects, tasks, deadlines, estimates, and calendar timeblocks.
- Start a standard or Pomodoro focus session from any page.
- Compare planned time with completed sessions and review trends by tag.
- Use earned points for self-defined rewards.
- Export a local backup or opt into account sync when you need another device.
Features
Focus and time tracking
- Standard count-up and configurable Pomodoro timers
- Global mini timer, document-title timer, and Picture-in-Picture timer
- Manual session entry for time tracked elsewhere
- Searchable focus table with filtering, sorting, pagination, bulk editing, deletion, and CSV export
- Focus charts, tag breakdowns, yearly heatmap, and streak tracking
- Optional Discord webhook updates and quick messages
Planning and project work
- Projects containing tasks directly, with Inbox, Today, Upcoming, tag views, saved filters, Completed, and Trash
- Tasks with existing tags, primary focus tag, deadlines, priorities, estimates, notes, and optional sections
- List search, sorting, grouping, manual ordering, bulk editing, restore, and project archiving
- Task-linked standard/Pomodoro sessions, estimated versus actual time, and task results in Home's weekly review
- Task deadlines on the existing calendar, plus multiple linked calendar blocks per task
- Automatic migration of older issues and todo records, retaining milestone budgets/payment states and older backups
- Day and week calendar views for planned timeblocks and actual focus sessions
- Drag-to-create, move, resize, edit, and filter timeblocks
Focus environment
- Ambience mixer with 18 loopable sounds and per-sound volume controls
- Global pause and resume for the ambience mix
- Embedded YouTube player on the Focus page
- Floating notepad and global keyboard shortcuts
- Multiple light, dark, AMOLED, pastel, and themed color schemes
- Feature toggles for hiding tools you do not use
Personal workspace
- Custom rewards, discounts, point loans, and redemptions
- Context-aware AI chat using your own Groq or Google API key
.bitf.jsonexport and import for portable backups- Optional accounts with two-way sync, conflict resolution, and manual upload/download controls
Privacy and data ownership
BIT Focus is local-first:
- Focus sessions, projects, rewards, drawings, settings, and other workspace data are stored in IndexedDB and local storage.
- You can use the core app while signed out.
- AI API keys are supplied by you and stored locally in your browser.
- Data only leaves your browser when you choose a networked feature such as AI chat, a Discord webhook, account authentication, or cloud sync.
- Exported
.bitf.jsonbackups exclude account session tokens.
Browser storage can be cleared by browser settings, privacy tools, or site-data cleanup. Keep backups if the data matters to you.
Run locally
Requirements
- Node.js 18 or newer
- pnpm
Setup
git clone https://github.com/BrazeDaGreat/bit-focus.git
cd bit-focus
pnpm install
pnpm dev
Open http://localhost:3000.
Useful commands:
| Command | Purpose |
|---|---|
pnpm dev |
Start the Turbopack development server |
pnpm build |
Create a production build |
pnpm start |
Serve the production build |
pnpm test |
Task migration, backup, sync, and date regression tests |
pnpm test:e2e |
Desktop/mobile task workflows (dev server on port 3001) |
pnpm lint |
Run the configured Next.js lint command |
No environment variables are required for local-only use. The AI providers use API keys entered in the app.
Optional account and sync backend
Accounts and cross-device sync use PocketBase. The app defaults to the public BIT Focus backend. To point a self-hosted frontend at your own compatible PocketBase instance, set:
NEXT_PUBLIC_POCKETBASE_URL=https://your-pocketbase.example.com
A custom backend must provide the authentication providers and owner-scoped sync collection expected by the app. Without that backend, local features still work; account and sync features will not.
Self-hosting
BIT Focus is a standard Next.js application and can be hosted anywhere that supports Next.js 15. For a basic Node.js deployment:
pnpm install --frozen-lockfile
pnpm build
pnpm start
Use HTTPS in production so browser storage, authentication, clipboard access, notifications, and Picture-in-Picture behavior work reliably. If you do not want to maintain a deployment, use the hosted version at focus.uziraze.com.
Contributing
Contributions are welcome. Bug reports, documentation fixes, accessibility improvements, focused UI refinements, and well-scoped feature proposals are useful.
- Search existing issues before opening a new one.
- Fork the repository and create a branch from the current default branch.
- Install dependencies with
pnpm install. - Make a focused change that follows the existing TypeScript, React, Tailwind, and shadcn/ui patterns.
- Run
pnpm buildandpnpm lintwhere supported. - Open a pull request explaining the problem, solution, test steps, and any visible UI changes.
For larger features or changes to persistence and sync behavior, open an issue first. Include screenshots for UI changes and note any IndexedDB schema, import/export, or backward-compatibility impact.
Please do not include API keys, authentication tokens, webhook URLs, personal exports, or other private data in issues, commits, or screenshots.
Architecture
BIT Focus uses:
- Next.js 15 with the App Router and Turbopack
- React 19 and TypeScript
- Tailwind CSS 4 with shadcn/ui and Radix primitives
- Dexie.js over IndexedDB for local persistence
- Zustand and React Context for application state
- PocketBase for optional authentication and sync
- Recharts and React Big Calendar for analytics and scheduling
- TipTap for rich text notes
- Vercel AI SDK and assistant-ui for optional AI chat
The main application routes live in app/, shared interface components in components/, state stores and contexts in hooks/, and persistence/integration code in lib/.
License
BIT Focus is available under the MIT License.
Projects-to-tasks upgrade
Database version 13 converts issues into tasks with stable identities, preserving project notes and links, issue dates and completion, and milestone names as optional sections. Original milestone budgets, deadlines, payment states, and project versions remain available under Previous milestone details. Old issue labels can be mapped to existing tags in task details.
Task deadlines, estimates, and focus time are distinct. Date-only deadlines retain their calendar day across time zones. Existing focus history is kept; only sessions started from a task gain task/project attribution. Calendar blocks can link to a task without adding scheduling fields to the task.
The upgrade resets the sync pull cursor once, allowing previously unknown task records to be fetched. Use the updated app on each device; older clients still operate on the retained issue records and do not understand task edits. Tasks and saved filters use the existing generic sync collection. No backend collection is added. New backups include tasks, saved filters, and task links; older BIT Focus backups are converted when restored.
Run pnpm test for persistence regressions. For browser checks, install Chromium with pnpm exec playwright install chromium, start pnpm dev --port 3001, then run pnpm test:e2e.