npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@juadariasmar/strapi-plugin-typesense

v1.0.0

Published

Typesense full-text, vector, and hybrid search integration for Strapi 5

Readme


⚡ Features

  • 🔍 Full-Text Keyword Search: Lightning fast indexing & search powered by Typesense.
  • 🧠 Vector & Semantic Search: Native vector search support for AI embeddings (float[]).
  • 🔀 Hybrid Search: Combine keyword relevance (q) and vector similarity (vector_query) seamlessly.
  • 🤖 Auto-Embeddings: Built-in support for Typesense auto-embedding models (e.g. ts/all-MiniLM-L6-v2).
  • 🔄 Real-Time Lifecycle Sync: Automatic indexing on entry creation, update, and deletion in Strapi 5.
  • 🎨 Admin UI Dashboard: Built with @strapi/design-system for status monitoring and collection mapping.
  • 🔐 Secure Proxy Endpoint: Public /api/typesense/search endpoint without exposing admin API keys.

📦 Installation

In your Strapi v5 project:

npm install strapi-plugin-typesense
# or
yarn add strapi-plugin-typesense

⚙️ Configuration

Enable and configure the plugin in config/plugins.js or config/plugins.ts:

module.exports = ({ env }) => ({
  typesense: {
    enabled: true,
    config: {
      apiKey: env("TYPESENSE_API_KEY"),
      nodes: [
        {
          host: env("TYPESENSE_HOST", "localhost"),
          port: env.int("TYPESENSE_PORT", 8108),
          protocol: env("TYPESENSE_PROTOCOL", "http"),
        },
      ],
      collections: {
        "api::article.article": {
          name: "articles",
          facets: ["category"],
          vectorField: {
            name: "embedding",
            numDim: 384,
            autoEmbed: true,
            embedFrom: ["title", "content"],
            modelName: "ts/all-MiniLM-L6-v2",
          },
        },
      },
    },
  },
});

🌐 Public Search API

The plugin exposes a secure content API endpoint at GET /api/typesense/search:

curl -X GET "http://localhost:1337/api/typesense/search?collection=articles&q=strapi"

Hybrid Search Example

curl -X GET "http://localhost:1337/api/typesense/search?collection=articles&q=strapi&vector_query=embedding:([0.12,0.45,...],k:10)"

🚀 Publishing to NPM & Strapi Marketplace

1. Build and Verify Package

npm run build
npm run verify

2. Commit & Push

git add .
git commit -m "feat: initial release of strapi-plugin-typesense for Strapi 5"
git push origin main

3. Publish to NPM

npm login
npm publish --access public

4. Submit to Strapi Marketplace

Visit Strapi Marketplace Submission and submit your repository:

  • Package Name: strapi-plugin-typesense
  • Repository: https://github.com/cartulina/strapi-plugin-typesense

📄 License

MIT © Juan David Arias