Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
GuidesNovember 22, 20265 min read

How to Build a Directory Website

A directory lives or dies on its pages, not its homepage. Each category and location page has to be a genuinely useful answer to a search.

Startbase Team
Editorial ink illustration of a wooden card catalog with one drawer pulled open, the brass drawer handle in ember orange

Key takeaways

  • The core model is listings, categories and locations. Every useful combination of category and location becomes a page someone can land on from search.
  • Thin pages hurt the whole site. Only publish a category or city page when it has enough listings and something written that a visitor could not get elsewhere.
  • Make money from claimed listings and featured spots once there is traffic, not before.

To build a directory website, you need a listings table with consistent fields, categories and locations to organize it, a page for each listing and for each useful category and location combination, and a way for owners to submit and claim listings. Most directory traffic arrives from search on those inner pages ("vegan bakeries in Portland", "wedding photographers near me"), so the pages and their content matter far more than the homepage.

Pick a niche with a real search gap

The directories that work fill a gap the big map and review sites leave: specialist information. Dog-friendly cafes with outdoor seating, clinics that speak a given language, coworking spaces with phone booths, EV chargers at hotels, climbing gyms with auto-belays. The value is in the attributes a general site does not track. Before building, search a few of your target phrases. If the results are generic lists that never answer the specific question, there is room for you.

The data model

  • listings: name, slug, short summary, a longer description, category id, address, city id, latitude and longitude, phone, website, opening hours (a structured weekly list, not free text), photos, price level, status (draft, pending, published, closed), claimed by (an owner account, empty until claimed), featured until (a date) and last verified date.
  • categories: name, slug, a written introduction, and an optional parent for sub-categories (Restaurants, then Vegan).
  • cities (or regions): name, slug, state or country, and a written introduction.
  • attributes: the niche-specific facts (outdoor seating, wheelchair accessible, accepts dogs inside), each with a name and a type (yes or no, a number, a choice), linked to listings through a values table.
  • reviews (optional): listing id, author, rating, text, status.
  • submissions and claims: someone suggests a new listing or proves they own one; both wait for your review.

The attributes table is where your directory becomes better than a general one. Decide the five to ten facts your audience cares about and collect them for every listing.

Pages built for search

A directory has four page types, each with its own URL pattern:

  1. 01Listing page: /places/portland/blossom-vegan-bakery. Everything about one place, its attributes, a map, opening hours and contact links.
  2. 02Category page: /vegan-bakeries. All listings in a category, with filters.
  3. 03City page: /portland. Every category with listings in that city.
  4. 04Category in a city: /portland/vegan-bakeries. Usually the page that ranks, because it matches how people search.

The trap is generating thousands of near-empty combination pages. A page for "vegan bakeries in a town with one vegan bakery" is thin, and search engines treat a site full of thin, templated pages as low quality, which can drag down the good pages too. Set a rule: a combination page is published (and listed in the sitemap) only when it has at least, say, five listings, and it carries a written introduction with local specifics. Everything else stays out of the index.

Give each page a unique title and description, add LocalBusiness structured data on listing pages and an ItemList on category pages, and generate a sitemap with only the published pages. Startbase projects are single-page React apps, which search engines index in two passes, so follow the SEO and GEO guide closely. Publishing in Startbase also lets you set the site's title and description so they are in the page before any script runs; see Publish your project.

Getting the first listings in

An empty directory has nothing to rank. You will seed it yourself, typically in a spreadsheet: research listings, verify the details, fill in your attributes, then import. Startbase Cloud's table browser imports CSV files up to 5 MB, mapping headers to columns by name, so a spreadsheet of a few thousand rows comes in directly. You need latitude and longitude for maps and distance; a geocoding service can fill those in from addresses through an edge function that keeps the service's key in Secrets.

Tip

Respect other sites' terms. Copying listings, photos or reviews wholesale from a big platform is both a legal risk and a quality signal against you. Your own verified details are the product.

