Hyperse
  • Pricing
  • FAQs
Newsletter

Subscribe to our newsletter

Receive weekly updates with latest collections and exclusive offers, straight to your inbox.

Hyperse

Headless commerce solutions for brands, developers, and modern ecommerce teams.

Explore

  • Home
  • About Us
  • Partners
  • FAQs

Legal & resources

  • Proposal
  • Privacy Policy
  • Terms & Conditions

© 2026 Hyperse. All rights reserved.


  1. Home
  2. Vendure Plugins
  3. hps-plugin-typesense
hps-plugin-typesense

hps-plugin-typesense

By Hyperse

hps-plugin-typesense is a Typesense plugin in the Hub Search group.hps-plugin-typesense provides Typesense plugin capabilities for Hub Search. Search infrastructure, indexing, and discovery experiences. It is especially useful for search workflows.

CoreVendure Plugins

Specifications

Technical details and package information for this product.

Package

@hyperse-hub/hps-plugin-typesense

Support by

Hyperse

Support languages

TypeScript, JavaScript, Prolog, Shell, CSS

Integration type

Core

Category

Vendure Plugins

Compatible with

^3.0.0

Latest version

1.0.11

Downloads

0

Repository

https://github.com/hyperse-hub/hub-search

Last published

July 14, 2026

Description
Changelog
loading...

@hyperse-hub/hps-plugin-typesense

Vendure search plugin that indexes catalog data into Typesense and serves shop and admin search through the standard search GraphQL APIs. It is intended as a drop-in replacement for DefaultSearchPlugin (or similar search backends): product and variant updates are reflected in the index via domain events, with optional buffering for heavy workloads.

The design and configuration surface are heavily inspired by Vendure’s Elasticsearch plugin. Thanks to that work for establishing the patterns used here.

Requirements

  • Node.js ≥ 20
  • Vendure ≥ 3.0 (see plugin compatibility in code)
  • A running Typesense server reachable from the Vendure API process

Installation

  1. Remove any other product search plugin from VendureConfig.plugins (for example DefaultSearchPlugin, ElasticSearchPlugin, or another Typesense-backed plugin).
  2. Register HpsPluginTypesense and call .init() with your connection and options.
import { HpsPluginTypesense } from '@hyperse-hub/hps-plugin-typesense'; import type { VendureConfig } from '@vendure/core'; const config: VendureConfig = { plugins: [ HpsPluginTypesense.init({ apiKey: process.env.TYPESENSE_API_KEY ?? 'xyz', host: 'http://localhost', port: 8108, }), ], };

Default connection values match local development: host http://localhost, port 8108, apiKey xyz. Override these for production.

Advanced client configuration

You can pass a Typesense JS client configuration with clientOptions (for example multiple nodes or TLS). If clientOptions.nodes is set, it overrides host and port.

Features

  • Indexing: Creates collections with a configurable indexPrefix (default vendure-), applies indexSettings and optional indexMappingProperties for schema tuning.
  • Incremental updates: Listens to product, variant, asset, channel, collection, and tax events; debounces collection-driven variant updates.
  • Reindexing: Chunked full reindex with reindexChunkSize and reindexChunkOperationSize.
  • Search: Extends SearchInput with priceRange, priceRangeWithTax, and inStock-style filtering as implemented in the plugin. searchConfig controls facets, hit limits, field boosts, extra Typesense query params, and optional mapQuery for custom term shaping.
  • Custom mappings: customProductMappings and customProductVariantMappings add fields to the index and expose them on SearchResult (including GraphQL union customMappings when both kinds exist). Use hydrateProductRelations / hydrateProductVariantRelations so valueFn receives loaded relations.
  • Buffered updates: Set bufferUpdates: true to defer index writes until runPendingSearchIndexUpdates (Admin API), similar to Vendure’s buffered search pattern.
  • GraphQL extensions: extendSearchInputType and extendSearchSortType add custom fields to search input and sort parameters. Extended input values can be read inside searchConfig.mapQuery when you build the Typesense query string.
  • Health: Registers a health indicator when Typesense is reachable on bootstrap.

Full option list and defaults are documented in TypeScript on HpsPluginTypesenseOptions in the package source (src/typesense/options.ts).

Local development

From this package directory:

yarn install yarn build yarn serve

yarn serve loads config/dev-server.ts (with config/.env if present) and starts a dev Vendure instance with HpsPluginTypesense.init({}).

License

MIT — see the repository LICENSE where applicable.

On this page

  • @hyperse-hub/hps-plugin-typesense
    • Requirements
    • Installation
      • Advanced client configuration
    • Features
    • Local development
    • License