Vados
@gklijs/vadosv2026.10.14.10
01README
Wraps the Vados static site generator CLI (vados check, generate, page, image, social, menu, footer, luma-event) for use in swamp workflows
02Behaviors
@gklijs/vadosv2026.10.14.10vados.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| vadosBin? | string | Path to the vados binary on the worker (defaults to 'vados' on PATH) |
| source? | string | Path to the source tree directory (main.json, menu.json, page.json files) |
| imgSource? | string | Path to the image source tree directory (images.json files) |
| destination? | string | Path to the output directory (used by generate) |
| timeout? | number | Command execution timeout in milliseconds |
fn check()
Run vados check — validate the source and image trees without writing anything
fn generate()
Run vados generate — publish a complete site from the source tree into the destination directory
fn page_new(path: string, title: string, content?: string, imageRef?: string, subTitle?: string, icon?: string, summary?: string, order?: number)
Create a new page.json for a path not yet in the source tree (with optional content and hero image)
| Argument | Type | Description |
|---|---|---|
| path | string | URL path for the new page (e.g. '/blog/my-post') |
| title | string | Page title (rendered as the <h1> heading) |
| content? | string | Content file path (.md/.html) or inline HTML for the page body |
| imageRef? | string | Existing image reference (e.g. '/team/alice') to attach as the page hero image |
| subTitle? | string | Optional page sub-title |
| icon? | string | Optional page icon (Material Design Icons name) |
| summary? | string | Optional page summary |
| order? | number | Optional ordering hint among sibling pages |
fn page_add_image(path: string, dir?: string, fileName?: string, existingReference?: string, as?: enum, altText?: string, caption?: string, side?: enum)
Attach an image to an existing page as its hero or as a notification — freshly registered or already declared
| Argument | Type | Description |
|---|---|---|
| path | string | Page to attach the image to (e.g. '/blog/my-post') |
| dir? | string | Image directory name, relative to the image source (omit for the image root) |
| fileName? | string | Image file name to register as a new image (mutually exclusive with existingReference) |
| existingReference? | string | Already-declared image reference key (e.g. '/team/alice'), instead of registering a new one |
| as? | enum | Override the automatic role choice: 'hero' or 'notification' (default: first attached image is hero) |
| altText? | string | Alt text for a newly registered image (required with fileName; not accepted with existingReference) |
| caption? | string | Caption shown for the attachment (notification images only) |
| side? | enum | Which side a notification is added to (default: right) |
fn image_add(dir?: string, fileName: string, altText: string, title?: string)
Register one image in an images.json, creating the file if the directory has none yet
| Argument | Type | Description |
|---|---|---|
| dir? | string | Image directory name to register under (e.g. 'team'; omit for the image root) |
| fileName | string | Image file name (e.g. 'alice.jpg') |
| altText | string | Alt text describing the image (required by vados check) |
| title? | string | Optional human-readable image title |
fn social_add()
Add a social link — use provider+handle for recognized providers (github, linkedin, facebook, youtube, twitter) or url for unrecognized ones
fn social_update(match: string, index?: number)
Replace an existing social link (matched by url substring) with a new provider+handle or url link
| Argument | Type | Description |
|---|---|---|
| match | string | Substring of the existing link's url to match |
| index? | number | Disambiguate when more than one link matches (ranked among the matches) |
fn social_remove(match: string, index?: number)
Remove an existing social link (matched by url substring)
| Argument | Type | Description |
|---|---|---|
| match | string | Substring of the existing link's url to match |
| index? | number | Disambiguate when more than one link matches (ranked among the matches) |
fn menu_add_item(url: string, title?: string, icon?: string)
Append one entry to the main menu (title required for external URLs)
| Argument | Type | Description |
|---|---|---|
| url | string | Menu item URL (external 'https://...' requires title; internal '/path' uses the page's own title) |
| title? | string | Menu item title (required for external URLs, optional for internal) |
| icon? | string | Optional menu item icon (Material Design Icons name) |
fn footer_set(content: string)
Replace the site-wide footer content reference
| Argument | Type | Description |
|---|---|---|
| content | string | Footer content file path (e.g. 'footer.md') or inline HTML |
fn page_luma_event(path: string, eventId: string, title: string, display?: enum, buttonLabel?: string)
Link a Luma event (eventId like 'evt-...') to a page, with display mode and button label
| Argument | Type | Description |
|---|---|---|
| path | string | Page path to attach the Luma event to (e.g. '/events') |
| eventId | string | Luma event ID (must be of the form 'evt-...') |
| title | string | Event title (shown as link text and accessible name) |
| display? | enum | How to display the Luma event on the page |
| buttonLabel? | string | Text for the register button (defaults to 'Register') |
Resources
result(4h)— Structured output from a vados CLI subcommand — exit code, stdout/stderr, duration, and success flag
03Previous Versions
2026.10.14.9MIT
2026.10.14.8MIT
2026.10.14.7MIT
2026.10.14.6MIT
2026.10.14.5MIT
2026.10.14.4MIT
2026.10.14.3MIT
2026.10.14.2MIT
2026.10.14.1MIT
04Stats
A
100 / 100
Downloads
1
Archive size
12.8 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License2/2earned
- Verified public repository2/2earned
Repository
https://github.com/gklijs/vados-swampbehavior-spelling1 accepted
- (extension) — All swamp clients and workers install this release; the behavior spelling is correct.
06Platforms
07Labels