Skip to content
SearchJet
Universal JavaScript SDK

Instant Search for Any Website

Add powerful search to any website with SearchJet Connect. React autocomplete, headless Next.js search, and vanilla JS site search — with a free API key in 60 seconds.

app.js
import SearchJet from '@searchjet/connect';

const searchjet = new SearchJet({
  apiKey: '8e371cadae7aefedd3c99e41835df7ad709a27128c2a2d0c10ac408b1124c5a7',
  indexName: 'my_website'
});

// Search as you type
const results = await searchjet.search('laptop deals');
console.log(results.hits);

Three lines of code. Instant search on any website.

Works With Your Favorite Framework

Click a framework to see a live preview and copy-paste code that runs out of the box

https://your-site.devLive preview
Try:

The UI the code below produces — search-as-you-type, backed by the live SearchJet product index.

App.jsx
// App.jsx — copy-paste, runs as-is
import { SearchProvider, SearchBox, Hits } from '@searchjet/react';

function Hit({ hit }) {
  return (
    <a href={hit.url} className="block border-b border-gray-100 p-3 hover:bg-gray-50">
      <h4 className="font-semibold text-gray-900">{hit.title}</h4>
      {hit.excerpt && <p className="text-sm text-gray-500">{hit.excerpt}</p>}
    </a>
  );
}

export default function App() {
  return (
    <SearchProvider apiKey="" indexName="YOUR_INDEX">
      <SearchBox placeholder="Search products…" />
      <Hits hitComponent={Hit} />
    </SearchProvider>
  );
}

Click YOUR_API_KEY in the code to generate your free key — it's injected instantly.

Everything You Need

Built with modern web development best practices

Framework Agnostic

Works with React, Vue, Angular, Svelte, or plain JavaScript. Use it anywhere.

TypeScript Support

Full TypeScript definitions included for type-safe development and better IDE support.

CDN Ready

Load from CDN or bundle with your app. Tree-shakeable and optimized for performance.

Lightweight

Less than 10KB gzipped. Fast loading times with zero dependencies.

Mobile First

Responsive components and touch-optimized UI for perfect mobile experiences.

Fully Customizable

Headless by default. Use our UI components or build your own with complete control.

Component Gallery

Try the Search UI Patterns Developers Search For

Live, interactive demos with copy-paste code for each pattern

Live demo · autocomplete
autocomplete.jsx
import { SearchProvider, Autocomplete } from '@searchjet/react';

function App() {
  return (
    <SearchProvider indexName="docs" searchApiKey="your_search_api_key">
      <Autocomplete
        placeholder="Search docs & products…"
        maxSuggestions={6}
        debounceMs={150}          // avoid hammering the API
        onSelect={(hit) => {
          window.location.href = hit.url;
        }}
      />
    </SearchProvider>
  );
}

Copy-paste ready. Swap your_search_api_key with the free key from the widget above.

Get Started in 4 Steps

From installation to live search in minutes

01

Install or Load

Install via npm or load from CDN

02

Initialize

Configure with your API key and index

03

Add UI

Use pre-built components or build custom

04

Customize

Style and configure to match your brand

Developer Recipes

Pick Your Stack. We've Written the Search for You.

Copy-paste, framework-specific guides for the exact search pattern you're building today.

Why Developers Love SearchJet Connect

Modern, performant, and developer-friendly. Built for the modern web.

Zero dependencies - pure JavaScript
Tree-shakeable ES modules
Automatic debouncing and caching
Keyboard navigation built-in
Accessibility (a11y) compliant
Dark mode support
Custom styling with CSS variables
Extensive documentation and examples

Ready to Add Search to Your Site?

Start building with SearchJet Connect today. Works with any JavaScript framework or plain HTML.

Frequently Asked Questions

Everything you need to know about SearchJet JavaScript SDK

How long does it take to add SearchJet to my website?
Most developers get SearchJet running in under 5 minutes. Generate a free API key on this page, then install via npm or load from CDN, initialize with your key, and add the search component to your page. The live sandbox on this page lets you test queries before writing any code.
Can I try SearchJet without installing anything?
Yes. The live sandbox on this page queries the real SearchJet API from your browser — type a query and watch the JSON response update in real time. The component gallery also includes interactive autocomplete, faceted search, voice search, and zero-result fallback demos.
How do I get a free SearchJet API key?
Enter your email in the "Zero to Search" widget at the top of this page. We instantly inject a working demo key into the live sandbox so you can search the moment it is generated. Create a free account to get a key scoped to your own index and content.
Which frameworks are supported?
SearchJet Connect works with all major JavaScript frameworks including React, Vue, Angular, Next.js, Svelte, and vanilla JavaScript. The core SDK is framework-agnostic.
Does it work with server-side rendering (SSR)?
Yes! SearchJet Connect supports SSR and static site generation (SSG). It works seamlessly with Next.js, Nuxt, and other SSR frameworks.
Is TypeScript supported?
Absolutely. The SDK includes full TypeScript definitions out of the box. You get autocomplete, type checking, and better IDE support automatically.
What happens if I exceed my plan limits?
Your search continues to work normally. We notify you to upgrade but your users experience no disruption. Upgrade anytime with a single click.
Is there a free plan available?
Yes! The Starter plan is free forever with 10,000 search queries per month and up to 1,000 indexed pages. No credit card required.

Simple, Transparent Pricing

Start free, upgrade when you need more

Free Forever

Starter

$0/month
  • 10,000 search queries/month
  • Up to 1,000 indexed pages
  • 7-day analytics retention
  • Community support
Get My Free API Key
Most Popular

Professional

$19/month
  • 50,000 search queries/month
  • Up to 25,000 indexed pages
  • 30-day analytics retention
  • Email support
  • Up to 3 sites
Start Free Trial

Enterprise

Custom
  • Unlimited searches
  • Unlimited documents
  • Dedicated account manager
  • SLA guarantee
  • Custom integrations
Contact Sales

All plans include SSL, CDN, and 99.9% uptime guarantee. View detailed pricing →

Related Use Cases