Skip to content

armgit / clipy

Public Imported from GitHub
0

The AI-native screen recorder. Record your screen and talk; the people you share it with and your AI agents both get it.

11.0 KB
Raw Blame

Contributing to Clipy

Thanks for helping. This repository holds the packages that turn a screen recording into an AREC file on your own machine, and the Clipy desktop app built from them.

Ways to help

  • Pick an issue labelled good first issue or help wanted. Comment on it first so two people do not build the same thing.
  • Report a bug in the code here with the "Bug in the code here" template. A short screen recording of the problem helps a lot.
  • Try the Chrome extension, the iPhone or Android app or the web app, and report anything that does not work as you expected with the "Bug in a Clipy app" template. Record it with Clipy and paste the share link; the Clipy team reproduces it and replies in the issue.
  • Suggest a feature for any Clipy app or for the code here with the feature template, starting from the problem you want solved.
  • Improve the docs. Small fixes are welcome without an issue.
  • Share what your agent watched or recorded in Discussions (Show and tell). Real uses tell us what to build next.

Security problems go through SECURITY.md, not public issues.

Your first contribution in about 15 minutes

  1. Fork the repository and clone your fork.
  2. pnpm install --frozen-lockfile && pnpm test (Node.js 20.19 or newer). The package suites run on macOS, Windows and Linux.
  3. Pick an issue labelled good first issue and comment "I'd like to take this". If nobody else has claimed it, it is yours; a maintainer confirms in the thread.
  4. Make the change on a branch, run the tests again, and open a pull request that says what changed and how you tested it.

No issue that fits? Docs fixes, clearer error messages, more tests and new examples in plugins/ are always welcome without one.

What to expect from us

  • A first response on every issue and pull request within a working day.
  • A claimed issue stays yours for seven days. If you need longer, say so in the thread; if it goes quiet, we ask before opening it up again.
  • Review comments say what would make the change mergeable, not just what is wrong.
  • Every merged pull request is credited by name in the release notes, and shows on the contributors graph in the README.
  • Questions are welcome in the issue thread or in Discussions; answers there help the next person too.

Layout

Path What it is Tooling
packages/moments Picks the moments worth a screenshot TypeScript, Vitest
packages/config Provider and transcription settings TypeScript, Vitest
packages/capture Screen capture with ffmpeg TypeScript, Vitest
packages/transcribe Speech to timestamped segments TypeScript, Vitest
plugins/ Claude Code plugins and skills: /watch, /record and the Record with Clipy button Markdown skills, TypeScript
desktop/ The Clipy desktop app Tauri 2 (Rust) and React

The packages form one pnpm workspace at the root. desktop/ is its own pnpm project with its own lockfile.

Packages

You need Node.js 20.19 or newer and pnpm (the version in package.json, packageManager; corepack enable picks it up).

pnpm install --frozen-lockfile
pnpm run typecheck
pnpm test

If Windows PowerShell blocks pnpm because it is running the pnpm.ps1 shim, use pnpm.cmd for the same commands.

The capture package's real-recording tests run only on Linux with Xvfb and an ffmpeg that has x11grab and libx264 (sudo apt-get install ffmpeg xvfb xauth libxtst6); elsewhere they are skipped and the rest of the suite still runs. The transcription tests that generate or process media also need ffmpeg. They skip when it is unavailable; pure and stub-server tests still run. Set CLIPY_FFMPEG to the full path of a custom ffmpeg executable to use it for both test fixtures and transcription. The other package tests run anywhere.

To check that the transcription audio tests can see FFmpeg, run this from the repository root:

pnpm --filter @clipy/transcribe test test/audio.test.ts

If Vitest reports skipped tests in this file, check that ffmpeg -version works in the same shell. If FFmpeg is installed outside PATH, rerun with its full path (macOS or Linux):

CLIPY_FFMPEG="/absolute/path/to/ffmpeg" pnpm --filter @clipy/transcribe test test/audio.test.ts

In PowerShell, set $env:CLIPY_FFMPEG = 'C:\path\to\ffmpeg.exe' before running the test command. The unreadable-file test still skips on Windows and when running as root, since it relies on Unix file permissions.

For a ready-to-use Linux development environment, open this repository in GitHub Codespaces or VS Code with the Dev Containers extension and select Reopen in Container. The development container uses Node.js 24, enables Corepack to select the pnpm version specified in package.json, and installs the Linux dependencies required for capture tests, including ffmpeg, Xvfb, xauth, libxtst6 and Python 3. Dependencies are installed automatically when the container is created.

