TL;DR

Threlmark’s core idea is that the filesystem, specifically plain JSON files, is the authoritative source of project data. This approach makes the system highly portable, inspectable, and resilient—no database or server needed, just simple file operations. It’s a bold take on local-first design that prioritizes control, simplicity, and interoperability.

Imagine managing your entire project roadmap without relying on a cloud database or a web server. Instead, every piece of data lives in plain JSON files on your disk, accessible and editable directly. That’s the core of Threlmark’s local-first architecture. It’s a bold move—one that shifts control back to you, the user, and away from centralized systems. In this article, you’ll see how this design empowers your workflows, simplifies collaboration, and paves the way for more autonomous AI agents to work seamlessly with your data.
Disk is the contract: inside Threlmark’s architecture — ThorstenMeyerAI.com
ThorstenMeyerAI.com
Threlmark · Technical Deep-Dive
Threlmark · architecture

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.

Next.js · TypeScript · JSON-on-disk · MIT · part 2 of the Threlmark series
01The core decision

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.

~/.threlmark/ ├─ threlmark.json # manifest ├─ links.json # dependency graph ├─ projects// │ ├─ project.json # meta + wipLimits │ ├─ board.json # lane ordering │ ├─ items/.json # ONE card per file ← source of truth │ ├─ suggestions/ # the Inbox (drop-zone) │ ├─ handoffs/ # recorded agent handoffs │ ├─ reports/ # agent report drop-zone │ └─ ROADMAP.md # human-readable mirror ├─ shared/items/ # cards many projects ref └─ archive/ # archived, still readable

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.

02Making files safe
Python in Action: 60 Mini Projects to Automate Everything (Part 1): Practical CLI Tools, File Automation, and Data Cleaning with CSV, Excel, and JSON

Python in Action: 60 Mini Projects to Automate Everything (Part 1): Practical CLI Tools, File Automation, and Data Cleaning with CSV, Excel, and JSON

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.

Pattern 1

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.

write .tmp-pid-rand fsync rename() over target
Pattern 2 · one file per item

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.

The payoff: an external tool never touches 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.
03Derived, never stored
Real-World Android App Projects with Kotlin and Jetpack Compose: Build Production-Style Android Apps with Modern Architecture, API Integration, State Management, Local Data Storage, Practical Projects

Real-World Android App Projects with Kotlin and Jetpack Compose: Build Production-Style Android Apps with Modern Architecture, API Integration, State Management, Local Data Storage, Practical Projects

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.

priority = max(0, round(impact·3 + evidence·2 + fit·2effort·1.5))
a 5 / 5 / 5 / 4 card 29
work-item age
now − lane-entry time. Past threshold (dev 7d, ranked 21d, idea 60d) → stale.
cycle time
first DevelopmentDone. Derived from append-only transitions[].
throughput
items reaching Done per ISO week, 8-week window.
WIP
count per lane; over the cap shows 3 / 2 in red.
04The closed agent loop · press play
Ultimate Office AdjustaView 10-Pocket Desk Reference Organizer with Supplies Storage Base and EZ-Load Pockets to Hold 20 Sheets of Paper, Includes Fast Find Indexing Tabs (Colored Pockets)

Ultimate Office AdjustaView 10-Pocket Desk Reference Organizer with Supplies Storage Base and EZ-Load Pockets to Hold 20 Sheets of Paper, Includes Fast Find Indexing Tabs (Colored Pockets)

FIND INFORMATION FAST – Provides EASY access to information you need every day – 10 pockets display up…

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.

Ranked
Add price-drop alertsscore 31 · ready
Development
Handed off 🤖
Done
▶ preferred — REST
POST /api/projects/:id/
items/:itemId/report

Direct call. Applied immediately.

▶ fallback — filesystem
drop reports/.json
→ ingested on read

Robust even if the server’s down at finish time.

🤖 claude done: price-drop alerts shipped · typecheck + lint + build passed — card moved to Done
05Portfolio score & deployment
Amazon

offline project collaboration app

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.

score = priority · statusWeight (+ 0.1 · blockedCount · priority)
1.3
development
1.0
ranked
0.85
idea
0.15
done
Path 1

Static read-only demo

Seeded data, writes to localStorage. Try-before-you-clone.

Path 2

Personal Node instance

Password-gated, persistent backed-up THRELMARK_DATA_DIR.

Path 3

Multi-tenant SaaS

Add accounts + per-tenant isolation. A separate build.

The elegant part: the store interface 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.
ThorstenMeyerAI.com
Threlmark · open source (MIT) · github.com/MeyerThorsten/threlmark · part 2 of a series · file layout, formula, weights & agent-loop channels are Threlmark’s actual mechanics.

