Skip to content

Contributing ​

Bug reports, fixes, docs, and ideas are welcome. Start with CONTRIBUTING.md for project setup and contribution rules.

Build the documentation ​

The site takes inspiration from Codefair's documentation: separate user and developer navigation, local search, and screenshots beside the steps they explain. The theme uses stream-clips branding.

The docs use VitePress, powered by Vite, in the separate stream-clip-docs repository. Pages live in docs/; the Nuxt review app lives in the stream-clips repository. Use the latest Node LTS (currently 26; Node 24 is also supported) and pnpm 12.23.0.

From the stream-clip-docs repository root:

sh
pnpm install --frozen-lockfile
pnpm build

To preview changes yourself, run pnpm dev and open the address it prints. The server picks its default port; you can override it with the CLI when needed. For a production preview, run pnpm preview.

The build checks internal links and produces static files in docs/.vitepress/dist/. It needs no API, GPU, secrets, or database. Search is built locally, with no external search service.

Stable toolchain ​

Direct packages are pinned to stable releases: VitePress 1.6.4, Vue 3.5.46, Mermaid 12.4.0, and pnpm 12.23.0. The lockfile fixes their transitive versions. VitePress 1 uses its compatible Vite 5 dependency; VitePress 2 is still an alpha and is deliberately excluded.

Mermaid is loaded directly by a small theme component. The current vitepress-plugin-mermaid peer range supports Mermaid 10 or 11, so this site does not use that plugin with Mermaid 12.

Check the VitePress releases and package registry when updating. Dependabot checks the documentation dependencies monthly.

Hosting ​

Serve the generated directory from any static host. For a subpath, set DOCS_BASE before building. For example, GitHub project Pages uses /stream-clip-docs/; hosting at a domain root uses the default /.

Git Bash or a POSIX shell:

sh
DOCS_BASE=/stream-clip-docs/ pnpm build

PowerShell:

powershell
$env:DOCS_BASE = '/stream-clip-docs/'
pnpm build

The docs workflow checks builds on pull requests and pushes. It does not publish the site. Choose hosting and enable publication after the UI and screenshots have been reviewed.

Editing and screenshots ​

Keep the README short and put detailed steps on the relevant guide or reference page. Match documented behavior to the app and config/clips.example.toml.

UI review comes before screenshots. Follow the maintainer review checklist; add only approved images to docs/public/screenshots/, with alt text and fictional account data. The checklist is excluded from the published site.

Tests ​

  • python -m unittest discover -s tests (or single modules such as tests.test_instagram): detector, eligibility, admission, gaps, captions, caption styles, the speaker decision rules, chat resume, queue fairness, the post desk (caption clean-up, hashtags, score, auto-pick, slots, review-site actions), Instagram publishing against a fake Graph API (request shapes, failures, restart recovery, scheduling, the token never in errors), and the owner controls (favorite, swap, skip and never through the monitor's admission step, ratings and tags, taste weights and ranking, clean-up policy and file deletion, Done, remembered filters). Tests that need the runtime packages skip without them. tests.test_facebook covers Facebook Reels and the shared posting rules (Done before the slot, keeping the video), tests.test_metastats the Meta numbers (schedule, link matching, failures), tests.test_analytics results, watch time and clip traits, and tests.test_scout the streamer suggestions. tests.test_api covers the review site's API and the /classic pages.
  • pnpm --dir web test and pnpm --dir web typecheck: the app's text and filter helpers, and its types.
  • tests/synthetic_pipeline.py: end-to-end timing check with a fake live HLS source (ads, missing segments, a discontinuity) through the real recorder and worker. Run it on the service host; it needs ffmpeg and the GPU.

Citing ​

If you use stream-clips in research or a project, please cite it with the metadata in CITATION.cff (GitHub's Cite this repository button reads it). codemeta.json holds the same metadata for software catalogs.

License ​

MIT. The Montserrat fonts in assets/fonts are under the SIL Open Font License 1.1 (OFL-Montserrat.txt).