Skip to content
Back to skills

Meilisearch

ASecurity

Meilisearch is an open-source, typo-tolerant search engine optimized for developer experience.

  • 13 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
ai-agentsgobashdockertestinggitapidatabasefrontendbackendci/cd

Works with

  • cli
  • api

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 7 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add ashish7802/awesome-api-skills --skill meilisearch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Meilisearch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Meilisearch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ashish7802-meilisearch/badge)](https://www.skillsdirectory.com/skills/ashish7802-meilisearch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Meilisearch API Skill

## Quick Start
Meilisearch is an open-source, typo-tolerant search engine optimized for developer experience.

```bash
npm install meilisearch
```

## Common Workflows
### Indexing and Searching
Add JSON documents to an index. Meilisearch automatically infers the schema. From the frontend or backend, query the index. It natively handles typos, highlighting, and sorting out of the box.

## Production Patterns
### Primary Keys
Always explicitly define the `primaryKey` when creating an index or passing documents. If omitted, Meilisearch will attempt to infer it (looking for `id`), which can lead to unpredictable behavior if your data uses UUIDs under custom field names.

## Error Recovery
Handle `MeiliSearchCommunicationError`. Indexing in Meilisearch is asynchronous. Pushing documents returns a `taskUid`. You must poll `client.waitForTask(taskUid)` if you need to guarantee the data is searchable before proceeding.

## Security Notes
Generate strict Tenant Tokens to allow frontend clients to search the database directly while enforcing security rules (e.g., restricting a user to only search documents where `owner_id = 123`).

## Performance Considerations
While Meilisearch is extremely fast for reads, pushing thousands of documents individually is slow. Always batch document uploads in arrays of up to 100,000 documents per task to maximize throughput.

## Testing Guidance
You can easily spin up a Meilisearch instance in a Docker container (`getmeili/meilisearch`) for CI/CD integration tests, destroying the container post-test.

## Troubleshooting
If specific fields aren't returning in search results, verify the `displayedAttributes` setting. If filtering fails, ensure the field is explicitly added to `filterableAttributes`.

## References
- [Meilisearch JS](https://github.com/meilisearch/meilisearch-js)

## Related Skills
- [Typesense](/skills/typesense)
- [Algolia](/skills/algolia)

## Why use this skill
Use this when your agent works with **meilisearch** — structured patterns beat pasted docs and prevent common hallucinations.

## AI pitfalls
- Inventing column names or schema fields
- Using deprecated driver methods or wrong connection strings
- Omitting connection pooling or transaction boundaries

## Production checklist
- [ ] Migrations version-controlled and applied via CI
- [ ] Connection limits and pooling configured
- [ ] Backups and restore procedure documented

## Related skills
- [`typesense`](../typesense/SKILL.md) — related to
- [`algolia`](../algolia/SKILL.md) — related to

---
> **Last Verified:** 2026-07-02

Files in this skill

  • SKILL.md2.5 KB
  • examples/basic.go48 B
  • examples/basic.py85 B
  • examples/index.ts204 B
  • examples/search.ts95 B
  • prompts/tenant-token.md148 B
  • tests/skill.test.ts29 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.