Troubleshooting

  • pnpm has the wrong version. The root package.json pins [email protected], so pnpm --version should print 10.18.0. If it prints another version, run corepack enable, open a new terminal, then check with corepack pnpm --version; it should print 10.18.0.
  • Node.js is too old. With Node.js v18.20.8, pnpm prints: WARN Unsupported engine: wanted: {"node":">=20.19"} (current: {"node":"v18.20.8","pnpm":"10.18.0"}). Install Node.js 20.19 or newer, open a new terminal, confirm with node --version, then retry the install.
  • ffmpeg is missing. Transcription tests that need media processing are skipped, and using transcription on a media file reports: ffmpeg was not found. Install ffmpeg (https://ffmpeg.org/download.html) and make sure it is on your PATH, or set CLIPY_FFMPEG to its full path. Install ffmpeg and confirm ffmpeg -version works, or set CLIPY_FFMPEG to the full path of ffmpeg (on Windows, ffmpeg.exe).
  • Linux capture tests are skipped. When a prerequisite is missing, Vitest marks Linux capture on a virtual display as skipped; the suite does not print a separate Xvfb error. It runs only on Linux with Xvfb and an ffmpeg build that includes x11grab and libx264. Install the prerequisites with sudo apt-get install ffmpeg xvfb xauth libxtst6, then rerun pnpm test.

packages/moments/src/generated/ is generated from the code the hosted Clipy uses, so both pick moments the same way. Propose changes to it in a pull request as usual; a maintainer applies the change at its source so the next sync keeps it.

Desktop app

You need Rust 1.88 or newer, Node.js 20.19 or newer and pnpm. On macOS, Xcode or the Command Line Tools (the desktop scripts automatically use desktop/scripts/xcodebuild-cidre-shims.sh when full Xcode is not installed). On Windows, use Visual Studio Build Tools 2022 with the Desktop development with C++ workload, LLVM 18.1.8 and the pinned shared FFmpeg 7 build with FFMPEG_DIR pointing at it. The exact PowerShell setup and troubleshooting notes are in desktop/README.md.

cd desktop
pnpm install --frozen-lockfile
pnpm tauri:icon
pnpm setup:native-deps            # macOS: downloads the FFmpeg framework
pnpm exec tsc --noEmit
pnpm test
node --test scripts/*.test.mjs    # any OS; macOS-only tests skip elsewhere
pnpm tauri:dev                    # run the desktop app
pnpm exec node scripts/tauri-local.mjs build --debug --bundles app  # macOS: Local mode needs a .app bundle (pnpm tauri:dev is unbundled)
pnpm tauri:build                  # build the app bundle or installer

The app's Rust tests need each OS's native setup: bash scripts/test-rust.sh --locked --lib on macOS only, and on Windows the staging steps and cargo test --locked --lib --bins in PowerShell. On Linux, CI compiles the app (cargo check --locked) and does not run its tests. The three crates in desktop/src-tauri/crates/ run on their own, as CI runs them:

(cd src-tauri/crates/clipy-local-edition && cargo test --locked)
(cd src-tauri/crates/clipy-local-moments && cargo test --locked)
(cd src-tauri/crates/clipy-local-stt && cargo test --locked --no-default-features)

clipy-local-stt's default features build the sherpa-onnx engine, which needs its staged archive. desktop/README.md, "Test it" lists every step per OS.

Plugins

Node.js 20.19 or newer and pnpm, same as the packages above, plus a copy of Claude Code 2.1.328 or newer to try a plugin locally.

Load a plugin straight from your clone, with no publishing step:

claude --plugin-dir plugins/watch      # or plugins/record, plugins/clipy-record

Run the plugin checks: the shared test that every npx @clipy/cli pin in plugins/ is the same exact version (scripts/plugin-pins.test.mjs), plus any tests a plugin ships of its own, such as clipy-record's hooks/register.test.tsx:

pnpm test:plugins
claude plugin test plugins/clipy-record

When a new @clipy/cli is released, bump every npx @clipy/cli@<version> pin across plugins/ together, then rerun pnpm test:plugins to confirm they all still match — a skill pinned to an older CLI than the Record button would behave differently in the same session.

Bump the version field in a plugin's .claude-plugin/plugin.json whenever that pull request changes the plugin's behaviour, its documented usage, or its CLI pin. A wording-only README fix does not need a version bump.

Pull requests

  • Keep each pull request to one change. Say what it does and how you tested it. Screenshots or a short recording help for anything visible.
  • CI runs the package tests on Linux, the desktop tests on macOS, and a compile check on Windows. Run the relevant ones locally first.
  • Keep the privacy promise: with no model provider and on-device transcription, nothing leaves the machine. A change that sends data anywhere new needs a line in the "Where your data goes" table of the README.
  • Do not add telemetry, analytics or calls to any Clipy service.
  • New dependencies need a reason in the pull request. Prefer small, widely used crates and packages with a licence compatible with Apache-2.0.

Licence and sign-off

This repository is licensed under Apache-2.0. By opening a pull request you agree that your contribution is licensed under the same terms (section 5 of the licence). There is no contributor licence agreement and no sign-off line to add.

Hiring

We also use real issues from this repository in our hiring process. Candidates work on distinct issues in their own forks, and shortlisted candidates open pull requests here like anyone else, under the hiring-cohort label. Everyone's contribution is reviewed the same way.

Conduct

Everyone taking part follows the Code of Conduct.