Skip to content

feat: "splashboard install" — one-shot setup (rc wiring + starter config from template) #58

Closed

Description

@unhappychoice

Motivation

The README advertises "Zero friction install" but today the new-user path is:

  1. cargo install splashboard (or brew)
  2. Figure out that splashboard init <shell> prints a snippet, not edits the rc.
  3. Run splashboard init zsh >> ~/.zshrc yourself.
  4. 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.
  5. 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 $HOME would 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 / $PSModulePath when --shell is 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_* vs project_*) 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 --scope flag.
  • Refuse to overwrite an existing config without --yes; offer a .bak sidecar when overwriting.
  • Wire the shell rc by appending a single clearly-delimited block (# >>> splashboard >>> … # <<< splashboard <<<) that sources the output of splashboard init <shell>. Idempotent — re-running install detects 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 other foo init CLI out there (starship, zoxide, mise).
  • splashboard catalog grows a templates subtree so the docs site / TUI can list the same set that install pulls from, grouped by context.
  • README's "Installation (planned)" block gets rewritten around splashboard install once this ships, with screenshots per theme.

Open questions

  • Should install also run splashboard trust on the freshly written project_* 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. But project_git_status / project_readme are 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 uninstall that removes the rc block (by marker) and optionally deletes the config. Nice-to-have, can be a follow-up.
  • $HOME/.splashboard/ creation: install should 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 but splashboard install should still end up with a visible directory.
  • Windows shells: PowerShell rc is $PROFILE which 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

Activity

  1. added
    feat
    on Apr 22, 2026
  2. unhappychoice commented on Apr 22, 2026

    @unhappychoice
    OwnerAuthor

    0.x scope (#76) で要件追加:

    Gallery picker

    TTY モードでは --template 未指定のとき、以下を表示する picker に:

    非 TTY モードでは従来通り --template 必須。

    #82 の config 分離を前提とする

    install は dashboard.toml のみ書き込む。既存 settings.toml (ユーザの theme / padding) は絶対に上書きしない。再実行で preset 切り替え時、ユーザ preference が残る。

  3. unhappychoice commented on Apr 22, 2026

    @unhappychoice
    OwnerAuthor

    #82 の刷新を反映 — install は home 用 / project 用 2 枠選ばせる に更新:

    Pick your home dashboard:
      > home_splash
        home_daily
        home_github
    
    Pick your default project dashboard:
      > project_github_activity
    
    • 両方の preset を gallery picker で選ぶ (preview + 1 行説明付き)
    • $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 でユーザに説明する:

    "This splash appears automatically when you cd into the top of any git repo that doesn't ship its own .splashboard/."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feat

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions