github-actions[bot] ea02572332 [AI] Bundle default-db.sqlite into worker chunk; recover offline init
Extends the bundling strategy from #7710 (SQL migrations + AQL view probe)
to the last init-time fetch: `default-db.sqlite`. `populateDefaultFilesystem`
in `packages/loot-core/src/platform/server/fs/index.ts` previously fetched
`data-file-index.txt` plus each listed asset from the sync server on every
backend init. SharedWorker fetches bypass the service-worker cache in some
browser/PWA contexts (notably Safari/iOS), so any init-path network call
breaks offline app load — which is exactly the FatalError users hit when
their sync server is unreachable (issue #7759).

The fix inlines the SQLite seed file into the loot-core worker chunk via a
small Vite plugin (`?bytes` query, lives in `packages/loot-core/scripts/
bytes-loader.mts` and is reused by both `vite.config.mts` and
`vitest.web.config.ts`). The generated module wraps the base64 → Uint8Array
decode in an IIFE so V8 can GC the intermediate base64 + binary strings
after the byte array is built; only the 282KB Uint8Array stays resident.

`populateDefaultFilesystem` is now a single `_writeFile(bundledDatabasePath,
defaultDbBytes)` — zero network I/O on init.

Desktop-client's `stagePublicData` continues to copy `default-db.sqlite`
into `public/data/` for one release so older clients still pinned by a
stale service-worker cache can finish populating their in-memory FS after
upgrade; new clients ignore it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 19:14:29 +01:00

Actualbudget

Getting Started

Actual is a local-first personal finance tool. It is 100% free and open-source, written in NodeJS, it has a synchronization element so that all your changes can move between devices without any heavy lifting.

If you are interested in contributing, or want to know how development works, see our contributing document we would love to have you.

Want to say thanks? Click the at the top of the page.

Installation

There are four ways to deploy Actual:

  1. One-click deployment via PikaPods (~1.40 $/month) - recommended for non-technical users
  2. Managed hosting via Fly.io (~1.50 $/month)
  3. Self-hosted by using a Docker image
  4. Local-only apps - downloadable Windows, Mac and Linux apps you can run on your device

Learn more in the installation instructions docs.

Ready to Start Budgeting?

Read about Envelope budgeting to know more about the idea behind Actual Budget.

Are you new to budgeting or want to start fresh?

Check out the community's Starting Fresh guide so you can quickly get up and running!

Are you migrating from other budgeting apps?

Check out the community's Migration guide to start jumping on the Actual Budget train!

Documentation

We have a wide range of documentation on how to use Actual, this is all available in our Community Documentation, this includes topics on Budgeting, Account Management, Tips & Tricks and some documentation for developers.

Contributing

Actual is a community driven product. Learn more about contributing to Actual.

Code structure

The Actual app is split up into a few packages:

  • loot-core - The core application that runs on any platform
  • desktop-client - The desktop UI
  • desktop-electron - The desktop app

More information on the project structure is available in our community documentation.

Feature Requests

Current feature requests can be seen here. Vote for your favorite requests by reacting 👍 to the top comment of the request.

To add new feature requests, open a new Issue of the "Feature Request" type.

Translation

Make Actual Budget accessible to more people by helping with the Internationalization of Actual. We are using a crowd sourcing tool to manage the translations, see our Weblate Project. Weblate proudly supports open-source software projects through their Libre plan.

Translation status

Repo Activity

Alt

Sponsors

Thanks to our wonderful sponsors who make Actual Budget possible!

Deploys by Netlify

Description
No description provided
Readme 1.1 GiB
Latest
2026-05-08 14:03:38 -05:00
Languages
TypeScript 94.1%
JavaScript 4.9%
CSS 0.6%