TL;DR
Threlmark’s architecture treats disk storage as the single source of truth, making data portable, resilient, and collaborative without relying on cloud servers. This design empowers users with full control over their data, enabling seamless integration with external tools and AI agents.
Imagine managing your entire project workflow without a cloud or central server. No login, no vendor lock-in, just your files sitting comfortably on your disk. Sounds simple, but it’s revolutionary. Threlmark’s approach flips the traditional model, putting disk storage front and center.
This isn’t just about saving files. It’s about creating a system where data is the contract — the single source of truth that anyone can read, modify, and sync across tools. If you care about privacy, resilience, and true portability, this architecture might change how you think about building apps.
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.

YOTUO Portable 500GB External Hard Drive Storage Expansion Mobile HDD USB 3.0 for PC, Mac, Desktop, Laptop, PS4, Xbox One, Xbox 360, Android, iPhone 15/16/17, Office & Game (Black)
【Versatile Storage Expansion – For Gaming, Work & Everyday Use】 Running out of space on your PS5 or…
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.
ZOOPIP Fireproof File Box with Lock, Document Box Storage Organizer, Suitable for Hanging File Folders in Letter Size, Collapsible File Box, Reflective Strip for Fast Find (12.2"*6"*10.2, Black)
【Small Capacity Letter file box】 Compared with other file boxes, our file boxes are more cost-effective and can…
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.
local-first project collaboration tools
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.

Logitech C925e Business Webcam, HD 1080p/30fps Video, Light Correction, Autofocus, Clear Audio, Privacy Shutter, Works with Microsoft Teams, Google Meet, Skype, WebEx, Cisco – Black
Compatible with Nintendo Switch 2’s new GameChat mode
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 disk storage as the single source of truth to maximize data resilience and portability.
- Use atomic file writes and read-merge-write strategies to keep data safe and future-proof.
- Store each project item in its own JSON file to simplify concurrency and external collaboration.
- Design your system so external tools and AI agents can directly edit files, enabling seamless automation.
- Keep data local whenever possible to boost speed, privacy, and offline resilience.
Why Making Disk the Heart of Your App Changes Everything
When your app treats disk storage as the contract, it becomes more resilient, flexible, and open. You’re no longer tied to a cloud provider or a proprietary database. Instead, every piece of data lives in plain JSON files, ready for inspection, editing, or syncing.
For example, Threlmark stores each roadmap card as a separate JSON file in the `items/` folder. This means you can open a card in any text editor or sync it with Dropbox. If your laptop crashes, your data is still safe, accessible, and ready to be restored. It’s like having a full backup in your pocket.

How Threlmark Keeps Data Safe with Simple File Tricks
Handling files sounds easy, but doing it safely requires discipline. Threlmark uses two key patterns: atomic writes and read-merge-write updates.
Atomic writes mean the app writes to a temporary file first, then renames it. This guarantees that a crash won’t corrupt your data. Imagine saving a document — the file only updates if everything goes smoothly. Threlmark’s code does this with a handful of lines, ensuring your data is always consistent.
Read-merge-write means reading the current file, updating only the changed parts, then saving. It preserves metadata like creation dates and handles unknown fields gracefully. So, even if external tools add new data, Threlmark won’t break — it just keeps everything compatible.
One File Per Card: Why It Beats Big JSON Lists
Instead of a giant `roadmap.json`, Threlmark uses individual files for each card. This simplifies concurrency and collaboration. For example, if you want to update one task, you just overwrite its small JSON file — no need to lock the whole list.
Plus, the system self-heals. When you read the lane order from `board.json`, it checks against existing item files and fixes any mismatches. If a card gets deleted or moved outside the list, Threlmark’s code automatically cleans up or updates the view.

Making the System Interoperable and Portable
Because everything is plain JSON files, any tool can read or write to your project data. Want to tweak a card with a script? Just edit its file. Need to sync your roadmap across devices? Copy the folder or use Dropbox.
This openness means you’re not locked into a single app. Threlmark’s design supports external tools like IdeaClyst or even custom scripts. They can participate without asking permission, just by modifying the same files.
It’s like having a shared folder that everyone can edit, with no central gatekeeper. Your data stays yours, portable and ready for any future tool or automation you dream up.
How External Tools and AI Agents Play Nice with Files
Threlmark’s architecture shines when integrated with AI and automation. External agents can read, modify, and even move cards by directly editing JSON files. No APIs, no middlemen.
For instance, an AI agent can scan your `reports/` folder, find a card marked ‘Ready for Review,’ and then update its status to ‘Done’ by editing its file. All this happens seamlessly because the data lives right on disk.
This approach allows AI to close the loop — deciding what to do next and executing it without human intervention. It’s a future where your tools work together in a decentralized, open ecosystem.

What Are the Real-World Benefits of a Disk-Centered System?
Think about resilience, privacy, and speed. With Threlmark’s approach, your data is always local, so it’s fast to access and update. No waiting for cloud syncs or worrying about outages.
Imagine a team working offline in a remote area — their data stays safe and consistent. When they reconnect, the system automatically syncs changes without conflicts, thanks to its conflict-free design.
Plus, your project history is just a folder full of JSON files. Want to back it up? Just copy the folder. Need to migrate? Drag and drop. It’s simple, clear, and under your control.
Frequently Asked Questions
Why does Threlmark rely on JSON files instead of a database?
JSON files are simple, portable, and human-readable. They allow direct access, easy backups, and open interoperability, eliminating vendor lock-in and enabling seamless external tool integration.How does Threlmark handle data conflicts when syncing across devices?
It uses conflict-free data structures and reconciliation strategies. Since each item is a separate file, conflicts are minimized, and the system can automatically reconcile differences when syncing.Can this approach scale to large projects or teams?
Yes, but with caveats. For very large projects, managing thousands of files can become cumbersome. However, the architecture’s simplicity and offline resilience often outweigh scalability concerns for many use cases.What tools can I use to work with Threlmark’s JSON files directly?
Any text editor, script, or automation tool that can read and write JSON works. You can also sync the folder via Dropbox or use custom scripts to modify or analyze data.Is this architecture suitable for enterprise or mission-critical apps?
It’s ideal for resilience and privacy-focused environments. For mission-critical systems, additional safeguards like encryption, versioning, and conflict resolution would be necessary, but the core principles remain sound.Conclusion
By making disk the contract, you create a system that’s resilient, transparent, and flexible. Your data becomes a portable, open ecosystem, free from vendor lock-in. It’s a powerful reminder: the simplest choices often lead to the strongest foundations.
Next time you build or choose a tool, ask yourself: can my data sit safely on disk? If so, you’re already one step closer to a future of true ownership and control.