Build your own Workflowy

Build your own Workflowy with a focused v1, clear data rules and practical checks. Keep your saved work portable and handle failed writes before deployment.

  • vibe-coding

Build your own Workflowy around a nested outline with a zoomed view. Keep the first version private to one owner, and make its export readable before adding another view. The Workflowy catalog page gives you the larger boundary.

Build your own Workflowy with one source of truth

Give every node a stable identifier. Its text and position can change while links to it keep working. A zoomed view is a route to that identifier, with ancestor breadcrumbs above it.

Document(id, owner_id, title, revision)
Node(id, document_id, parent_id, rank, text)

Use foreign keys to keep child records attached to their document or project. Scope every lookup through the signed-in owner. The same rule applies to exports and search results, not just the editing screen.

Preserve meaning when the view changes

Moving an item changes its parent and rank. Update both together. Refuse a destination outside the owned document, and reject cycles before writing any child row.

Root
  Launch
    Write notes
    Review release
Zoom Launch → show both children

Build a fixture with an empty workspace, a second owner and a record containing angle brackets. The empty view should offer one useful action. The second owner should receive no record contents. Text that resembles HTML should appear as text.

Keep display state separate from saved data. Collapsing a branch or filtering a board should not remove records from the next export. If the view hides completed work, label the filter and make the hidden count visible.

Make failed edits recoverable

Send an expected revision with each mutation. Update only when that revision still matches. If it fails, keep the user’s input beside the newer saved version so they can choose what to keep.

A network timeout is ambiguous. The server may already have committed. Assign a request key before the first submission and reuse it on retry. Store the key and result together so a second request returns the original outcome.

Action Check after reload
Save valid input New revision appears
Submit the same request key One change exists
Submit an older revision Current content survives
Export a filtered view Export scope is clearly named

Prompt the smallest useful build

Build a private a nested outline with a zoomed view tool using Astro, HTMX, Alpine.js and SQL.
Use the proposed records above and versioned migrations.
Implement create, edit, an explicit empty state and JSON export.
Check ownership on every server read and mutation.
Reject stale revisions and preserve attempted input on conflicts.
Add fixtures for the state transitions described in this article.
Skip live collaboration, provider sync and AI generation.

Start with ordinary server-rendered forms. Enhance the view after a save survives reload. Add keyboard controls alongside any dragging so the main operation works without a pointer.

A basic version covers the owner workflow. A useful maintained tool adds migration checks, portable exports and restore drills. A broader commercial service also needs sharing policy, operational support and compatibility across clients. Keep those levels separate when estimating the work.

Use the scope article before extending the prompt. The Notion guide shows a related text-first workflow, while the Trello guide helps with saved ordering. Build the fixture first, then ask the agent to make each view show its expected result.