Build a Dynalist alternative
Build a Dynalist alternative with a focused v1, clear data rules and practical checks. Keep your saved work portable and handle failed writes before deployment.
Build a Dynalist alternative around dated items inside an outline. Keep the first version private to one owner, and make its export readable before adding another view. The Dynalist catalog page gives you the larger boundary.
Build a Dynalist alternative with one source of truth
Store a due date on the item so it survives changes in indentation. Moving a branch should preserve every date beneath it. A completed parent also needs an explicit rule: keep its children visible until each child is completed.
Dynalist documents dates and date filtering. Those are public capabilities. The tables and transaction rules below are a proposed design for a smaller replacement; they are not claims about its internal architecture.
Outline(id, owner_id, title, revision)
Item(id, outline_id, parent_id, position, text, due_date, completed_at)
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
Reject a move into a descendant. Calculate ancestry on the server in the same transaction as the move. A browser tree can be stale, so a disabled drop target cannot protect the database.
A → B → C
Move A beneath C → refuse
Move C to root → preserve its due date
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 dated items inside an outline 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.