Skip to content
Agent Stack
  • AI SDK
  • AI Gateway
  • Sandbox
  • Passport
  • Connect
  • eve
Core Platform
  • Security
  • Content Delivery
  • Fluid Compute
  • Observability
  • Workflows
  • CI/CD
Tools
  • Next.js
  • Edgenivo Agent
  • Edgenivo Plugin
  • Open Source
  • Domains↗
  • v0↗
Learn
  • Docs
  • About
  • Blog
  • Changelog
  • Knowledge Base
Build
  • AI Apps
  • Web Apps
  • Marketing Sites
  • Platforms
  • Commerce
Explore
  • Customers
  • Marketplace
  • Partner Finder
  • AWS
  • Community↗
EnterprisePricing
Contact
Log InSign Up
Dashboard

Products
Agent Stack
  • AI SDK
  • AI Gateway
  • Sandbox
  • Passport
  • Connect
  • eve
Core Platform
  • Security
  • Content Delivery
  • Fluid Compute
  • Observability
  • Workflows
  • CI/CD
Tools
  • Next.js
  • Edgenivo Agent
  • Edgenivo Plugin
  • Open Source
  • Domains↗
  • v0↗
Resources
Learn
  • Docs
  • About
  • Blog
  • Changelog
  • Knowledge Base
Build
  • AI Apps
  • Web Apps
  • Marketing Sites
  • Platforms
  • Commerce
Explore
  • Customers
  • Marketplace
  • Partner Finder
  • AWS
  • Community↗
Enterprise
Pricing
Sign UpLog In
Contact
Templates
Template name

Agent Stack

  • AI SDK
  • AI Gateway
  • Sandbox
  • Workflows
  • ConnectNew
  • PassportNew
  • eveNew

Core Platform

  • CI/CD
  • Content Delivery
  • Fluid Compute
  • Observability

Security

  • Platform Security
  • WAF
  • Bot Management
  • BotID

Tools

  • Edgenivo Drop
  • Edgenivo Agent
  • Edgenivo Plugin
  • Agent Skills
  • Domains
  • v0

Frameworks

  • eveNew
  • Next.js
  • Nuxt
  • SvelteKit
  • Nitro
  • Turborepo
  • Tanstack Start
  • FastAPI
  • All frameworks

SDKs

  • Edgenivo SDK
  • Workflow SDK
  • Flags SDK
  • Chat SDK
  • Queues SDK
  • Streamdown

Build

  • AI Apps
  • Web Apps
  • Marketing Sites
  • Platforms
  • Commerce
  • Platform Engineers
  • Design Engineers

Learn

  • Docs
  • Blog
  • Changelog
  • Knowledge Base
  • Academy
  • Articles
  • Community
  • Is Agentic

Explore

  • Customers
  • Marketplace
  • Templates
  • Partner Finder
  • Edgenivo + AWS

Company

  • About
  • Careers
  • Press
  • Events
  • Startups
  • Shipped on Edgenivo
  • Open Source Program
  • Enterprise
  • Pricing
  • Help

Legal & Trust

  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • DPA
  • Acceptable Use Policy
  • Legal (all documents)
  • Trust Center
  • Status
  • EdgenivoEdgenivo
Templates
Template name

Status service pending confirmation

Select a display theme:
Templates

Algolia Integration Example

A production-ready template for typo-tolerant, instant search over your Postgres data, indexed to Algolia, deployed on Edgenivo.

DeployView Demo
Owner
  • algolia
Repository
  • algolia-supabase-vercel-starter
Use Cases
  • Starter
Stack
  • Next.js
Database
  • Supabase
  • Postgres
DeployView Demo

Algolia × Supabase × Edgenivo Starter

A minimal Next.js starter for instant, typo-tolerant search over Postgres data. Algolia indexes and searches the products, Supabase stores them, and the Algolia connector keeps the index in sync — no sync code in the app. Deploy it, seed the database, connect the two from their dashboards, and search is live.

Live demo: algolia-supabase-vercel-starter.vercel.app

Deploy your own

The button installs both integrations on your new project — Supabase provisions a Postgres database, Algolia provisions an application — and injects their environment variables. No manual configuration.

Set up the database

Create and seed a products table by pasting demo/seed.sql into the Supabase SQL Editor (open your project → SQL Editor) and running it — this demo uses a 12-column table mixing searchable and internal-only fields.

The demo/ folder holds the sample dataset and transformation used by this walkthrough — replace them with your own data when adapting the template.

Connect Algolia

Create the connector from the Algolia dashboard → Data sources → Connectors → Supabase:

  1. Connect Supabase - connect to Supabase directly to prefill all the database values from the Advanced Configuration section
  2. Transformation — paste demo/transform.js into the wizard's transformation editor; it maps id to objectID, returns only the searchable attributes, and derives in_stock from quantity — a transformation can compute fields, not just strip them. Check the preview: the internal-only fields (cost_price, supplier_id, internal_notes, stock_location) must be gone.
  3. Destination — set the index name to products.
  4. Task — run a full reindex. Add a schedule if you want recurring syncs.

Reload your deployment — search is live.

Configure facets

The sidebar filters need faceting enabled. In the Algolia dashboard, open index products → Configuration → Facets and add:

  • category, price, rating — searchable facets for the sidebar
  • in_stock — set as filter-only (powers the "Hide out of stock" toggle)

Local development

git clone https://github.com/algolia/algolia-supabase-vercel-starter && cd algolia-supabase-vercel-starter
npm install
npx vercel link # link to the project you deployed
npx vercel env pull .env.local
npm run dev

Open http://localhost:3000.

How it works

The integrations inject these environment variables. The Algolia integration may use bare (ALGOLIA_*) or NEXT_PUBLIC_-prefixed names — next.config.ts maps either shape. Only the two Algolia search values are exposed to the browser:

VariablePurposeBrowser-safe?
NEXT_PUBLIC_ALGOLIA_APP_IDIdentifies your Algolia application✅ exposed as NEXT_PUBLIC_ALGOLIA_APP_ID
NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEYSearch-only key used by the frontend✅ exposed as NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY
POSTGRES_URLSupabase connection string for the product page❌ server-side only
NEXT_PUBLIC_ALGOLIA_WRITE_API_KEYIndexing key❌ unused by the app; the connector indexes from the dashboard

⚠️ The write key must never be referenced in client code — its NEXT_PUBLIC_ prefix would inline it into the browser bundle if referenced. This app never references it.

Key files:

  • app/page.tsx — landing page rendering the search experience
  • components/search/search-experience.tsx — InstantSearch UI (algoliasearch lite client)
  • app/products/[id]/page.tsx — product page served from Supabase, showing the DB-only fields

Going to production

  • Add authentication before exposing any write path — this template is read-only.
  • Enable incremental sync with a soft-delete column so removals propagate to the index.
  • Trigger the connector task from the Ingestion API as a server-side extension instead of the dashboard schedule.

License

MIT

Related Templates

  • Maintenance Page thumbnail

    Maintenance Page

    This template shows how to quickly trigger a maintenance page using Edge Config

Related Integrations

  • Algolia

    Immediately show users what they want with AI-driven results that convert

License
  • View License