TL;DR
Threlmark’s architecture makes the local disk the single source of truth, enabling offline work, fast interactions, and easy data portability. It’s a simple yet powerful model for modern apps that need reliability and flexibility.
Imagine a project tool that works perfectly offline. No servers, no cloud, just a folder full of JSON files. That’s the core idea behind Threlmark’s local-first architecture: the disk isn’t just where data lives—it’s the system’s contract, the ultimate authority.
This approach turns common assumptions upside down. Learn more about innovative tech gadgets and tools. Instead of a database or remote server dictating your data, your entire app revolves around the files on your disk. It’s simple, reliable, and surprisingly powerful. And in a world where apps often struggle with connectivity and data sync, it offers a much-needed breath of fresh air.
Disk is the contract: inside a local-first roadmap hub
A Next.js app on top of plain JSON files — no database, no cloud, no accounts. The key decision: the on-disk layout IS the API. Everything else cascades from taking that seriously.
There is no server-of-record — the files are the record
The UI and any external tool reach the same files through the same discipline. The data root defaults to ~/.threlmark — home-based, because it’s a shared hub every one of your apps points at.
Inspectable
Every artifact is a file you can cat, diff, grep, commit.
Portable · no lock-in
Back up with cp, sync with Dropbox / git, migrate trivially.
Interoperable
Any tool in any language joins by reading / writing files.
Restartable
No in-memory state to lose — stateless over the files.
portable external SSD drive
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
Two disciplined patterns instead of a database
“Just use files” is easy to get wrong. These two patterns — ported from a battle-tested sibling app — are what make file-based state sound rather than reckless.
Atomic writes
Write to a temp file in the same dir, then rename() over the target. Rename is atomic on one filesystem — a crash mid-write leaves the complete old file or the complete new one, never a half.
The board heals itself
A single roadmap.json array races when two tools write at once. One file per card makes writes collision-free. Lane order lives in board.json and reconciles on read.
board.json. It writes an item file — the board fixes itself on Threlmark’s next read. Unknown keys are preserved, so the contract is forward-compatible.offline data storage device
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
The numbers can’t drift from the files
Anything computable from item state is computed — so the displayed numbers can never disagree with the underlying JSON. Priority is the clearest example: it’s calculated on read, never persisted.
priority — computed on read
Impact weighted heaviest; effort the only axis that subtracts. Reused verbatim from the original tool, so imported cards rank identically.
JSON file editor for Windows
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
A handoff is a first-class flow event
The genuinely 2026-shaped part: most building is done by AI agents, so Threlmark closes the loop. Watch a card go from ranked to Done without anyone dragging it.
Handoff → report → self-move
The brief carries a reporting protocol. The agent reports through REST or the filesystem — and a done report moves the card itself.
POST /api/projects/:id/
items/:itemId/reportDirect call. Applied immediately.
drop reports/.json
→ ingested on read Robust even if the server’s down at finish time.
disk-based project management tools
As an affiliate, we earn on qualifying purchases.
As an affiliate, we earn on qualifying purchases.
A small formula, and an honest hosting caveat
Because items are globally addressable (), the Portfolio ranks everything together by a status-weighted score — finishing beats starting, blockers get a boost.
Portfolio ranking — status-weighted
In-flight work floats to the top; bottlenecks cost the most, so blockers get nudged up.
Static read-only demo
Seeded data, writes to localStorage. Try-before-you-clone.
Personal Node instance
Password-gated, persistent backed-up THRELMARK_DATA_DIR.
Multi-tenant SaaS
Add accounts + per-tenant isolation. A separate build.
src/lib/*/store.ts is the natural seam — the same boundary that keeps the local tool simple is the one you’d extend for multi-tenancy. The architecture doesn’t fight that future; it just doesn’t pay for it until you need it.
Key Takeaways
- Treat the local disk as the system’s definitive source of truth, using JSON files for transparency and portability.
- Atomic file operations ensure data safety without locks or complex database transactions.
- One file per item prevents race conditions and simplifies conflict resolution, making the system more resilient.
- Local-first architecture boosts offline usability, reduces latency, and improves reliability during outages.
- Understanding the trade-offs helps you decide if this approach suits your project’s needs—control and resilience versus complexity.
What does ‘Disk is the Contract’ actually mean?
At its core, the phrase means the on-disk files are the system’s definitive source of truth. Your app reads from and writes to JSON files directly. These files define every project, task, and dependency, and any tool can peek into them at any time.
For example, a task card isn’t stored in a database but as a item JSON file. The app doesn’t hold in-memory state; it always operates on these files. If you open your project folder, you see the same data your app uses. This makes the system transparent and predictable.

How Threlmark’s architecture keeps your data safe and flexible
Threlmark’s system uses a file-based, JSON-on-disk model. Each project has its own folder, with one JSON file per item—think of each as a task or card. The files are stored in a directory like items/, making it easy to inspect, edit, or migrate.
When updates happen, the system writes to a temporary file and then atomically renames it. This process ensures that data isn’t corrupted if your computer crashes during a save. Learn more about local-first architecture. It’s akin to writing a draft and then replacing the old version only once the write completes successfully. This atomic operation is fundamental for maintaining data integrity without complex locking mechanisms.
Furthermore, this design avoids traditional database locks and race conditions because each file is independent. Multiple tools or processes can modify different files simultaneously without interfering with each other. This modularity allows for flexible workflows and makes manual or automated backups straightforward, as each file can be managed separately.
For example, if you add a new task from your phone or a script, it just drops a JSON file into items/. The app reads these files, assembles your roadmap, and keeps everything in sync—without a server or a database. This structure simplifies debugging, as inspecting individual files reveals the current state, and migration becomes as easy as copying or editing files directly.
Why local-first systems are more resilient and faster
Running entirely on your local disk means your app works even when the internet goes down. Discover assistive tech solutions. This is crucial in environments with unreliable connectivity or during travel. With local storage, creating, moving, or updating tasks happens instantly because you’re interacting directly with local files, avoiding network latency. This immediacy enhances user satisfaction and productivity, especially in scenarios like fieldwork or remote locations.
Imagine working on a project during a flight or in a basement with no internet. The app responds instantly because it reads and writes to your local disk. When you reconnect, the system seamlessly syncs your changes across devices, often in the background, ensuring your data stays consistent. This approach also reduces server load and dependency on network infrastructure, making the system inherently more robust against outages or slowdowns.
Recent research shows that local-first apps outperform cloud-only solutions in latency, especially during high load or poor connectivity. They also provide better data durability since your data isn’t dependent on a constantly available network or remote server. This resilience is vital for critical workflows, field operations, or any scenario where connectivity is intermittent or unreliable.

How Threlmark manages concurrency and conflicts without a database
In traditional multi-user applications, conflicts often arise when multiple users or tools try to modify the same data simultaneously. Threlmark handles this by treating each item as an independent JSON file, which simplifies conflict management. When two tools attempt to modify the same item, the system employs a last-write-wins approach, but with safeguards to prevent data corruption.
It uses atomic file operations—writing to a temporary file and then renaming it—to ensure that each save is complete and consistent. This atomicity prevents partial writes, which could corrupt data or cause inconsistencies. During synchronization, if two devices have conflicting changes to the same JSON file, the system detects the conflict by comparing timestamps or version indicators within the files. It then prompts the user to review and resolve these conflicts manually or semi-automatically, preserving data integrity.
Imagine editing a task from your laptop and your phone simultaneously. When you reconnect, Threlmark compares the JSON files, merges non-conflicting changes, and flags conflicts for review. This process is transparent and straightforward, enabling users to resolve issues without complex lock management or centralized coordination. The independence of each file not only simplifies conflict resolution but also enhances the system’s resilience against data loss or corruption caused by interruptions.
What are the benefits of JSON on disk? Human-readable, flexible, and portable
JSON files are simple, text-based, and easy to inspect. You can open them in any editor, see exactly what data looks like, and even tweak it manually if needed. This transparency speeds up debugging and enhances trust in the system. Because the data is stored in a universal, human-readable format, it’s straightforward to understand the current state of your project without needing specialized tools or knowledge.
This transparency also facilitates data migration and backup. When you want to back up your project, you simply copy the entire folder containing all JSON files—no need for complex export procedures or database dumps. When switching tools or platforms, editing or converting JSON files is often all that’s required. This level of portability ensures long-term access and control over your data, even as tools evolve or change.
For example, a developer troubleshooting a task can open its JSON file in a plain text editor, instantly see its status, timestamps, and metadata, and make adjustments if needed. This direct access reduces dependency on proprietary formats or complex APIs, making your data more resilient and adaptable over time.

Why this approach is changing how apps handle offline work
Traditional cloud apps rely on continuous server communication, which can slow down or break when offline. Threlmark’s local-first design sidesteps this issue entirely by keeping all data on the local disk. This means you can work uninterrupted in environments with unreliable or no internet, such as remote locations, during travel, or in disaster scenarios.
Work proceeds seamlessly because all interactions—creating, editing, moving tasks—occur directly on your device’s storage. When connectivity is restored, Threlmark automatically syncs changes across devices, merging updates and resolving conflicts as needed. This approach minimizes disruptions, maximizes user control, and reduces dependency on external infrastructure.
Industry surveys and user feedback increasingly highlight a preference for offline-capable applications, especially in remote work, field operations, or during travel. Threlmark’s model exemplifies this shift by prioritizing local storage and eventual synchronization, aligning with a broader industry trend toward resilient, offline-first software solutions.
Trade-offs: What you give up and gain with disk-as-the-contract
Relying on local files simplifies the architecture and enhances control but introduces certain limitations. Without a centralized server or cloud database, real-time collaboration becomes more complex. Conflicts need manual or semi-automatic resolution, which can be time-consuming and require user intervention. Large projects with thousands of files may slow down the file system, especially on less powerful devices. Additionally, without built-in version control, managing historical changes or rollbacks can be more challenging.
However, these trade-offs come with significant gains. You gain complete control over your data, improved offline usability, and reduced reliance on external services. Your data remains on your device, safe from external outages, breaches, or vendor lock-in. This approach also simplifies data privacy considerations and reduces costs associated with cloud storage and bandwidth.
In practice, teams working in remote or infrastructure-limited environments can continue progress without internet, then synchronize when possible. They must, however, adopt disciplined conflict management and regular backups to mitigate the manual overhead. The choice depends on whether the benefits of control and resilience outweigh the complexity of conflict resolution and potential performance issues.

What does this mean for developers and users?
Developers get a simpler, more predictable state management system—no need to juggle complex databases or network layers. They can focus on core functionality and user experience, knowing that data persistence is inherently reliable. For users, this translates into faster, more reliable, and truly offline-capable apps that work seamlessly regardless of connectivity issues.
The transparency of JSON files also makes troubleshooting and maintenance much easier. Developers and power users can peek into the raw data, understand exactly how the app is functioning, and perform manual edits if necessary. This openness fosters trust and simplifies long-term data management and migration, as the data format remains consistent and accessible.
Imagine a team debugging a task by just opening its JSON file—no special tools, no server logs. It’s an intuitive, straightforward approach that empowers both developers and users with greater control over their data and workflows.
Where does Threlmark go from here? The future of local-first apps
The trend toward local-first, disk-centered architecture is gaining momentum. Threlmark’s approach proves that you don’t need a server to build a reliable, flexible project management tool. As tooling improves, conflict resolution algorithms become smarter, and synchronization processes become more seamless, the viability of this model will only increase.
Expect more applications to adopt this style, emphasizing offline capabilities, data transparency, and resilience. Innovations in peer-to-peer syncing, incremental updates, and conflict resolution will further enhance user experience and system robustness. This movement aligns with a broader shift in software development—prioritizing user control, privacy, and reliability over centralized cloud dependencies.
Imagine a world where your apps are as portable as your files, and your data always stays under your control. This vision is becoming more attainable as technology evolves, promising a future where offline-first, disk-centric design is the norm rather than the exception.
Frequently Asked Questions
What does ‘Disk is the contract’ mean in plain language?
It means your app treats the files on your disk as the single source of truth. The data lives in JSON files, and the app always reads from and writes to these files directly. This makes the system transparent and easy to manage.How is Threlmark’s architecture different from a typical cloud app?
Instead of relying on a server or cloud database, Threlmark stores all data locally as JSON files. It works offline, is faster, and doesn’t depend on an internet connection—making it more resilient and portable.Why use JSON files instead of a traditional database?
JSON files are human-readable, easy to inspect, and simple to migrate or back up. They eliminate the complexity of managing a database and make data transparent, which helps with debugging and long-term data control.How does syncing work when I reconnect online?
Changes are stored in JSON files locally. When you go back online, Threlmark compares your local files with others, merges non-conflicting updates, and flags conflicts for review—making sync seamless and safe.What are the main trade-offs of this approach?
While it offers better offline use and control, it requires managing conflicts manually or semi-automatically. Large projects can slow down the file system, and it’s less suited for real-time collaboration without extra tools.Conclusion
Threlmark’s ‘disk is the contract’ approach turns the traditional app model on its head. It’s a straightforward, resilient way to manage data—fast, transparent, and offline-friendly.
If you want your app to be as reliable as your local files, this model offers a compelling blueprint. It’s not just about data; it’s about giving control back to you, the user, and making your tools more dependable.
