{"id":36978968,"url":"https://github.com/statamic-rad-pack/typesense","last_synced_at":"2026-04-09T07:26:24.335Z","repository":{"id":253807144,"uuid":"844603220","full_name":"statamic-rad-pack/typesense","owner":"statamic-rad-pack","description":"Typesense search driver for Statamic.","archived":false,"fork":false,"pushed_at":"2025-11-21T12:37:00.000Z","size":64,"stargazers_count":6,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-11-21T14:31:48.213Z","etag":null,"topics":["statamic-addon","typesense"],"latest_commit_sha":null,"homepage":"https://statamic.com/addons/rad-pack/typesense","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/statamic-rad-pack.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"statamic"}},"created_at":"2024-08-19T15:40:05.000Z","updated_at":"2025-09-17T10:13:44.000Z","dependencies_parsed_at":"2025-03-06T13:22:45.794Z","dependency_job_id":"ee0c4354-5e56-46d3-956f-820015fcd6d5","html_url":"https://github.com/statamic-rad-pack/typesense","commit_stats":null,"previous_names":["statamic-rad-pack/typesense"],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/statamic-rad-pack/typesense","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic-rad-pack%2Ftypesense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic-rad-pack%2Ftypesense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic-rad-pack%2Ftypesense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic-rad-pack%2Ftypesense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/statamic-rad-pack","download_url":"https://codeload.github.com/statamic-rad-pack/typesense/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/statamic-rad-pack%2Ftypesense/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["statamic-addon","typesense"],"created_at":"2026-01-13T22:48:31.756Z","updated_at":"2026-01-13T22:48:32.220Z","avatar_url":"https://github.com/statamic-rad-pack.png","language":"PHP","funding_links":["https://github.com/sponsors/statamic"],"categories":[],"sub_categories":[],"readme":"# Statamic Typesense Driver\n\nThis addon provides a [Typesense](https://typesense.org) search driver for Statamic sites.\n\n## Requirements\n\n* PHP 8.2+\n* Laravel 10+\n* Statamic 5\n* Typesense 0.2+\n\n### Installation\n\n```bash\ncomposer require statamic-rad-pack/typesense\n```\n\nAdd the following variables to your env file:\n\n```txt\nTYPESENSE_HOST=http://127.0.0.1\nTYPESENSE_API_KEY=\n```\n\nAdd the new driver to the `statamic/search.php` config file:\n\n```php\n'drivers' =\u003e [\n\n    // other drivers\n\n    'typesense' =\u003e [\n        'client' =\u003e [\n    \t    'api_key' =\u003e env('TYPESENSE_API_KEY', 'xyz'),\n            'nodes' =\u003e [\n                [\n                    'host' =\u003e env('TYPESENSE_HOST', 'localhost'),\n                    'port' =\u003e env('TYPESENSE_PORT', '8108'),\n                    'path' =\u003e env('TYPESENSE_PATH', ''),\n                    'protocol' =\u003e env('TYPESENSE_PROTOCOL', 'http'),\n                ],\n            ],\n            'nearest_node' =\u003e [\n                'host' =\u003e env('TYPESENSE_HOST', 'localhost'),\n                'port' =\u003e env('TYPESENSE_PORT', '8108'),\n                'path' =\u003e env('TYPESENSE_PATH', ''),\n                'protocol' =\u003e env('TYPESENSE_PROTOCOL', 'http'),\n            ],\n            'connection_timeout_seconds' =\u003e env('TYPESENSE_CONNECTION_TIMEOUT_SECONDS', 2),\n            'healthcheck_interval_seconds' =\u003e env('TYPESENSE_HEALTHCHECK_INTERVAL_SECONDS', 30),\n            'num_retries' =\u003e env('TYPESENSE_NUM_RETRIES', 3),\n            'retry_interval_seconds' =\u003e env('TYPESENSE_RETRY_INTERVAL_SECONDS', 1),\n        ],\n    ],\n],\n```\n\nYou can optionally publish the config file for this package using:\n\n```\nphp artisan vendor:publish --tag=statamic-typesense-config\n```\n\n### Search Settings\n\nAny 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.\n\n```php\n'articles' =\u003e [\n    'driver' =\u003e 'typesense',\n    'searchables' =\u003e ['collection:articles'],\n    'fields' =\u003e ['id', 'title', 'url', 'type', 'content', 'locale'],\n    'settings' =\u003e [\n        'schema' =\u003e [\n            /*\n                Pass an optional schema, see the Typesense documentation for more info:\n                https://typesense.org/docs/26.0/api/collections.html#with-pre-defined-schema\n            */\n            'fields' =\u003e [\n                [\n                  'name'  =\u003e 'company_name',\n                  'type'  =\u003e 'string',\n                ],\n                [\n                  'name'  =\u003e 'num_employees',\n                  'type'  =\u003e 'int32',\n                  'sort'  =\u003e true,\n                ],\n                [\n                  'name'  =\u003e 'country',\n                  'type'  =\u003e 'string',\n                  'facet' =\u003e true,\n                ], \n            ],\n        ],\n        /* \n            Pass any of the options from https://typesense.org/docs/26.0/api/search.html#search-parameters\n        */\n        'search_options' =\u003e [\n            /* \n                eg Specify a custom sort by order, see the Typesense documentation for more info:\n                https://typesense.org/docs/guide/ranking-and-relevance.html#ranking-based-on-relevance-and-popularity\n            */\n            'sort_by' =\u003e '_text_match(buckets: 10):desc,weighted_score:desc',\n        ],\n        \n        /*\n            Set this to true to maintain the sort score order that Typesense returns \n        */\n        'maintain_rankings' =\u003e false,\n    ],\n],\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic-rad-pack%2Ftypesense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstatamic-rad-pack%2Ftypesense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstatamic-rad-pack%2Ftypesense/lists"}