← Catalog

@m4ss/pi-staan-search

Web-search tool for Pi powered by Staan AI's European search API, with semantically enriched snippets for RAG-style usage, news search, and domain filtering

Extension

Install

Install with PiG

pig install npm:@m4ss/pi-staan-search

Install with Pi

pi install npm:@m4ss/pi-staan-search
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.2.0 (README.md). PiG does not review it.

We use Staan's Web Search for AI API because the semantic snippets work well for our RAG-style usage. This extension registers the staan_search tool so the model can search the web and get enriched result chunks.

Features

  • Web and news search; web results always carry semantic enrichment (extra snippets for RAG-style usage)
  • Domain filters via site:domain or -domain.tld in the query
  • Market selection for language/region-aware results (default: fr-fr)
  • A deliberately small schema (query, market, type, offset) so smaller models don't misuse tuning knobs

Install

pi install npm:@m4ss/pi-staan-search

Usage

Requires STAAN_API_KEY:

export STAAN_API_KEY='your_staan_api_key'
staan_search("GDPR NIS2 Europe")
staan_search("AI Act", type="news")
staan_search("site:redis.io transactions")
staan_search("PostgreSQL performance", market="en-us")

API Key

Get a key at the Staan console.

  • Free tier: 1,000 requests/month
  • Web Search: €1 / 1,000 requests
  • Web Search for AI: €2 / 1,000 requests

Limits

  • Queries are capped at 400 characters (API limit). A note is added if truncated.
  • Domain filters via site: syntax may not work when Staan routes through its fallback provider; market="fr-fr" filters reliably.

License

MIT