Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Instant, typo-tolerant Algolia search over Supabase Postgres data, deployed on Vercel — zero indexing code.

Astro landing page starter with gradient background, responsive hamburger/dropdown menu, and switchable floating/fullscreen headers.
The Algolia × Supabase × Vercel Starter is a minimal Next.js boilerplate that wires instant, typo-tolerant search over Postgres data using Algolia's managed index and the official Supabase connector — no sync code in the application.
The Algolia × Supabase × Vercel Starter is a minimal Next.js template that connects a Supabase Postgres database to an Algolia search index through the official Algolia connector, delivering instant, typo-tolerant search with zero indexing code in the app. It takes a seeded products table in Supabase as input and produces a deployed search experience on Vercel: a landing page with faceted search and dynamic product detail pages served from Postgres. The template is published by Algolia and released under the MIT license.
demo/transform.js file maps id to objectID, strips internal-only fields (cost_price, supplier_id, internal_notes, stock_location), and derives an in_stock boolean from quantity during indexing.in_stock toggle that hides out-of-stock items./app/products/[id]/page.tsx fetches product details from Supabase using POSTGRES_URL, showing database-only fields on each product page.next.config.ts maps both bare and NEXT_PUBLIC_-prefixed Algolia variable names so either integration shape works; only the App ID and Search API key reach the browser.products table, run the connector, and get a faceted product search UI with category, price, and rating filters plus a "Hide out of stock" toggle.NEXT_PUBLIC_ALGOLIA_APP_ID, NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY) and which must stay server-side (POSTGRES_URL), including the warning that NEXT_PUBLIC_ALGOLIA_WRITE_API_KEY must never be referenced in client code.Deploying to Vercel with the "Deploy your own" button creates the Supabase and Algolia resources and injects environment variables. After deployment, you paste demo/seed.sql into the Supabase SQL Editor to create and fill the products table, then connect the Supabase connector in the Algolia dashboard: choose Supabase, paste demo/transform.js into the transformation editor, set the destination index to products, and run a full reindex. The connector keeps the index in sync from the dashboard, and reloading the site shows search results.
The template is open source under the MIT license, so it costs nothing to use. Running it requires Supabase, Algolia, and Vercel accounts, which have their own pricing. The repository itself imposes no fees.
No. The Algolia Supabase connector performs indexing from the Algolia dashboard. The only code involved is the optional transformation script (demo/transform.js) that shapes records before they are indexed.
The demo/seed.sql file creates a 12-column products table that combines searchable fields (name, description, category, price, rating) with internal-only fields (cost price, supplier ID, internal notes, stock location). The connector transformation strips the internal fields before indexing.
Only NEXT_PUBLIC_ALGOLIA_APP_ID and NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY are browser-safe. POSTGRES_URL is server-side, and NEXT_PUBLIC_ALGOLIA_WRITE_API_KEY must never be referenced in client code because the prefix would inline it into the bundle.
The template is read-only; add authentication before exposing any write path. Enable incremental sync with a soft-delete column so removals propagate to the index, and consider triggering the connector task via the Algolia Ingestion API instead of the dashboard schedule.
