How to build a HoneyBook alternative
How to build a HoneyBook alternative with ordered prompts, a data model, failure fixtures and deployment steps. Build a small version you can use and recover.
How to build a HoneyBook alternative starts with a private client project tracker. Create a client, open a project, complete its checklist, and retain the history of project state changes. Use the HoneyBook catalog prompt as the starting requirements, then work through the smaller steps below.
How to build a HoneyBook alternative with a bounded v1
Create a client, open a project, complete its checklist, and retain the history of project state changes. That is the acceptance flow for this build. Write it at the top of your project README so the agent and the next person editing the code share the same target.
Keep payments, electronic signatures or automatic client messaging outside this release. Each adds a separate operating problem. A useful first version should handle your own small dataset and explain a failed action without losing the saved work.
The basic build covers that flow. The stronger personal version adds authorization checks, export and restore, and safe concurrent edits. Reproducing the commercial product means supporting a much broader set of workflows over time. Choose the first level before asking for a polished dashboard.
Choose the stack and the storage boundary
Use Astro server rendering, HTMX for form updates, and Alpine.js for small browser interactions. Keep persistence behind server routes. SQLite is enough on a single Node.js host with a persistent disk; a hosted SQL database is another option when the deployment host has no persistent local filesystem.
Write database access in one server module. Components should receive the fields they need instead of opening their own connections. This keeps authorization near the query and makes it possible to test writes without clicking through every screen.
Client state can hold an unsaved preview. The database remains the saved source of truth. A reload should reconstruct the same saved result. Never use a successful animation as evidence that a write finished.
Model the records before drawing screens
The proposed tables are:
Client(id, owner_id, display_name, revision)
Project(id, client_id, title, state, revision)
ChecklistItem(id, project_id, label, completed_at)
ProjectEvent(id, project_id, actor_id, kind, recorded_at)
Write a project state change and its event in one transaction. Require the loaded revision. Keep checklist completion separate from project acceptance. A manual accepted mark must be labeled as an owner record, not an electronic signature.
Use foreign keys and indexes on parent identifiers. Add an owner identifier at the root and verify ownership through that root on every child read and mutation. Guessing another record id must return an unavailable response without exposing its title or contents.
Add migrations to source control. Test them against a new database and a populated copy. Keep a backup before changing a deployed schema. A migration that works only on an empty database is insufficient once someone has saved their first record.
Follow the data through the workflow
Validated input → authorized save → committed revision → read → export
| Stage | Saved evidence | Failure behavior |
|---|---|---|
| Create | Stable record identifier | Keep attempted input visible |
| Edit | New revision after validation | Explain a stale revision |
| Read | Authorized current state | Show empty and unavailable states |
| Export | Portable snapshot | Keep saved data after export failure |
The arrows represent committed transitions. Return the saved identifier and revision from a mutation. The interface can then update its own state using the server response instead of guessing which row was created.
Prompt 1: create a working project and an empty screen
Create the Astro application with server routes and persistent SQL storage.
Add a migration and a development fixture command. Implement authentication
for one owner. Show an empty state with a working create action. Keep secrets
server-side and document the environment variables without real values.
Run the app and create the first root record. Reload the page and restart the server. The record must still exist. Open a signed-out browser session and request the same URL. Confirm that the private content never appears in the response body.
Check keyboard navigation before moving on. Labels must identify fields, errors must sit next to the fields they describe, and submitting an empty form should produce a useful validation response. A generic server error makes ordinary mistakes unnecessarily hard to fix.
Prompt 2: implement the domain rule
Implement the records and ownership relationships described above.
Enforce foreign keys and validate all user input on the server.
Make the main write atomic. Include a revision on editable root records.
Return a conflict when the submitted revision is stale, preserving input.
Write a project state change and its event in one transaction. Require the loaded revision. Keep checklist completion separate from project acceptance. A manual accepted mark must be labeled as an owner record, not an electronic signature.
Ask the agent to name the transaction boundary in its explanation. A check followed by an unrelated insert can race with another request. Keep related writes together and return success only after the database confirms the commit.
Exercise a missing parent id and an id owned by another account. Both should fail before changing anything. Then send the same create request twice with the same idempotency key. It should return the existing result rather than creating a duplicate record.
Prompt 3: finish the product-specific interaction
Implement this complete interaction:
Create a client, open a project, complete its checklist, and retain the history of project state changes.
Keep the saved state separate from the pending browser preview.
Provide explicit loading, empty, validation and recoverable error states.
Do not add unrelated integrations or background services.
Open one active project in two tabs. Complete it in one tab and submit an old change from the other. Expect a conflict, one completion event, and preserved attempted input.
Try the same interaction on a narrow screen and using only the keyboard. A pointer shortcut may be convenient, but provide ordinary buttons for actions that change saved data. Show which action is pending and prevent accidental double submission while retaining server-side duplicate protection.
An empty child list should explain the next action. A root record with no children is valid data. Avoid inserting fake sample records into production just to make the page look full. Development fixtures belong behind an explicit command.
Prompt 4: add export and a restore rehearsal
Export all owned records as versioned JSON, preserving stable ids,
relationships, timestamps and text. Include a format version and record
counts. Add a dry-run import that validates the whole file before writing.
Reject unknown versions and conflicting identifiers with useful errors.
Download an export and inspect it outside the app. Use a fresh test database for the import. Compare parent counts, child counts and relationships, not only a green success banner. Include multiline notes, punctuation and non-ASCII labels in the fixture.
A restore should either complete or leave the previous database unchanged. Validate the complete file before opening the write transaction. Put a size limit on imports and explain that limit in the interface. Preserve the original export if the import fails so the owner can inspect it.
Check the saved data directly
A simple query helps catch missing writes. Adapt table names if your migration uses a different naming style:
SELECT project_id, COUNT(*) FROM ProjectEvent GROUP BY project_id;
Compare this output with the visible counts. Then delete a development record and check related rows. Decide whether children are removed or retained for history, and encode that decision in the schema and mutation route. Silent orphan rows make later exports confusing.
Run the domain fixture after every schema change. Save its setup and expected result in the test suite. The important assertion describes a user-visible invariant, the domain rule described above.
Recover from common failures
If a save appears to succeed but disappears after reload, inspect the server response and the database write. The browser may be updating local state before the transaction completes. Return an error on failed persistence and keep the pending input available for retry.
If two tabs overwrite each other, add a conditional update using the loaded revision. When no row matches, return a conflict. Let the owner compare the newer saved state with the attempted edit. Automatically retrying with the newest revision would hide the conflict and overwrite another change.
If an export is incomplete, inspect parent-child filtering and ownership joins. Export from one consistent database snapshot. Reading each table at unrelated times can produce a file that never represented a real saved state.
If authorization works on pages but fails on mutation endpoints, move the ownership check into the server operation. Hiding a button cannot stop a direct HTTP request. Exercise both the normal form submission and a crafted request with another owner’s child id.
Deploy with a rollback path
Choose a host that supports the selected runtime and database. Build the app locally first. Configure the production database and session secrets through the host’s secret settings. Apply migrations once as a release step, then start the server with the production configuration.
Use HTTPS and secure session cookies. Keep the database outside the public static directory. If this build stores objects, use private storage and authorize access before issuing a short-lived URL. Check that error logs exclude credentials, private notes and full request bodies.
Create one harmless production record and complete the main flow. Restart the deployed process and confirm persistence. Run a backup, restore it into a separate environment, and open the restored records. Record the previous working release so a failed deployment has a concrete rollback target.
Stop after the complete small workflow
Export ProjectEvent records with stable identifiers and preserve their relationships. Test that behavior with the fixture above before adding another screen. Keep a short list of actual problems you encounter while using the app; those are better next tasks than reproducing every menu in the commercial product.
Read the related build discussion for scoping decisions. The Notion guide covers private nested records, and the Trello guide covers ordered items and recoverable changes.
Exercise the domain boundary before release
Open one active project in two tabs. Complete it in one tab and submit an old change from the other. Expect a conflict, one completion event, and preserved attempted input.
Record the expected database rows before pressing the final button. Then run the action, reload the page and inspect those rows again. A visible confirmation should describe the committed result. If a request returns a validation error, there should be no new domain event or half-created child record.
Write a project state change and its event in one transaction. Require the loaded revision. Keep checklist completion separate from project acceptance. A manual accepted mark must be labeled as an owner record, not an electronic signature.
Build a fixture runner that uses an isolated database. It should create the owner and records, run the domain action, and compare the saved result with the expected state. Keep the fixture independent of wall-clock timing by passing a fixed time into the server operation. Include the case where the request is repeated after the client loses its connection.
For HoneyBook, the domain flow is concrete enough to test through ordinary HTTP requests. Start with those requests before adding a browser convenience. Once the operation behaves correctly, connect the form to the same route. This keeps keyboard submission, HTMX updates and a direct request subject to the same rules.
Ask the agent for this final check:
Add an integration fixture for the domain rule above. Use a clean database
and two authenticated users. Assert the saved records after success,
validation failure, a repeated request, and an unauthorized child lookup.
Make the test fail when any invariant changes. Show the command in README.
Keep a separate browser check for labels, focus movement and error recovery. After a rejected submission, focus the first invalid field and retain the other values. After a conflict, show both the saved revision and the attempted change. Avoid a retry button that silently replaces someone else’s edit.
Plan the first real use
Write down the one complete journey you expect to perform this week. Use your own records after testing with development fixtures. Review the export before entering anything difficult to replace. If the export omits a relationship, fix that before relying on the app for daily work.
Set a retention rule for diagnostic logs. Keep identifiers and operation names when they help investigate failures, but omit private field contents. A failed request should have a correlation identifier that lets you find its server error without exposing that error to another user.
For deployment on Cloudflare Pages, use the current Astro Cloudflare adapter with server output and a D1 binding for SQL persistence. Keep the SQL access behind an adapter module because local SQLite driver calls do not run unchanged in Workers. Apply and verify the production migration before accepting writes, and document which release first requires it. Use a staging database for the first restore rehearsal.
Stop once this journey works after a restart and after a restore. Add the next feature when a real use reveals a missing step. Keep payments, electronic signatures or automatic client messaging in the non-goals section of the README so a later agent preserves the boundary.