Key Takeaways

  • Using plain JSON files as the system of record makes project data fully portable, inspectable, and easy to back up or migrate.
  • Atomic file writes and self-healing reads ensure data safety and consistency without locks or complex synchronization.
  • A filesystem-based architecture prioritizes local control, offline access, and privacy, suitable for solo or small-team workflows.
  • Tradeoffs include scalability challenges and the absence of advanced database features, which are manageable for smaller projects.
  • Threlmark’s design empowers AI agents to interact directly with project data, enabling automation without a server or cloud.

What does ‘disk is the contract’ actually mean in practice?

At its core, ‘disk is the contract’ means all project data lives in files on your local disk. There’s no central server or database holding the record. When you or an external tool access a project, it reads the JSON files directly. This simple, transparent approach makes everything easy to inspect, back up, and move around.

For example, your roadmap cards are stored as individual JSON files in a folder, each representing a single task. Changing a card means editing its file. No API calls, no network, just plain file operations that everyone can understand and verify.

What does 'disk is the contract' actually mean in practice?
What does ‘disk is the contract’ actually mean in practice?

Why does Threlmark prefer JSON files over a database?

JSON files are human-readable, making it easy to see exactly what’s stored. Unlike a database, they require no special tools or schemas. You can open, edit, or migrate them with basic commands or scripts.

For instance, if you want to review your project’s tasks, a quick cat items/abc123.json shows everything. Plus, JSON’s flexibility allows the system to grow without breaking existing tools—unknown fields are preserved, and the files remain compatible.

How does Threlmark handle concurrency and conflicts?

Threlmark uses atomic file writes—write to a temp file, then rename it. This guarantees that updates are either fully written or not at all, avoiding partial corruption.

When multiple tools or agents modify files simultaneously, each change is isolated in its own file. The system self-heals by reconciling the folder’s contents on each read, ensuring consistency without locks or complicated synchronization.

For example, if two agents update different cards at once, each writes its own JSON file atomically. The next read merges everything seamlessly, avoiding race conditions.

How does Threlmark handle concurrency and conflicts?
How does Threlmark handle concurrency and conflicts?

What are the real benefits of a local-first, filesystem-based system?

Local-first means your data remains accessible even when offline. No need to sync with a remote server constantly. You have full control and immediate access to your project state.

This approach also enhances privacy—sensitive info stays on your device unless you choose to sync it elsewhere. Plus, it simplifies backup and migration: copy a folder or use standard tools like Dropbox or git.

For instance, a developer working on a plane can continue editing their roadmap without interruption, then sync changes later.

Beyond convenience, this architecture fosters a deeper understanding of your data. Since everything is stored in plain files, you can learn exactly how your data is structured, troubleshoot issues directly, and even customize workflows without vendor lock-in. This transparency means you can see every change and understand its implications, which leads to more secure and predictable project management. However, it also requires users to adopt disciplined data management practices—manual oversight becomes more important to prevent issues like duplicate or inconsistent files. Trusting plain files as the source of truth emphasizes the importance of good organizational habits, but it offers the benefit of complete control and insight into your data lifecycle, which is crucial in sensitive or autonomous environments.

What are the tradeoffs of a filesystem-only approach?

Relying solely on files means you lose some features built into traditional databases—like built-in conflict resolution, complex querying, or real-time collaboration. Handling large datasets can become cumbersome, as searching through thousands of files can slow down operations and make management more manual.

For example, if your project grows to thousands of cards, searching and managing files might slow down compared to a dedicated database optimized for large-scale data operations. Additionally, without a database’s schema enforcement, it’s easier for data inconsistencies or corruptions to slip in, especially if manual edits are not carefully managed.

However, for many workflows, especially solo or small-team projects, this tradeoff is acceptable given the benefits of control and simplicity. It encourages disciplined data management, where users are responsible for ensuring consistency and organization. While it may require more manual effort or custom tooling for scaling, the tradeoff favors agility and transparency over complexity, which aligns well with many small-scale or autonomous workflows. Recognizing these limitations helps users design their workflows proactively, using scripts or checks to maintain data integrity and performance as their datasets expand, and understanding that the simplicity of the filesystem approach is a deliberate tradeoff for flexibility and control.

What are the tradeoffs of a filesystem-only approach?
What are the tradeoffs of a filesystem-only approach?

How does Threlmark keep data safe and consistent?

Atomic file writes are the backbone of safety—preventing corruption during crashes or interruptions. The system also uses read-merge patterns, which preserve unknown fields and allow forward compatibility.

