TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/mohameodo/nano/llms.txt
Use this file to discover all available pages before exploring further.
shiopa CLI is the official command-line companion for nano. It handles everything from cloning the repository to configuring your site, installing encrypted stream sources (.rink files), and keeping your installation up to date — all without requiring you to touch any source code directly.
Installation
The CLI ships as theshiopa binary inside the shiopa-nano npm package. You can install it globally, run it one-off with npx, or invoke it through pnpm after cloning the repo.
The
shiopa binary is defined in package.json under bin.shiopa, pointing to ./scripts/shiopa.mjs. When you install shiopa-nano globally, shiopa becomes available everywhere in your terminal.How it works
Under the hood,shiopa is a pure Node.js ESM script (scripts/shiopa.mjs) with no external runtime dependencies beyond what ships with Node. It performs three main categories of work:
- Catalog management — reads and writes
.rinkscraper plugin files fromsrc/shade/catalog/(the encrypted source catalog) and copies them intosrc/shade/private/(your active sources) - Configuration — reads and writes your
.envfile through an interactive prompt, and can also patchconfig.shiopa.tsto register new video servers - Project lifecycle — wraps
gitandpnpmto clone the repo, pull updates, and install dependencies
-/_ normalization, so rink-d14, rink_d14, and RINK-D14 all resolve to the same catalog entry.
Typical workflow
Follow these steps to go from nothing to a running nano instance.Clone the nano repository
Run You can also pass a custom folder name:
shiopa clone from any directory. This clones https://github.com/mohameodo/nano.git into a new shiopa-nano folder, copies .env.example to .env, and runs pnpm install automatically.Configure your site
Run the interactive config prompt to set your site name, theme, default video server, and more. All answers are written to Prefer editing files directly? Use
.env.--open to open config.shiopa.ts and .env in your editor:Install stream sources
Add a single source by name, or install every bundled source at once with
--all.Quick reference
shiopa clone
Clone the nano repo to a local directory and bootstrap your project with a single command.
shiopa config
Run an interactive prompt to set site name, theme, video server, auth, and other
.env settings.shiopa add
Install one or all encrypted
.rink stream source plugins into your project.shiopa list
List every source available in the catalog, with friendly display names.
shiopa update
Pull the latest code from
origin/main and reinstall dependencies.shiopa version
Print the CLI version and the version of the project in the current directory.