Luau Bindings — wiki
The
require("wiki")script API — the on-device wiki: markdown-lite pages in DBFS with live{{provider}}value expansion, search, and an ImGui reader. Every function is[antos]. Design & native core: antos_wiki; the page model and grammar are in the wiki subsystem doc.
local wiki = require("wiki")
local text, meta = wiki.get("networking")
for _, hit in ipairs(wiki.search("dbfs")) do print(hit.topic, hit.snippet) end
| Function | Behaviour |
|---|---|
wiki.get(topic) |
Expanded page text + meta, or nil. {{provider}} tokens are resolved to live system values. |
wiki.exists(topic) |
The qualified topic name if it exists, else nil. |
wiki.search(q [, max]) |
{ { topic, title, snippet }, … }. |
wiki.topics() |
{ { topic, title }, … } — the whole index. |
wiki.open([topic]) |
Open / focus the ImGui reader window (at topic if given). |
wiki.resolve(name) |
The bundle-update URL for a wiki bundle (bundle: in index.md, or the default). |
Pages are ordinary markdown files under
D:/wiki/, so they're versioned, shadow-backed, and searchable like any other DBFS data — and editable withio/fs.
Related
- antos_wiki — design & native core · wiki subsystem (page model, grammar, providers) · luau_fs · AntOS Libraries hub