A laptop showing a web search page on a table, with a phone beside it, banner image on the Directory site page

Template - App starter - About 45 minutes

Directory site

App starter: listings with categories, tags and search

What ships inside

1

Listings with categories, tags and search

2

Submission form with moderation queue

3

Detail pages with maps and contact actions

4

An admin view for approving and featuring entries

Install

Step 1

Seed twenty listings yourself; a directory that looks empty stays empty.

Step 2

Tune search on the seeded data with real queries a visitor would type.

Step 3

Open submissions only after the moderation flow has caught two test entries correctly.

A worked example

A local founder builds a directory of 20 climbing gyms. Sample listing and search tests (example).

TestInputExpected
Search'bouldering near harbor'Matches by tag, not just by name
Category filterIndoor + KidsOnly gyms with both tags
SubmissionA fake gym with a duplicate nameLands in the moderation queue, flagged
Detail pageGym with a map pinMap and phone action work on a phone

The numbers shown are examples. Swap in your own.

Done looks like

  • 20 real listings exist before launch
  • Two test submissions were caught by moderation
  • Search finds listings by real visitor words

Mistakes to avoid

  • Launching empty
  • Opening submissions before moderation works
  • Tuning search on invented queries

What it connects

Postgres · Vercel

Each connector page describes what it does.

Get this template

Download the starter (zip) - a real, dependency-free Node app (v0.2.0): boots with npm start, passes npm test (boot, health check, sign-in, per-account data separation, CSRF, session expiry, login throttle and, for the billing starter, signed-webhook checks). External services run in clearly labeled mock mode until you add keys from the annotated .env.example.

Security upgrade notice. Earlier downloads of this starter had an open data API, shared data between accounts and a default or printed login. Check your ZIP's SHA-256 (first 16 characters): v0.1.0 (first release) b769f4345115b9c2; v0.1.1 (interim fix, Nov 28 00:19-00:3x HST) c87c2d7eb8d62915. If yours matches, replace it with this version and follow SECURITY-UPGRADE.md inside the new ZIP; your data is not touched by this site.

Related playbook: Add search to your app

All templates

Questions about this template

How long does Directory site take to set up?

Plan for about 45 minutes for the first run. The install steps above are in order, and the worked example shows what a finished setup looks like with example data.

How does it work?

The starter is built to be followed step by step. Every step is readable on this page and in the linked playbook, and the Postgres, Vercel connector pages cover the services involved.

What should I do first?

Seed twenty listings yourself; a directory that looks empty stays empty.

Other templates that use the same services: Personal finance tracker · SaaS starter · Landing + waitlist

The playbook behind this template

This template follows Add search to your app. The same steps, with the free tool that does each one.

Step 1 of 5

Start with database full-text search on the two fields users actually search; fancy vector search is a v2 decision.

Step 2 of 5

Define what a good result is for three real queries before tuning anything - relevance is a product decision.

Step 3 of 5

Build the results UI with sensible empty and too-many-results states; both are where search UX lives or dies.

Step 4 of 5

Log queries with zero results for a week; that list is your synonym and content gap report.

Step 5 of 5

Add filters only after the plain query box earns its keep.

Free tools you can use with it

These run in your browser with no account.

SQL Query Builder

Pick the tables, tap the columns, set the filters. Clean, correct SQL assembles itself as you work, with joins wired by matching key names.

  • Visual table and column picking. Name your tables and columns; the SELECT and FROM clauses assemble live.
  • Joins by matching keys. Add a second table and the likely join condition is proposed from column names; edit it inline.
  • Filters, order, limits. WHERE conditions, ORDER BY and LIMIT are guided fields, not syntax you recall.
  • Dialect-clean output. Standard SQL that runs on Postgres, MySQL and SQLite, with identifiers quoted only when needed.

Real output from the tool

YOU ENTER:
Input
users: id, name, email, created_at
orders: id, user_id, total, status
From
users
Input
orders
Input
orders.user_id = users.id
Input
orders.status
Input
=
Input
'shipped'
Order by
orders.created_at DESC
Limit
100

THE TOOL RETURNS:
SELECT
users.name,
orders.total
FROM users
JOIN orders ON orders.user_id = users.id;

JSON Data Studio

Paste JSON and learn what is wrong with it, down to the line and column. Repair the usual mistakes with a visible list of every change. Then query it, browse it as a tree or a table, infer a schema, flatten it for a spreadsheet or a config file, and export. Everything runs in your browser. Nothing is uploaded or saved.

    Component Generator

    Pick the component, set its label, tone and size, and get the HTML and CSS together - with a live preview - so a button or card never costs you twenty minutes of CSS archaeology.

    • Five primitives. Button, card, alert, badge and navbar cover most page scaffolding.
    • Tone and size. Accent color and sm/md/lg sizing apply to both preview and code.
    • One scoped class. Styles live behind a generated class prefix, so the snippet cannot leak into your page.
    • Preview is the code. The preview renders the exact markup and CSS you copy.

    Real output from the tool

    YOU ENTER:
    Component type
    button
    Label
    Start hiring free
    Size
    md
    
    THE TOOL RETURNS:
    <button class="genx-btn">Start hiring free</button>
    <style>
    .genx-btn{background:#bdbdbd;color:#0b0b0b;border:none;border-radius:999px;padding:11px 22px;font:600 14px system-ui,sans-serif;cursor:pointer}.genx-btn:hover{filter:brightness(1.08)}
    </style>

    Services this template touches

    Each connector page shows whether it is available yet.

    PostgreSQL

    Uses:

    • Slow-query reports compile weekly with indexes suggested.
    • Schema changes diff into a migration review note.
    • Table-growth anomalies alert before disk pressure.

    Until it ships, set this part up by hand in PostgreSQL.

    Vercel

    Uses:

    • Failed deployments message the team channel with the error excerpt.
    • Playbook-built sites deploy to a named project on approval.
    • Deployment events log to the run sheet with preview URLs.

    Until it ships, set this part up by hand in Vercel.

    More questions

    SQL Query Builder: Which dialects?

    Standard SQL output that runs on Postgres, MySQL, SQLite and SQL Server with at most identifier-quote tweaks.

    SQL Query Builder: INSERT/UPDATE?

    The builder focuses on SELECT, the query people reach for help with. Write-side statements are on the roadmap.

    Component Generator: Framework version?

    The output is framework-free HTML+CSS; wrap it in your component of choice.

    Component Generator: Dark and light?

    The palette is dark-first; the CSS variables at the top make it one edit to flip.

    A wooden desk with glasses, a coffee cup, a plant and the edge of a laptop, banner image on the Directory site page

    Start from working, not from blank.

    Each template lists what ships inside and the install steps.