Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

README.md

1.88 Kb · 41 lines

Trie Autocomplete

⚠️ Experimental — generated with no human supervision by the daily MCP pipeline to exercise gno tooling. Not audited. See r/moul/x/daily.


A gnoweb autocomplete box: type a prefix in the URL and the realm lists every dictionary word that completes it, in lexicographic order.

Demo of the p/moul/x/daily/trie library — the tree, the ordering and the result cap all come from the package; this realm holds no trie logic of its own. The dictionary is a fixed 55-word list of gno/Go vocabulary, so the realm has no mutable state and Render is fully deterministic.

/r/moul/x/daily/triedemo/v0        → dictionary size + a few prefixes to try
/r/moul/x/daily/triedemo/v0:co     → the 10 words starting with "co"
/r/moul/x/daily/triedemo/v0:trie   → "trie" is itself a word
/r/moul/x/daily/triedemo/v0:zzz    → no match

Read-only: there are no state-changing functions, so nothing here costs more than a query. Results are capped at 25 per render.

Built for gno 0.9.


Part of moul/gno-contracts — moul's versioned gno.land contracts. See the repository for the full catalog, build/test tooling, and usage.

Dependency graph:

gno.land/r/moul/x/daily/triedemo/v0 dependency graph

🧪 Highly experimental — potentially vibe-coded. Not audited; may break, change, or be removed at any time. Do not use with anything of value. Full disclaimer: DISCLAIMER.