Quickstart
What you need
Rust 1.96 or newer, because the crate uses edition 2024. Git, for the install command. Beyond that, Listsome is one binary with no runtime.
Install
Listsome isn’t on crates.io, so cargo install listsome fails and the
registry says there is no such crate. Install from the Codeberg repository instead:
cargo install --git https://codeberg.org/RyanParsley/listsome
Release tags publish no prebuilt binaries yet, so building from source is the only path. To follow the main branch, clone the repository and install from the working directory:
git clone https://codeberg.org/RyanParsley/listsome.git
cd listsome
cargo install --path .
Check the install:
listsome --version
Create a site
listsome init my-projects
cd my-projects
listsome init writes five things: listsome.toml, projects/, output/,
a .gitignore that hides both generated directories, and a README for your
site. It takes the site name from the directory and the author from $USER.
Pass --name, --author, --url, and --about to set them yourself:
listsome init my-projects --name "The Workbench" \
--author "Ryan" --url "https://workbench.example"
Edit listsome.toml before the first build. Three fields matter most: the
site name, the author that templates print, and the url that feeds and
webmention targets build from. The
configuration reference covers the rest.
Add a project
listsome new smart-thermostat --difficulty intermediate
This writes projects/smart-thermostat/index.md and an empty assets/
directory beside it. The new file carries frontmatter, a materials table, and
two empty step headers, so you fill in a shape rather than start at a blank
page. Add --title and --description to skip the placeholders:
listsome new led-chaser \
--title "LED Chaser" \
--description "A 555 timer that walks eight LEDs in a circle"
Put images and downloads in the project’s assets/ directory and reference
them by relative path: ./assets/hero.jpg.
Build
listsome build
The build reads every projects/*/index.md and writes:
output/index.htmland oneoutput/<slug>/index.htmlper projectoutput/categories/andoutput/tags/index pagesoutput/rss.xml, an Atom feed, withoutput/feed.xsltto style it in a browser- copies of
projects/<slug>/assets/, with images resized output/.webmentions/outbound.json, the link manifest thatlistsome deploysends from
A draft project stays out of the build. status: draft in frontmatter marks
a draft, and listsome build --drafts publishes them anyway. A project whose
frontmatter says nothing about status is live either way.
Preview
listsome serve
The dev server listens on 127.0.0.1:8080, rebuilds when a project file
changes, and reloads the browser over a WebSocket. Set --open to launch the
browser, -p to pick another port, and --drafts to preview drafts. The
server prints its own address at the info level, so a quiet terminal doesn’t
mean a dead server:
RUST_LOG=info listsome serve --open
Publish
Any static host takes the output/ directory. Copy it to Netlify, Codeberg
Pages, S3, or nginx and the site is live.
For a host you control, [deploy] in listsome.toml carries the rsync
target, and listsome deploy pushes output/ and then sends webmentions for
the links your projects point at:
listsome deploy --dry-run # shows the rsync command
listsome deploy
Deploys need [deploy].host, [deploy].user, and [deploy].path, and they
run rsync over ssh.
Command reference
| Command | What it does |
|---|---|
listsome init [PATH] | Writes a new site |
listsome new <NAME> | Writes a new project |
listsome build | Generates the site |
listsome serve | Rebuilds and serves with live reload |
listsome check [PROJECT] | Parses projects and reports failures |
listsome list | Prints projects that match a filter |
listsome deploy | Pushes output/ with rsync, then sends webmentions |
listsome webmention <SUBCOMMAND> | Fetches, moderates, and tests mentions |
Useful flags:
listsome build:--drafts,--clean,-o <DIR>,--base-url <URL>listsome serve:-p <PORT>,-H <HOST>,--open,--draftslistsome list:--category <NAME>,--difficulty <LEVEL>,--draftslistsome new:--title,--description,--difficultylistsome init:--name,--author,--url,--aboutlistsome deploy:--dry-runlistsome webmention:fetch,pending,approve <SOURCE>,reject <SOURCE>,show <SLUG>,test <SOURCE> <TARGET>
The command-line tool also accepts -C, -v, -q, and --color, and drops
all four before any command runs, so --help promises more than the build
delivers. Keep listsome.toml in the directory you run from, and control
output with RUST_LOG, as Troubleshooting describes.
Next steps
Read Project Format to learn what the parser reads out of your Markdown, then Configuration Reference for every field you can set.