For example, if a new version adds a field, older tools still read the JSON without breaking. When saving, updates bump timestamps and preserve existing metadata, ensuring data integrity over time. This approach minimizes risk, but it also requires careful implementation—any lapse in atomicity could lead to data corruption, especially during unexpected shutdowns. Therefore, using reliable filesystem operations and thorough testing is crucial to maintain this safety net. Moreover, the system’s reliance on simple, atomic operations means that implementing proper safeguards—such as verifying file integrity after writes—is essential to prevent subtle corruption or data loss, especially in multi-user or unstable environments. This disciplined approach to data safety emphasizes the importance of robust tooling and best practices, ensuring that the system remains resilient even under adverse conditions.

What kinds of apps are best suited to this architecture?

Apps that benefit from local control, portability, and simplicity shine here. Solo project managers, small teams, or automation tools with agents thrive with Threlmark’s design.

For example, a developer running multiple AI agents on their laptop to manage tasks, code, and documentation can do so efficiently without worrying about server downtime or data lock-in.

It’s especially powerful when your workflow involves frequent offline work or needs seamless integration with existing file-based tools. This approach encourages a modular, flexible, and transparent ecosystem where individual components can evolve independently, making it ideal for innovative, autonomous, or highly customized workflows. The key is that these applications leverage the filesystem as their primary interface, which fosters a more natural, intuitive interaction with data that aligns with human workflows and reduces dependencies on complex infrastructure.

What kinds of apps are best suited to this architecture?
What kinds of apps are best suited to this architecture?

What about scaling and future risks?

As data grows, managing large numbers of files can slow things down. Search and querying become less efficient without a dedicated database engine. This can lead to longer load times and increased manual effort to keep data organized.

Risks include inconsistent states if atomic operations aren’t carefully implemented or if external tools don’t follow the discipline. For example, unsynchronized manual edits or improper scripting can lead to corrupt or incomplete data states, especially in multi-user environments. Additionally, the absence of advanced conflict resolution features means that conflicts must be managed externally or through disciplined workflows, which can be error-prone.

However, with proper organization, disciplined workflows, and tooling—such as scripts that verify file integrity—these issues can be mitigated. For small to medium projects, the simplicity and transparency often outweigh these risks. Planning for scalability involves establishing conventions, automating checks, and possibly integrating lightweight indexing tools to maintain performance as data volume increases. Recognizing these potential challenges ensures you can adapt your workflow proactively, using tools and best practices to sustain data integrity and performance over time.

Frequently Asked Questions

What does ‘disk is the contract’ mean in simple terms?

It means all your project data lives on your local disk in plain JSON files, and these files are the definitive source of truth. No central server or database holds the final record—your files do.

Why choose JSON files instead of a traditional database?

JSON files are human-readable, easy to edit, and don’t require special setup. They make your data transparent, portable, and flexible, especially for small or solo projects.

How does Threlmark handle multiple tools editing files at once?

It uses atomic writes—write to a temp file then rename—so updates either fully succeed or not at all. The system also reconciles the folder’s contents on each read, keeping everything consistent.

Is this approach good for large-scale projects?

It works well for small to medium projects but can face performance issues with thousands of files. For bigger datasets, a dedicated database might be better, but for many workflows, this is enough.

Can I use external tools or AI agents with this setup?

Yes. Since data is in plain files, agents and tools can read and write directly, making automation seamless without needing special APIs or servers.

Conclusion

Treating the disk as the contract turns your project data into a transparent, portable, and resilient asset. It’s a deliberate shift that puts control back in your hands—no middlemen, no lock-in, just plain files. If you value simplicity, privacy, and local-first workflows, this approach offers a compelling path forward. Your next project could be built on nothing more than a folder and a few JSON files—trust the disk, and watch your tools work better.
You May Also Like

Managing Legal Permissions for Haunted Filming

Haunted filming requires navigating complex legal permissions—discover essential steps to ensure your project is compliant and ready to scare.

After the Hunt: How Investigators Analyze Evidence

Many investigators rely on meticulous evidence analysis techniques that can ultimately reveal crucial clues; discover how this process unfolds.

What External SSDs Are Actually Good For in Paranormal Workflows

I nvestigators rely on external SSDs for fast, durable storage, but their full potential in paranormal workflows might surprise you—keep reading to discover why.

Why Portable Monitors Make Reviewing Evidence Faster On Site

Inefficient evidence review becomes a thing of the past with portable monitors, but the full benefits might surprise you—keep reading to discover how.