/docs
Searches the Effect v3 documentation.
/docs-v4
Searches the Effect v4 (effect-smol) documentation.
How it works
Start typing a query
Begin typing after
/docs or /docs-v4. Discord’s autocomplete triggers once you have entered at least 3 characters.Pick a result
The bot performs a fuzzy search (powered by fuzzysort) across all module/function names and returns up to 25 suggestions.
Choose visibility
Set the
public option to true to post the embed visibly in the channel, or false to receive an ephemeral response only you can see.Data source
Documentation entries are fetched from the tim-smart/effect-io-ai JSON files on GitHub and cached withResource.auto. The cache is refreshed every 3 hours.
DocsLookup.ts
DocEntry schema
Each documentation entry is decoded from JSON using the following schema:DocsLookup.ts
Embed contents
When a result is selected, the bot builds a Discord embed with:- Author — package name (e.g.
effect,@effect/platform) - Title —
Module.functionNamewith a link to the docs page - Color — Effect purple (
#882ECB) - Description — prose description, followed by the type signature formatted with Prettier in a TypeScript code block, then any provided examples
- View source field — direct link to the source file
- Footer — added-in version (e.g.
Added in v2.0.0)
If a query is fewer than 3 characters the autocomplete returns no choices and the bot stays silent. Submit a longer query to see results.