PHPackages                             statamic-rad-pack/typesense - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Search &amp; Filtering](/categories/search)
4. /
5. statamic-rad-pack/typesense

ActiveLibrary[Search &amp; Filtering](/categories/search)

statamic-rad-pack/typesense
===========================

typesense search driver for Statamic

v3.2.0(3mo ago)610.5k↓48.5%4MITPHPPHP ^8.2CI passing

Since Aug 19Pushed 2w ago5 watchersCompare

[ Source](https://github.com/statamic-rad-pack/typesense)[ Packagist](https://packagist.org/packages/statamic-rad-pack/typesense)[ Docs](https://github.com/statamic-rad-pack/typesense)[ RSS](/packages/statamic-rad-pack-typesense/feed)WikiDiscussions main Synced 4d ago

READMEChangelog (10)Dependencies (24)Versions (27)Used By (0)

Statamic Typesense Driver
=========================

[](#statamic-typesense-driver)

This addon provides a [Typesense](https://typesense.org) search driver for Statamic sites.

Requirements
------------

[](#requirements)

- PHP 8.2+
- Laravel 10+
- Statamic 6
- Typesense 0.2+

### Installation

[](#installation)

```
composer require statamic-rad-pack/typesense
```

Add the following variables to your env file:

```
TYPESENSE_HOST=http://127.0.0.1
TYPESENSE_API_KEY=
```

Add the new driver to the `statamic/search.php` config file:

```
'drivers' => [

    // other drivers

    'typesense' => [
        'client' => [
    	    'api_key' => env('TYPESENSE_API_KEY', 'xyz'),
            'nodes' => [
                [
                    'host' => env('TYPESENSE_HOST', 'localhost'),
                    'port' => env('TYPESENSE_PORT', '8108'),
                    'path' => env('TYPESENSE_PATH', ''),
                    'protocol' => env('TYPESENSE_PROTOCOL', 'http'),
                ],
            ],
            'nearest_node' => [
                'host' => env('TYPESENSE_HOST', 'localhost'),
                'port' => env('TYPESENSE_PORT', '8108'),
                'path' => env('TYPESENSE_PATH', ''),
                'protocol' => env('TYPESENSE_PROTOCOL', 'http'),
            ],
            'connection_timeout_seconds' => env('TYPESENSE_CONNECTION_TIMEOUT_SECONDS', 2),
            'healthcheck_interval_seconds' => env('TYPESENSE_HEALTHCHECK_INTERVAL_SECONDS', 30),
            'num_retries' => env('TYPESENSE_NUM_RETRIES', 3),
            'retry_interval_seconds' => env('TYPESENSE_RETRY_INTERVAL_SECONDS', 1),
        ],
    ],
],
```

You can optionally publish the config file for this package using:

```
php artisan vendor:publish --tag=statamic-typesense-config

```

### Search Settings

[](#search-settings)

Any additional settings you want to define per index can be included in the `statamic/search.php` config file. The settings will be updated when the index is created.

```
'articles' => [
    'driver' => 'typesense',
    'searchables' => ['collection:articles'],
    'fields' => ['id', 'title', 'url', 'type', 'content', 'locale'],
    'settings' => [
        'schema' => [
            /*
                Pass an optional schema, see the Typesense documentation for more info:
                https://typesense.org/docs/26.0/api/collections.html#with-pre-defined-schema
            */
            'fields' => [
                [
                  'name'  => 'company_name',
                  'type'  => 'string',
                ],
                [
                  'name'  => 'num_employees',
                  'type'  => 'int32',
                  'sort'  => true,
                ],
                [
                  'name'  => 'country',
                  'type'  => 'string',
                  'facet' => true,
                ],
            ],
        ],
        /*
            Pass any of the options from https://typesense.org/docs/26.0/api/search.html#search-parameters
        */
        'search_options' => [
            /*
                eg Specify a custom sort by order, see the Typesense documentation for more info:
                https://typesense.org/docs/guide/ranking-and-relevance.html#ranking-based-on-relevance-and-popularity
            */
            'sort_by' => '_text_match(buckets: 10):desc,weighted_score:desc',
        ],

        /*
            Set this to true to maintain the sort score order that Typesense returns
        */
        'maintain_rankings' => false,
    ],
],
```

###  Health Score

55

—

FairBetter than 97% of packages

Maintenance91

Actively maintained with recent releases

Popularity33

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 84.8% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Recently: every ~22 days

Total

23

Last Release

19d ago

Major Versions

v1.4.1 → v2.0.02025-01-27

v2.4.0 → v3.0.02026-01-29

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44739?v=4)[Jack McDade](/maintainers/jackmcdade)[@jackmcdade](https://github.com/jackmcdade)

![](https://avatars.githubusercontent.com/u/1669353?v=4)[Statamic](/maintainers/statamic)[@statamic](https://github.com/statamic)

![](https://avatars.githubusercontent.com/u/51899?v=4)[Ryan Mitchell](/maintainers/ryanmitchell)[@ryanmitchell](https://github.com/ryanmitchell)

---

Top Contributors

[![ryanmitchell](https://avatars.githubusercontent.com/u/51899?v=4)](https://github.com/ryanmitchell "ryanmitchell (84 commits)")[![duncanmcclean](https://avatars.githubusercontent.com/u/19637309?v=4)](https://github.com/duncanmcclean "duncanmcclean (7 commits)")[![simonerd](https://avatars.githubusercontent.com/u/7941370?v=4)](https://github.com/simonerd "simonerd (4 commits)")[![edalzell](https://avatars.githubusercontent.com/u/6069653?v=4)](https://github.com/edalzell "edalzell (2 commits)")[![bastihilger](https://avatars.githubusercontent.com/u/1419634?v=4)](https://github.com/bastihilger "bastihilger (1 commits)")[![Jamesking56](https://avatars.githubusercontent.com/u/253237?v=4)](https://github.com/Jamesking56 "Jamesking56 (1 commits)")

---

Tags

statamic-addontypesensesearchstatamictypesense

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/statamic-rad-pack-typesense/health.svg)

```
[![Health](https://phpackages.com/badges/statamic-rad-pack-typesense/health.svg)](https://phpackages.com/packages/statamic-rad-pack-typesense)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[statamic-rad-pack/meilisearch

meilisearch search driver for Statamic

1675.5k](/packages/statamic-rad-pack-meilisearch)[typesense/laravel-scout-typesense-driver

Laravel Scout Driver for Typesense

146678.3k3](/packages/typesense-laravel-scout-typesense-driver)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)[daun/statamic-mux

Seamless video encoding and streaming using Mux on Statamic sites

133.0k](/packages/daun-statamic-mux)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
