{
  "id": 13224787,
  "title": "Client-Side Search From a Prebuilt JSON Index: Zero Dependencies, Zero Server Calls",
  "url": "https://urgent.news/2026/10/09/client-side-search-from-a-prebuilt-json-index-zero-dependencies-zero",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-10-09T21:38:48.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/bryan_hamilton/client-side-search-from-a-prebuilt-json-index-zero-dependencies-zero-server-calls-4ed0"
  },
  "original_language": "en",
  "account": "The DJ Calendar is a website featuring hundreds of artist pages, each with its own search bar in the top-right corner. Instead of using Algolia or Meilisearch, which add dependencies and server round-trips, the site employs a prebuilt JSON index for instant search. At deployment time, a PHP script crawls the artist database and writes a flat JSON file containing each artist's name, genre, location, and URL. At page load, the search script fetches this static JSON file and stores it in memory for quick lookups. The search function performs scored matching, giving higher weight to name matches while still considering genre and location. The UI is implemented as an ARIA combobox, allowing keyboard navigation and proper screen reader support. This approach, detailed in the instant-search-index GitHub repository, offers zero dependencies, instant search, and no server calls, making it ideal for sites with a large amount of searchable content.",
  "summary": "I run The DJ Calendar ( https://thedjcalendar.com/ ) — a site with hundreds of artist pages. Every page has a search bar in the top-right corner that searches across every artist on the site. It works instantly. No loading spinner. No debounce delay. No network request at all. Here's how I built it with a prebuilt JSON index and zero dependencies. The Problem A site with hundreds of artists needs…",
  "key_points": [],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}