That is, if you want your notes to last a very long time (I'm talking years/decades). By the very definition of the local-first movement, any cloud-based application that, for some reason (such as cost versus profit), stops having its servers running, will take your notes with it
If you want to have notes that last for decades and avoid the situation of losing them due to a service that will cease to exist, use apps like Obsidian, Logseq, TreeWrite (which I developed), or a text editor with simple .txt files
However, I don't believe that the cloud or a network in general is an enemy here. There are some very useful use cases that don't work in local-only applications, such as synchronization between devices and note sharing. I believe that this is even the main difference between local-only and local-first, since in local-first we focus most of an application on our own machine, but we open doors for certain interactions with other devices and services, which gives us more flexibility and possibilities
Hi! I'm building Koru, an open-source, local-first notes and docs workspace. Everything lives in a local database on your device, no account needed, and it works fully offline.
Every document is a Loro CRDT, so edits from different devices merge without a central server deciding who wins. Devices sync directly with each other over iroh (P2P), and that's free. There's an optional paid cloud sync for people who want an always-on copy, and that part isn't open source.
Is it worth having some clarification as to what a local first app specifically is? Maybe as a pinned post or whatever reddit’s answer to this is. Asking because I do see quite a few apps posted here that are misunderstanding what “local first” means.
For example I have seen more than one posting here of personal finance web apps that writes to a Postgres server. It has no browser side db or cache. I think they are conflating self hosting with local first. At that point you may as well call Wordpress local first - which I would not.
I have also seen people posting desktop apps that just write local like markdown editors. With no sync story. That is just a local desktop app. At that point you could call your built in OS calculator local first - which I would not.
I would like to think we are sticking the term what was coined in the Ink & Switch doc which has a specific meaning and leans towards using the sync engine or something like it.
My concern is less about what gets posted here, and more about not watering down a new-ish term that should get its due understanding. Am I off base here? Correct me if I am wrong. Open discussion please - or maybe reddit is not the place for this discussion?
Author here. I've been designing a local-first data layer for most of this year, and I kept having the same conversation. I'd say "local-first" and people would hear ownership, or offline, or speed. So I wrote this post about where the three meanings come from and why they split.
The short version is that CRDTs can't enforce rules like one passenger per seat, so most tools put a server back in charge. That's how you end up with Zero saying it isn't local-first and Jazz saying it is, with the same design.
The data layer I'm building for Hologram, an Elixir web framework, is the server-in-charge kind. The app never waits for the network, but the server has the final say on permissions and rules.
There are five demos in there, one for each idea. Playing with them as you read is half the fun.
I’ve been getting increasingly frustrated with modern bookmarking and note-taking apps. It feels like every tool forces your private data onto their cloud servers, locks you behind a subscription, and gets sluggish with loading spinners if your internet lags.
So, I spent the last few months building a local-first alternative called Motif (https://motif.byant.dev).
The core concept is that you should own your data. Everything you save (links, highlights, images, notes) lives strictly in your browser’s local IndexedDB. It works 100% offline and searches your database instantly.
What I built:
• Chrome, Firefox, and Edge companion extensions for one-click web clipping and text highlighting.
• Optional AES-256 local database password encryption (via Web Cryptography API) so your data is encrypted right inside the browser.
• MiniSearch-powered instant full-text search.
• A clean spatial UI featuring perspective-tilting cards and fluid animations.
The project is open-source and free to use locally. I’d love to hear your thoughts on local-first web apps or get any feedback on the UI/UX!
I’m a Chartered Accountant from India. In our line of work, confidentiality and auditability are non-negotiable.
Yet in modern personal finance, the standard playbook is terrifying: we download sensitive PDFs containing our PAN, bank account numbers, mutual fund folios (CAMS/KFintech), Zerodha trades, and salary slips... and upload them to venture-backed fintech startups whose business model is peddling loans or getting acquired and shutting down (RIP Mint).
I wanted zero cloud dependencies, zero external network egress, and 100% offline ownership.
So I built Personal Finance ETL, an open-source desktop lakehouse that stores and computes everything locally on your laptop silicon.
Real Production Scale (My Personal Baseline):
1,600+ source artifacts tracked by SHA-256 content hashes
147 investment instruments reconciled against independent broker records
449,000+ published Silver & Gold rows across 66 contracts (20 Bronze, 24 Silver, 22 Gold)
Complete warm-cache pipeline run in 23.95 seconds; cold rebuild in 40–45s
Zero network egress. Rs. 0.00 cloud costs.
The Storage Architecture:
Instead of forcing one database to do everything, I split the workload:
SQLite (The Control Plane):
Does zero analytics.
Runs in WAL mode to handle raw file SHA-256 content deduplication, pipeline execution manifests, and audit state.
If an ingestion fails midway, SQLite ensures atomic rollbacks.
DuckDB (The Analytical Warehouse):
Houses a 3-tier Medallion architecture (Bronze, Silver, Gold).
Columnar execution means decade-long portfolio aggregations run in 5 to 15 milliseconds.
Hot Snapshotting from the GUI:
Built a CustomTkinter desktop interface with a 1-click disaster recovery backup.
Uses PRAGMA wal_checkpoint(TRUNCATE) to flush WAL logs and packages deterministic timestamped archives with SHA-256 checksums.
I used LLMs along the way to chew through test suites and docs, but the storage engine, dual-database boundaries, and accounting controls were built from the ground up to satisfy strict audit standards.
consider how something like simple a text editor works; user inputs text, then the user saves the file to the desktop.
the text editor is a simple example. "local" is only relevent if there is a concept of a "remote".
i am working on a messaging app and ive been promoting it as "local-first", but i dont think its the correct term because it seems to confuse users. i think i need to emphesise something along the lines of "local-only". my app is only using browser storage and avoids api's and databases for messaging by using webrtc.
calling it "local-first" sounds like it implied "remote-second", but there is no remote in the traditional sense.
I've just released my 2025 Frontend Boilerplate focused on true user ownership, privacy-by-design principles, and resilient application architecture. This project sits in that sweet spot between minimal starter templates and full-fledged applications.
Why Another Boilerplate?
Standard CLI tools (create-next-app, vite, etc.) provide excellent framework-specific foundations but frequently neglect critical aspects of production-ready applications. They excel at demonstrating React/Vue/etc. but fall short on things such as:
Privacy-conscious data persistence
User authentication that respects sovereignty
Comprehensive state management patterns
Accessibility as standard (not afterthought)
Resilient offline capabilities
Organizational patterns that scale
Core Technical Stack
The boilerplate implements a deliberately chosen stack that emphasizes user sovereignty.
Local-First Data Persistence: Application state lives on YOUR device first
CryptoJS Integration: All local storage is encrypted by default - your data remains YOUR data
PassportJS Authentication: Simple yet extensible auth patterns that respect privacy
Flexible Node Backend: For when you need server-side operations without surrendering data ownership
A Privacy-Centric Approach
he corporate cloud has normalized the extraction of our digital lives into centralized data silos. This boilerplate rejects that paradigm by default. With CryptoJS, your application data is encrypted before touching storage, ensuring that even in a compromised browser environment, sensitive information remains protected. The authentication flow via PassportJS retrieves encryption keys while maintaining separation of concerns.
This isn't just engineering convenience - it's digital sovereignty by design.
Future Directions
I'm particularly interested in community feedback on:
Additional privacy-enhancing libraries that could be integrated
Better patterns for offline-first operation
Improvements to the encryption/authentication flow
Additional features that should be standard in privacy-respecting applications
The full documentation and code walkthrough is available on my personal site.
This boilerplate is for you if you're building applications where users should truly own their data, need authentication that doesn't require surrendering privacy, and want solid structural patterns for building resilient frontends.
Let's take back ownership of our digital infrastructure, one application at a time.
Would love your thoughts, critiques and contributions. The repo is open for PRs and I'm actively maintaining this as part of a broader commitment to local-first software principles.RetryClaude can make mistakes. Please double-check responses.
We believe software should be fully portable, inspectable, and local-first. We created a curated list: Awesome Single-File Tools—a collection of zero-dependency, standalone HTML tools that run entirely offline in any modern browser.
💎 Crystal Dock: Modular meta-platform connecting isolated single-file web tools via iframe postMessage protocol.
📜 TiddlyWiki: The classic pioneer of single-file web apps.
If you love local-first productivity, zero build steps, and total ownership over your tools, check it out and feel free to submit your favorite single-file HTML tools via PR!
Hi everyone! I’m a master’s student at Tampere University. I’m currently researching the Developer Experience (DX) of local-first sync engines for my thesis.
I’m looking to collect survey data from devs who have used any of the following in a non-trivial way (production or serious side-projects) in the last 24 months:
Zero, Automerge, ElectricSQL, PowerSync, Yjs, or ShareDB.
How you can help:
Since I do not want to spam you all with an external link, please send me a DM or react to this post with a 🚀 if you’re open to participating!
I’ll send you the link to the anonymous survey (it takes about 10–15 mins). Your insights on things like conflict behavior and debugging sync will be incredibly valuable for the research.
Thank you so much for your time and for supporting student research in the local-first space! 🙏
I've been working on this app for a while, and I recently finished a rewrite from scratch. It is local-first, and relies on the Solid Protocol to synchronize the changes. I'm also building more apps using a similar architecture, so let me know what you think of this :).
This is a project my team and I have been working on for the better part of a year now, myself for 6 months, called Rana. It's a local-first ecosystem for running AI models from your browser, including image generation, chatbots, maintain personal collections, and knowledge bases. All of this is done and stored on your local browser through the use of webgpu, wasm, peer-to-peer protocols (we use Gun), and browser based storage through IndexDB. We don't track you, store any of your data, or even log you. We do have a subscription based plan to allow for commercial license usage of the images your generate and some cloud based features we plan on adding, but you don't need a subscription to use the system.
📣 Tune in for #LoFi/37 for yet another exciting lineup (See below).
1️⃣ Dongda Li @dongdongbh - PhD candidate at Syracuse University researching multimodal AI and creator of Mindwtr, talking about "Building a Cross-Platform Local-First GTD App as a Solo Dev".
2️⃣ Samson Ssali @ssali_samson - Software Developer at JITPOMI LLC, discussing "SEYFR — Send Your Files Right: Building a Cross-Platform File Sharing App with iroh".
3️⃣ Bryan Reilly bryrei.bsky.social - Former software engineer at Visa and Google, now building CoCube, talking about "Local-First Modular Tools with CoCube"
I’m a huge believer in the local-first movement, but I hated that we still use PDFs for "final" records. I built a new format called .fdd (Formatted Data Document) that allows a document to be its own database and UI.
The "Magic": By using the File System Access API, an .fdd file can actually save updates to itself on your hard drive. I’ve included an example 1-file CRM in the repo where you can add notes and click "Save," and the file itself updates.
It’s cryptographically signed and "logic-less" (no JS allowed), so it's safe to share, but the data stays yours. No server required.
Would love to hear what this community thinks about "Sovereign Documents" as a pillar of the local-first stack.
If you’re evaluating local-first, here’s my journey implementing search on that architecture: Postgres, Typesense, Orama, and how I landed on FlexSearch. A tale of frustrated dreams, utopian user experiences and calculated tradeoffs.
First, to clear up the name right away: no blockchain, no crypto, no tokens, no accounts. By "dapp" here I just mean tiny, decentralized, local-first web apps whose data lives on your own devices instead of someone else's server.
The idea behind it
I've always loved pure P2P architecture — especially Syncthing — and ever since 2022 I've been building prototypes of an app framework inspired by that same model: your devices own the data, pair directly with each other, and sync without a central server.
Over the last few years I tried and tested a whole lineup of P2P and local-first stacks for this — GunJS, DXOS, Hyperbee / PearPass, Peerbit, and PouchDB — before eventually settling on Yjs CRDTs + an Ed25519-verified WebRTC mesh + plain browser IndexedDB. Over the last year, AI tools (Claude, OpenAI, and others) sped up progress dramatically and let me finally push a lot of these pieces over the finish line.
The practical itch behind it is simple: whenever I wanted a small shared app for family or friends — a meal planner linked to a shopping list, a shared expense splitter, a habit tracker, a game score keeper — the only options felt like:
Handing private household data to a SaaS app that forces everyone to create an account, or
Spinning up yet another container + Postgres + auth layer + backup job just for a 200-line CRUD app.
So I built this local-first, peer-to-peer app builder (MIT licensed) and I'm finally sharing it as a beta to get real feedback. Every app is a small HTML/JS bundle ("Code App") whose **source code, data, and files live locally in each member's browser (**IndexedDB+YjsCRDTs) and sync directly between invited devices over encrypted WebRTC.
There is no central database and no user account system. The only server involved is a tiny stateless WebRTC signaling broker that introduces peers — and you can self-host that in one Node command, or run an optional headless keeper node on a NAS/homeserver (Syncthing-style always-on peer) so devices stay synced even when phones are never online at the same time.
**Local-first storage (**IndexedDB+YjsCRDTs): All records, attachments, and the app's own HTML/JS source live locally on your device. Everything works offline out of the box and merges automatically when peers reconnect.
No accounts — cryptographic device identity: Each device generates a non-extractable WebCrypto Ed25519 keypair stored in IndexedDB. Every record write, deletion tombstone, member change, and source update is signed and independently verified by every peer.
Member-mesh whitelist (not open WebRTC rooms): Dapp documents never sync to anyone who merely knows a room password. Both peers perform a signed Ed25519 hello/proof handshake before a single document byte or file chunk is exchanged. Signaling messages themselves are AES-GCM encrypted under a room-derived key — the broker sees connection metadata (opaque topics & timing), never app content.
Sandboxed apps & owner-sealed source: Code Apps run inside opaque-origin iframes with a strict CSP (blocking external network requests, scripts, and forms) communicating over a nonce-protected postMessage bridge. Owners sign a path -> SHA-256 seal bound to the dapp's genesis so a non-owner on a modified client can't silently rewrite app code for everyone else.
Safety numbers & selective sharing: Contacts pair using safety numbers (and invite secrets stay in the URL fragment #, never hitting the host server). Apps can also share individual slices/events over sealed per-relationship channels — e.g. splitting one expense or sharing one diary entry without giving someone access to the entire app.
Documented threat model: There's a full docs/security/THREAT_MODEL.md in the repo listing both what's enforced and the honest residual risks (browser XSS boundary, signaling metadata, offline removal lag, etc.).
3 ways to run or self-host it
**Full self-hosted stack + Headless Keeper Node (**Dockerfile.headless/ Node >= 23.6): Serve the static dist/ build over HTTPS alongside node server/signaling.mjs (1 dependency: ws) and an optional headless keeper node (npm run headless or Docker). You invite the keeper into an app just like another device, and it gives you:
Always-on async sync & pin-all file replication persisted to disk (so two phones never need to be online at the same time),
Scheduled cron automations that write signed records on schedule,
A token-guarded JSON Control API +n8nwebhook integration (plus optional OpenAI-compatible LLM hook) so your local-first apps plug into existing workflows.
Zero-rebuild BYO signaling & TURN: Even on any hosted build, open Settings → Signaling and Settings → Relay (TURN / ICE) to point your device at your own server/signaling.mjs (wss://…) and/or coturn server. Those settings are device-local, never synced, and take effect immediately.
Free-tier Cloudflare deploy (docs/CLOUDFLARE.md): Includes a single-Worker deployment (cloudflare/signaling-worker/) using Static Assets + a SQLite Durable Object for signaling (strictly $0 STUN-only by default, with optional BYO TURN).
What's built in (11 editable starter apps + LLM-friendly building)
You can use or fork 11 built-in starter apps right away:
Linked kitchen suite:Recipe Book -> Meal Planner -> Shopping List (wired together locally via typed cross-app events/actions so planned meals automatically merge scaled ingredients into your shopping list)
Everyday tools:App Studio (visual schema/screen builder), Shared Expenses, To-Do List, Habit Tracker, Weight Tracker, Diary, Group Chat, and Game Score Keeper
Because apps are plain HTML/JS against a small local API ($store, $files, $share, $events), the build also publishes a concise Markdown spec (/agent-instructions.md / /llms.txt) you can hand to any local or cloud LLM to generate a custom app and import it in seconds.
Honest beta caveats & trade-offs
Since this is an early beta, here's what to expect upfront:
Hosted demo is temporary — do not rely on it:https://app.localdapp.workers.dev is only up to show the project and gather feedback — it could disappear at any time without notice. Because browser IndexedDB storage is tied to the site origin, don't put real data only on the demo URL; self-host your own instance if you actually want to use it.
Strict NAT / CGNAT without TURN: The hosted demo runs STUN-only (no shared TURN relay, to keep demo hosting strictly $0 with zero runaway bandwidth risk). Direct WebRTC connects fine across most home Wi-Fi networks, while strict corporate firewalls or symmetric mobile CGNAT will need your own coturn (or personal Cloudflare Realtime TURN free tier) configured in Settings → Signaling.
Async sync needs an overlap or a keeper: Without a headless keeper node (or two devices online at once), edits stay queued locally until peers overlap.
Key self-custody: Non-extractable device keys mean there is no central "reset password" button. Pair a second device or a keeper node for anything important, and on iOS install as a PWA to avoid Safari's 7-day storage eviction.
Early beta: MIT licensed, actively evolving — breaking protocol/storage changes are still possible before 1.0.
Quick way to test P2P sync in 30 seconds: Open the demo on your laptop + phone (or a normal browser window + an Incognito window), create one of the starter apps, open Dapp settings → Invite to send the link to your second device/window, verify the safety number, and try editing while toggling offline/online.
I'd genuinely love feedback on:
How direct STUN vs. BYO coturn behaves on your home/mobile networks,
Whether the local-first model + optional headless keeper node (Docker + n8n webhooks + control API) fits how you'd actually use it, and
What small everyday apps you'd want to build or replace SaaS with if sharing them didn't require maintaining a backend.
---
**Edit: quick visual demo:**
Two separate browser windows (**Owner** on the left, **Peer** on the right) connected directly over WebRTC, with no backend database and no page reloads.
**1. Live P2P data sync (Window 1 -> Window 2) with a small demo**
Adding a task in Window 1 signs it with Ed25519 and syncs it directly to Window 2 over the member-verified WebRTC mesh:
Window 2 adds a second task back to Window 1, and checking off a task updates both windows live:
**3. Editing the app's own source code in the browser**
Window 1 opens the built-in Code Editor and edits `index.html` (new title, banner, and CSS theme) while Window 2 keeps running the live app:
**4. Instant live code sync (zero refresh, data intact)**
Clicking **Save** signs and seals the updated source in a separate Yjs source document. Window 2 immediately re-renders with the new UI while keeping all synced tasks intact:
I run Claude Code and Codex all day, often as multi-agent workflows with dozens of subagents, and I didn't want to ship my prompts and code to a cloud service just to understand them. So I built coding.sh, which keeps everything on your machine.
What's stored locally
Prompts, tool calls, diffs, test runs, tokens and cost, in SQLite on your machine
Hooks into Claude Code, Codex, Gemini CLI, OpenCode, Copilot CLI, Aider and more
An MCP server, so your agent can look up its own past sessions
Free, no account, and nothing leaves your machine
What I found with it Across 57 workflow runs (666 subagents, ~$2,500 API-equivalent), broken prompt caches cost $106 extra, about 4% of spend. 41 of those breaks were agents idling at a barrier until their cache expired, and 40 subagents failed outright. coding.sh workflows stats shows the critical path and idle time, and the viewer draws each run as a timeline.
I also A/B tested a popular "be concise" plugin (10 tasks, 6 runs each, paired): replies were 17% shorter, but cost per run was +11% [+7%, +15%]. coding.sh compare and exp run your own tasks with and without a change and tell you whether the difference is real or noise.
Mining 3,600 of my sessions turned up a find-and-replace typo in my AGENTS.md that sent Codex to a folder that doesn't exist, in 92 sessions. coding.sh improve says what to fix first.