Submissions, claims and freshness

  • Suggest a listing: a public form that creates a pending submission. You approve or reject it.
  • Claim this listing: a business owner signs in and requests ownership. Verify by emailing an address on the business's own domain, or by calling the listed number, before linking the listing to their account.
  • Owner editing: once claimed, the owner can update hours, photos and attributes. Changes can publish directly or go through review; start with review.
  • Report a problem: "this place has closed" is the most valuable report a directory can get.
  • Freshness: a scheduled job can email owners every few months asking them to confirm their details, and update the last verified date shown on the page.

Row-level security keeps owners in their lane: an owner can update only the listings they have claimed, and only you (an Admin role) can publish, feature or delete.

How directories make money

Once a directory has steady traffic, the usual models are featured placement (top of category pages, a badge), paid claimed listings with extra photos and a call button, lead forms where you charge per inquiry, and affiliate links where they fit the niche. A featured spot is easy to build: a Stripe checkout that sets the featured until date, and category pages that sort featured listings first. Payments go into your own Stripe account; see Payments.

What to leave out of version one

  • User reviews. Moderating them is real work, and a directory with three reviews looks emptier than one with none. Start with your own verified notes.
  • Every city in the country. Launch in one region and do it thoroughly.
  • Booking or ordering through the directory.
  • A mobile app. Directories are found through search on the web; a fast mobile website is what you need.

A brief you can paste

Build a directory of dog-friendly cafes in the Pacific Northwest. Listings have name, summary, description, category (cafe, bakery, brewery), address, city, latitude and longitude, structured opening hours, photos, website, phone, and these attributes: dogs allowed inside, outdoor seating, water bowls, dog treats, off-leash area nearby. Pages: listing at /places/city-slug/listing-slug, city at /city-slug, category in city at /city-slug/category-slug, each with a unique title, description and structured data (LocalBusiness on listings, ItemList on lists). Only publish combination pages with 5 or more listings, and include only published pages in sitemap.xml. List pages have filters for each attribute and a map. Public Suggest a place form and Report a problem link, both going to my admin queue. Business owners can sign in and claim a listing; I approve claims, then they can edit their own listing. Featured listings (paid by Stripe, 30 days) appear first with a badge. I will import the first listings from CSV.

After the first import, read ten random listing pages and two combination pages as a visitor would. If they feel like a database dump, add written introductions before you submit the sitemap. When you are ready for a real address, custom domains are available on paid plans. Directories live on search traffic, so SEO for your app is worth reading before launch, and what a marketplace costs helps if you later add paid bookings.

Frequently asked questions

How do directory websites get traffic?

Mostly from search, on category and location pages that match specific queries like "dog-friendly cafes in Seattle". Each of those pages needs enough listings and genuinely useful content to deserve to rank.

Where do I get data for a directory website?

Usually from your own research, entered in a spreadsheet and imported, plus submissions from business owners and visitors. Copying another platform's listings or reviews is risky legally and does not make your directory more useful.

How do directory websites make money?

Featured placements, paid claimed listings with extra features, pay-per-lead inquiry forms and affiliate links. All of them depend on having steady traffic first.

Will thousands of auto-generated pages help my directory rank?

Usually the opposite. Pages with one or two listings and templated text are thin content and can lower how search engines see the whole site. Publish only combinations with enough listings and real written context.

On this page

  • Pick a niche with a real search gap
  • The data model
  • Pages built for search
  • Getting the first listings in
  • Submissions, claims and freshness
  • How directories make money
  • What to leave out of version one
  • A brief you can paste

Keep reading

More in Guides
Editorial ink illustration of a kitchen scale with an apple on its pan beside a notepad and a spoon, the apple in ember orange
GuidesNovember 22, 2026

How to Build a Calorie Tracker App

Calorie tracking fails when logging is slow or the numbers are wrong. Get reliable food data, make repeat meals one tap, and be honest that every number is an estimate.

6 min read
Editorial ink illustration of two tin-can telephones joined by a string across a garden fence, the knot in the string in ember orange
GuidesNovember 22, 2026

How to Build a Chat App

Chat looks simple and hides four hard problems: delivering messages live, knowing who is online, tracking who has read what, and keeping strangers from abusing it.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.