etoile

📁 etoile-dev/skills 📅 Feb 7, 2026
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

  1. Identify the requested operation:
  • index document
  • search documents
  • update metadata
  • delete document
  • React search UI integration
  • integration troubleshooting
  1. Choose the right surface:
  • Prefer SDK when writing app code.
  • Provide JavaScript fetch and cURL when user asks for raw HTTP or backend integration.
  1. Select the correct auth key:
  • secret key: index, patch metadata, delete
  • public key: search
  • Never expose secret keys in client-side code.
  1. Validate request limits before returning code:
  • Query length max 150
  • Search results default 10, max 100
  • Title max 200
  • Collection name max 50
  • Metadata size max 10,000 chars (JSON.stringify(metadata).length)
  1. Return examples in this order when multiple formats are needed:
  2. SDK
  3. JavaScript (fetch)
  4. cURL

Canonical Endpoints

Base URL:

  • https://etoile.dev/api/v1

Endpoints:

  • POST /api/v1/index
  • POST /api/v1/search
  • PATCH /api/v1/documents
  • DELETE /api/v1/documents

Auth header:

  • Authorization: Bearer <API_KEY>
  • Content-Type: application/json

Operation Checklist

Index

  • Require: id, collection, title, content
  • Optional: metadata
  • Accept content as:
    • plain text
    • website URL
    • image URL (PNG, JPEG, WEBP, GIF, max 5MB)
  • 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/publicKey style 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={[...]} />
  • Advanced:
    • primitives: SearchRoot, SearchInput, SearchResults, SearchResult
    • hook: useSearch({ apiKey, collections, limit?, debounceMs? })

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