How to build a Geckoboard alternative

How to build a Geckoboard alternative with ordered prompts, a data model, recovery checks, and deployment steps. Keep your first release focused and testable.

  • vibe-coding

How to build a Geckoboard alternative starts with a typed metric dashboard. Create a dashboard, define metric tiles, enter dated values, and show the latest saved observation with its age. Use the Geckoboard catalog prompt as the starting requirements, then work through the smaller steps below.

How to build a Geckoboard alternative with a bounded v1

Create a dashboard, define metric tiles, enter dated values, and show the latest saved observation with its age. 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 live connectors, automatic alerts or team TV management 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:

Dashboard(id, owner_id, title, revision)
Metric(id, dashboard_id, label, unit, freshness_minutes)
Observation(id, metric_id, value_decimal, observed_at, recorded_at)

Store decimal values as validated decimal strings or scaled integers. Keep the observation time separate from the entry time. A correction entered today for yesterday must stay on yesterday’s trend. Define whether a newer observation replaces the visible value by observed time, and use a stable id to break ties.

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.

Store decimal values as validated decimal strings or scaled integers. Keep the observation time separate from the entry time. A correction entered today for yesterday must stay on yesterday’s trend. Define whether a newer observation replaces the visible value by observed time, and use a stable id to break ties.

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 dashboard, define metric tiles, enter dated values, and show the latest saved observation with its age.
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.

Create a revenue tile and a customer-count tile. Enter an old value after a new one and confirm that the dashboard still shows the newer observation. Mark stale tiles with text as well as color.

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 metric_id, COUNT(*) FROM Observation GROUP BY metric_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 observations in observed-time order and preserve their units. 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.

Related articles

Read all articles →