TLDR: The quickest way to contribute to the Cap desktop app, without any external dependencies required, is the How do I run the desktop app locally without needing to use auth?
section of this guide.
Cap is an open source and privacy focused alternative to Loom. It's a video messaging tool that allows you to record, edit and share videos in seconds.
The development of Cap is still in its early stages, so please bare with us as we build out this guide.
This guide is for anyone who wants to contribute to Cap. It's a work in progress, and will be updated regularly.
There are many ways to contribute to Cap. You can:
- Report a bug
- Suggest a feature (via Discord)
- Submit a PR
- Node Version 20+
- Cargo 1.77.0+ (previous versions may work)
- pnpm 8.10.5+
- Docker (OrbStack recommended)
This is a very top level guide right now, but if you want to develop for both the web app and desktop app, you will need to make sure the below steps are followed. Alternatively, if you are only looking to run the desktop app locally, you can follow the How do I run the desktop app locally without needing to use auth?
steps.
- Clone the repository
- Install dependencies with
pnpm install
- Clone .env.example and rename it to .env
- At the root of the directory, run the app with
pnpm dev
. This will create a local database simulator, run the necessary DB migrations, and start both the web app and desktop app concurrently. - Make sure both the the desktop app, and web app can be built without any errors. For the desktop app, use
pnpm tauri:build
. For the web app, usepnpm build
- Submit a PR with your changes
You can run cap in "local mode", which means that no auth is required for the desktop app, and no video segments are uploaded. Similar to the above steps, this is how you can run the Cap desktop app in local mode with the least amount of .env vars.
- Clone the repository
- Install dependencies with
pnpm install
- Clone .env.example and rename it to .env
- Make sure you have
NEXT_PUBLIC_ENVIRONMENT=development
,NEXT_PUBLIC_URL=http://localhost:3000
andNEXT_PUBLIC_LOCAL_MODE=true
. These should be the only .env vars that you require to get the desktop app up and running. - At the root of the directory, run the app with
pnpm dev
The video segments are stored in your app data directory, under the folder so.cap.desktop
. You should see a directory called chunks
, which will contain both video
and audio
directories. You can find the relevant segments in either of those.
Required dlls: avutil
, avformat
, avcodec
, avdevice
.
Put the full version of ffmpeg for the target arch into target/binaries
.