etoile
2
总安装量
2
周安装量
#72636
全站排名
安装命令
npx skills add https://github.com/etoile-dev/skills --skill etoile
Agent 安装分布
codex
2
mcpjam
1
claude-code
1
junie
1
windsurf
1
zencoder
1
Skill 文档
Etoile
Overview
Use this skill to help users directly use Etoile or integrate it into production code. Return concise, working snippets with correct auth and documented payloads.
Workflow
- Identify the requested operation:
indexdocumentsearchdocumentsupdate metadatadeletedocument- React search UI integration
- integration troubleshooting
- Choose the right surface:
- Prefer SDK when writing app code.
- Provide JavaScript
fetchand cURL when user asks for raw HTTP or backend integration.
- Select the correct auth key:
secret key: index, patch metadata, deletepublic key: search- Never expose secret keys in client-side code.
- Validate request limits before returning code:
- Query length max
150 - Search results default
10, max100 - Title max
200 - Collection name max
50 - Metadata size max
10,000chars (JSON.stringify(metadata).length)
- Return examples in this order when multiple formats are needed:
- SDK
- JavaScript (
fetch) - cURL
Canonical Endpoints
Base URL:
https://etoile.dev/api/v1
Endpoints:
POST /api/v1/indexPOST /api/v1/searchPATCH /api/v1/documentsDELETE /api/v1/documents
Auth header:
Authorization: Bearer <API_KEY>Content-Type: application/json
Operation Checklist
Index
- Require:
id,collection,title,content - Optional:
metadata - Accept
contentas:- plain text
- website URL
- image URL (
PNG,JPEG,WEBP,GIF, max5MB)
- Response contains:
id,message,type,usage - Use secret key
Search
- Require:
query,collections - Optional:
limit,offset - Response results include:
external_id,title,collection,metadata,score - Score range is
0-1 - Use public key (or secret key)
Update Metadata
- Endpoint:
PATCH /api/v1/documents - Require:
id,metadata - Behavior: metadata is replaced with provided object
- Use secret key
Delete
- Endpoint:
DELETE /api/v1/documents - Require:
id - Use secret key
SDK Guidance
Node SDK (@etoile-dev/client)
- Install:
npm i @etoile-dev/client - Initialize with:
new Etoile({ apiKey: process.env.ETOILE_API_KEY })
- For search in browser/client contexts, use public key variables.
- If editing existing quickstart snippets, keep existing
secretKey/publicKeystyle when already present in that file.
React SDK (@etoile-dev/react)
- Install:
npm i @etoile-dev/react - Fastest setup:
- optional
import "@etoile-dev/react/styles.css" - use
<Search apiKey={process.env.NEXT_PUBLIC_ETOILE_PUBLIC_KEY} collections={[...]} />
- optional
- Advanced:
- primitives:
SearchRoot,SearchInput,SearchResults,SearchResult - hook:
useSearch({ apiKey, collections, limit?, debounceMs? })
- primitives:
Integration Guardrails
- Never output real API keys.
- Use secret keys only server-side.
- Use public keys for browser search.
- Keep payloads to documented fields only.
- Include end-to-end flow when useful: index first, then search.
Reference
For exact payloads, limits, and response snippets, read:
references/etoile-api-reference.md
Links
- Main site:
https://etoile.dev - Docs:
https://etoile.dev/docs