Repository navigation
Description
Motivation
The README advertises "Zero friction install" but today the new-user path is:
cargo install splashboard(or brew)- Figure out that
splashboard init <shell>prints a snippet, not edits the rc. - Run
splashboard init zsh >> ~/.zshrcyourself. - Start a new shell — you see the baked-in default config, which is a curated "everything and the kitchen sink" layout intended for the docs screenshots, not a starter any real user wants long-term.
- Copy-paste the baked default into
$HOME/.splashboard/config.toml(which you first have to know exists) and start hacking.
Two friction points:
- Rc wiring is DIY.
init <shell>is a snippet-printer, not an installer. First-time users don't know whether they're supposed to pipe it, redirect it, or source it inline. - No starter templates. The baked default is the only "config by example." It's tuned as a showcase — not what someone who just wants a clock + system info on
$HOMEwould pick. And it's the only preset, so there's no sense of "here's another flavor if yours is different."
Per AGENTS.md, splashboard has three first-class positioning contexts (self/home, self/project, other/project). Templates should be themed per context — what you care about on $HOME is very different from what you care about when cd-ing into a repo, and the "flavor" axis (ambient vs. fastfetch-style vs. github-activity vs. splash animation) is what actually differentiates good presets.
Proposal
1. Ship themed template configs
Naming convention: <context>_<theme>. This keeps the list self-sorting and makes it obvious which templates live on $HOME vs. under a project root. Initial set (not exhaustive — expand as catalog grows):
Home ($HOME/.splashboard/config.toml)
| template | idea |
|---|---|
home_generic |
ambient greeting: clock, calendar, weather — the classic "start-of-day" splash. |
home_fastfetch |
system info heavy: OS, uptime, CPU/mem, disk, ascii logo. Drop-in fastfetch/neofetch replacement vibe. |
home_github_activity |
contributions heatmap + PRs awaiting review + recent commits sparkline. For the GitHub-native user. |
home_splashscreen |
animated showcase: big ascii clock, typewriter greeting, flashy. For people who want "wow" on every shell. |
Project (./.splashboard/config.toml, walk-up discovery)
| template | idea |
|---|---|
project_git_status |
branch, dirty state, ahead/behind, commits sparkline. 100% Safe — no trust needed. |
project_github_status |
open PRs, review queue, CI status for the current repo. Network, needs trust. |
project_readme |
README preview + TODO list pulled from the repo. Safe. |
Templates live in src/templates/ and are exposed via a small catalog API (name, context, one-line description, body bytes) using the same include_str! pattern as default_config.toml. The catalog is open-ended — new home_* / project_* themes land as small PRs against this list rather than needing their own issue.
The current baked default stays as-is (it's the screenshot/demo config, not a user preset) but is no longer the only "config by example" a new user sees.
2. splashboard install subcommand
splashboard install [--shell <bash|zsh|fish|powershell>]
[--template <home_generic|home_fastfetch|home_github_activity|home_splashscreen|project_git_status|project_github_status|project_readme>]
[--config-path <path>]
[--yes]
Behavior:
- Detect the shell from
$SHELL/$PSModulePathwhen--shellis omitted; fall back to an interactive picker in a TTY, or fail with a message in non-TTY. - Pick a template interactively (TTY) or via
--template. The picker groups by context (home_*vsproject_*) and shows the one-line description so users aren't guessing.project_*templates write to./.splashboard/config.toml;home_*templates write to$HOME/.splashboard/config.toml. The chosen template name carries the destination, so no separate--scopeflag. - Refuse to overwrite an existing config without
--yes; offer a.baksidecar when overwriting. - Wire the shell rc by appending a single clearly-delimited block (
# >>> splashboard >>>…# <<< splashboard <<<) that sources the output ofsplashboard init <shell>. Idempotent — re-runninginstalldetects the block and skips. Refuse to write if the rc is missing without--yes. - Print a next-steps summary (which files were touched, how to open a new shell, how to re-run with a different template, pointer to
splashboard catalog).
Non-interactive mode (--yes + --shell + --template) is the scriptable path for dotfiles bootstrap.
3. Small surface changes this implies
splashboard init <shell>stays (snippet printer, used by the install block and by power users who want to own their rc edits). Its role is now "emit the snippet the installer would have appended," which matches every otherfoo initCLI out there (starship, zoxide, mise).splashboard cataloggrows atemplatessubtree so the docs site / TUI can list the same set thatinstallpulls from, grouped by context.- README's "Installation (planned)" block gets rewritten around
splashboard installonce this ships, with screenshots per theme.
Open questions
- Should
installalso runsplashboard truston the freshly writtenproject_*config? Leaning no — the whole point of trust is informed consent, and the user hasn't read the file yet if we wrote it for them. Butproject_git_status/project_readmeare 100% Safe and don't need trust at all, so only the network-touching ones (project_github_status) produce the trust prompt on first render. - Uninstall command? Probably
splashboard uninstallthat removes the rc block (by marker) and optionally deletes the config. Nice-to-have, can be a follow-up. $HOME/.splashboard/creation:installshould be the thing that explicitly creates it; today the runtime creates it lazily on first cache write, which means a fresh user who runs nothing butsplashboard installshould still end up with a visible directory.- Windows shells: PowerShell rc is
$PROFILEwhich may not exist — same "refuse without --yes" rule, and we'd need to create the parent directory. - Template catalog growth: the set above is the seed. Good candidates for follow-up themes:
home_pomodoro,home_rss_reader,project_ci(once a CI fetcher exists),project_todo. Shipping them is a small PR per theme, not a new issue.
Non-goals
- No interactive config editor / wizard.
installpicks a themed starter; tweaking widgets is still "edit the TOML." A full wizard is a separate, much bigger feature. - No plugin / command-widget templates. Per the closed core: Plugin protocol (subprocess-based I/O spec) #5 and widget: command / shell oneliner (generic subprocess fetcher) #20, those aren't part of the widget surface. Templates only compose built-in fetchers + renderers.
- No auto-update of existing configs. If the user already has
config.toml, we don't migrate it; we prompt to overwrite or bail.
Activity
unhappychoice commentedon Apr 22, 2026
0.x scope (#76) で要件追加:
Gallery picker
TTY モードでは
--template未指定のとき、以下を表示する picker に:非 TTY モードでは従来通り
--template必須。#82 の config 分離を前提とする
install は
dashboard.tomlのみ書き込む。既存settings.toml(ユーザの theme / padding) は絶対に上書きしない。再実行で preset 切り替え時、ユーザ preference が残る。unhappychoice commentedon Apr 22, 2026
#82 の刷新を反映 — install は home 用 / project 用 2 枠選ばせる に更新:
$HOME/.splashboard/home.dashboard.toml+$HOME/.splashboard/project.dashboard.tomlの 2 ファイルを書くsettings.tomlは既存があれば温存、無ければ default 書くnon-TTY 時は両方
--templateフラグで指定:--home-template home_splash --project-template project_github_activityプロジェクト用デフォルトは repo root でのみ発動 (#82 の解決ロジック参照)。サブディレクトリでの cd では silent exit が前提なので、picker でユーザに説明する:
docs(presets): cut dev-perspective rationale and project tracking notes
docs(getting-started): lead with `splashboard install`, document scri…
feat(install): add theme / bg / wait pickers + matching flags
feat(install): add `splashboard install` one-shot onboarding
Merge pull request #98 from unhappychoice/feat/install-subcommand