Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

New readme

Richie McIlroya46635599bcf
diff --git a/README.md b/README.md
index 353eb45f9..f8943348f 100644
--- a/README.md
+++ b/README.md
@@ -1,97 +1,202 @@
<p align="center">
- <p align="center">
- <img width="150" height="150" src="https://github.com/CapSoftware/Cap/blob/main/apps/desktop/src-tauri/icons/Square310x310Logo.png" alt="Logo">
- </p>
- <h1 align="center"><b>Cap</b></h1>
- <p align="center">
- The open source Loom alternative.
- <br />
- <a href="https://cap.so"><strong>Cap.so »</strong></a>
- <br />
- <br />
- <b>Downloads for </b>
- <a href="https://cap.so/download">macOS & Windows</a>
- <br />
- </p>
+ <img width="150" height="150" src="https://github.com/CapSoftware/Cap/blob/main/apps/desktop/src-tauri/icons/Square310x310Logo.png" alt="Cap logo">
</p>
-<br/>
-[![Open Bounties](https://img.shields.io/endpoint?url=https%3A%2F%2Fconsole.algora.io%2Fapi%2Fshields%2FCapSoftware%2Fbounties%3Fstatus%3Dopen)](https://console.algora.io/org/CapSoftware/bounties?status=open)
+<h1 align="center">Cap</h1>
-Cap is the open source alternative to Loom. It's a video messaging tool that allows you to record, edit and share videos in seconds.
+<p align="center">
+ Beautiful, shareable screen recordings. Open source, fast, and built for teams that want to own their data.
+</p>
+
+<p align="center">
+ <a href="https://cap.so">Website</a>
+ |
+ <a href="https://cap.so/download">Download</a>
+ |
+ <a href="https://cap.so/docs">Docs</a>
+ |
+ <a href="https://cap.so/pricing">Pricing</a>
+ |
+ <a href="https://cap.link/discord">Discord</a>
+</p>
+
+<p align="center">
+ <a href="https://console.algora.io/org/CapSoftware/bounties?status=open">
+ <img src="https://img.shields.io/endpoint?url=https%3A%2F%2Fconsole.algora.io%2Fapi%2Fshields%2FCapSoftware%2Fbounties%3Fstatus%3Dopen" alt="Open bounties">
+ </a>
+</p>
+
+<img src="https://raw.githubusercontent.com/CapSoftware/Cap/refs/heads/main/apps/web/public/landing-cover.png" alt="Cap app preview">
+
+Cap is the open source alternative to Loom. It gives you fast screen recording, polished local editing, instant share links, comments, transcripts, analytics, team workspaces, custom domains, custom S3 storage, and full self-hosting when you need complete control.
+
+Use Cap for product demos, bug reports, onboarding, tutorials, design reviews, engineering walkthroughs, async standups, client updates, and any moment where showing the work is faster than scheduling another call.
+
+## Why Cap
+
+- **Record, edit, share.** Capture your screen, camera, and microphone, then share a link or export a finished video.
+- **Instant Mode for speed.** Upload while recording and get a shareable link the moment you stop.
+- **Studio Mode for polish.** Record locally, edit with backgrounds, zooms, trimming, captions, and export controls.
+- **Desktop apps for your team.** Cap runs on macOS and Windows, with a web dashboard for viewing, sharing, and managing recordings.
+- **Own your storage.** Use Cap Cloud, connect your own S3-compatible bucket, keep recordings local, or self-host the full platform.
+- **Privacy by default.** Share publicly or privately, add passwords, use your own domain, or keep sensitive recordings off hosted infrastructure.
+- **Async collaboration.** Comments, reactions, transcripts, viewer analytics, and team workspaces keep feedback attached to the video.
+- **Cap AI.** Generate titles, summaries, clickable chapters, captions, and transcripts automatically.
+- **Move from Loom.** Import existing Loom videos into Cap and keep your library in one place.
+
+## Recording Modes
+
+| Mode | Best for | How it works |
+| --- | --- | --- |
+| Instant Mode | Fast feedback, bug reports, async updates | Cap uploads while you record, then gives you a share link as soon as recording stops. |
+| Studio Mode | Product demos, tutorials, launches, client work | Cap records locally, opens the editor, and lets you export or share a polished video. |
+
+## Data Ownership
+
+Cap is designed for people and teams who do not want their recording workflow locked inside a black box.
+
+- Use Cap Cloud for the fastest hosted experience.
+- Connect AWS S3, Cloudflare R2, Backblaze B2, MinIO, Wasabi, or another S3-compatible provider.
+- Serve share pages from your own domain.
+- Self-host Cap Web, the API, database, media server, and object storage with Docker Compose.
+- Point Cap Desktop at your self-hosted instance from `Settings > Cap Server URL`.
+
+## Get Started
-<img src="https://raw.githubusercontent.com/CapSoftware/Cap/refs/heads/main/apps/web/public/landing-cover.png"/>
+For most users, the fastest path is:
-# Self Hosting
+1. Download Cap for macOS or Windows from [cap.so/download](https://cap.so/download).
+2. Sign in or create an account.
+3. Choose Instant Mode or Studio Mode.
+4. Record your first Cap.
+5. Share the link, export the file, or keep it local.
-### Quick Start (One Command)
+The full product docs live at [cap.so/docs](https://cap.so/docs).
+
+## Self-Hosting
+
+The fastest way to self-host Cap Web is Docker Compose:
```bash
-git clone https://github.com/CapSoftware/Cap.git && cd Cap && docker compose up -d
+git clone https://github.com/CapSoftware/Cap.git
+cd Cap
+docker compose up -d
```
-Cap will be running at `http://localhost:3000`. That's it!
+Cap will be available at `http://localhost:3000`.
-> **Note:** Login links appear in the logs (`docker compose logs cap-web`) since email isn't configured by default.
+Login links appear in the service logs when email is not configured:
-### Other Deployment Options
+```bash
+docker compose logs cap-web
+```
-| Method | Best For |
-|--------|----------|
-| **Docker Compose** | VPS, home servers, any Docker host |
-| **[Railway](https://railway.com/new/template/PwpGcf)** | One-click managed hosting |
-| **Coolify** | Self-hosted PaaS (use `docker-compose.coolify.yml`) |
+### Deployment Options
-[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/new/template/PwpGcf)
+| Method | Best for |
+| --- | --- |
+| Docker Compose | VPS, home servers, and any Docker-capable host |
+| [Railway](https://railway.com/new/template/PwpGcf) | One-click managed hosting |
+| Coolify | Self-hosted PaaS deployments with `docker-compose.coolify.yml` |
-### Production Configuration
+[![Deploy on Railway](https://railway.com/button.svg)](https://railway.com/new/template/PwpGcf)
-For production, create a `.env` file:
+For production, configure public URLs and replace the default secrets before exposing the deployment to the internet:
```bash
CAP_URL=https://cap.yourdomain.com
S3_PUBLIC_URL=https://s3.yourdomain.com
```
-See our [self-hosting docs](https://cap.so/docs/self-hosting) for full configuration options including email setup, AI features, and SSL.
+See the [self-hosting guide](https://cap.so/docs/self-hosting) for email setup, AI providers, SSL, storage, production hardening, and troubleshooting.
-Cap Desktop can connect to your self-hosted instance via Settings → Cap Server URL.
+## Local Development
-# Monorepo App Architecture
+Cap is a Turborepo monorepo with Rust, TypeScript, Tauri, SolidStart, Next.js, Drizzle, MySQL, Tailwind CSS, and shared media crates.
-We use a combination of Rust, React (Next.js), TypeScript, Tauri, Drizzle (ORM), MySQL, TailwindCSS throughout this Turborepo powered monorepo.
+Requirements:
-> A note about database: The codebase is currently designed to work with MySQL only. MariaDB or other compatible databases might partially work but are not officially supported.
+- Node.js 20 or newer
+- pnpm 10.5.2
+- Rust 1.88 or newer
+- Docker for MySQL, MinIO, and local services
-### Apps:
+Install and set up the repo:
-- `desktop`: A [Tauri](https://tauri.app) (Rust) app, using [SolidStart](https://start.solidjs.com) on the frontend.
-- `web`: A [Next.js](https://nextjs.org) web app.
+```bash
+pnpm install
+pnpm env-setup
+pnpm cap-setup
+```
-### Packages:
+Common commands:
-- `ui`: A [React](https://reactjs.org) Shared component library.
-- `utils`: A [React](https://reactjs.org) Shared utility library.
-- `tsconfig`: Shared `tsconfig` configurations used throughout the monorepo.
-- `database`: A [React](https://reactjs.org) and [Drizzle ORM](https://orm.drizzle.team/) Shared database library.
-- `config`: `eslint` configurations (includes `eslint-config-next`, `eslint-config-prettier` other configs used throughout the monorepo).
+| Command | Purpose |
+| --- | --- |
+| `pnpm dev` | Start the full local development stack |
+| `pnpm dev:web` | Start the web app without the desktop app |
+| `pnpm dev:desktop` | Start the desktop app |
+| `pnpm build` | Build the workspace |
+| `pnpm tauri:build` | Build the desktop release |
+| `pnpm lint` | Run Biome linting |
+| `pnpm format` | Format with Biome |
+| `pnpm typecheck` | Run TypeScript project references |
+| `cargo test -p <crate>` | Run Rust tests for a crate |
-### License:
-Portions of this software are licensed as follows:
+Database commands:
-- All code residing in the `cap-camera*` and `scap-*` families of crates is licensed under the MIT License (see [licenses/LICENSE-MIT](https://github.com/CapSoftware/Cap/blob/main/licenses/LICENSE-MIT)).
-- All third party components are licensed under the original license provided by the owner of the applicable component
-- All other content not mentioned above is available under the AGPLv3 license as defined in [LICENSE](https://github.com/CapSoftware/Cap/blob/main/LICENSE)
-
-# Contributing
+| Command | Purpose |
+| --- | --- |
+| `pnpm db:generate` | Generate database artifacts |
+| `pnpm db:push` | Push schema changes |
+| `pnpm db:studio` | Open Drizzle Studio |
-See [CONTRIBUTING.md](CONTRIBUTING.md) for more information. This guide is a work in progress, and is updated regularly as the app matures.
+## Repository Map
-## Analytics (Tinybird)
+| Path | What lives there |
+| --- | --- |
+| `apps/desktop` | Tauri v2 desktop app with SolidStart UI and Rust backend |
+| `apps/web` | Next.js web app for marketing, docs, dashboard, sharing, API routes, and auth |
+| `apps/cli` | Rust CLI |
+| `apps/media-server` | Media processing service used by the web app |
+| `apps/discord-bot` | Discord integration |
+| `packages/database` | Drizzle schema and database access |
+| `packages/ui` | Shared React UI |
+| `packages/ui-solid` | Shared Solid UI |
+| `packages/web-backend` | Backend service layer |
+| `packages/web-domain` | Web domain models and types |
+| `packages/env` | Environment validation |
+| `packages/sdk-embed` | Embed SDK |
+| `packages/sdk-recorder` | Recorder SDK |
+| `crates/*` | Recording, capture, camera, audio, encoding, rendering, muxing, export, and test crates |
+| `scripts/*` | Setup, analytics, build, and maintenance tooling |
+| `infra/*` | Infrastructure configuration |
-Cap uses [Tinybird](https://www.tinybird.co) to ingest viewer telemetry for dashboards. The Tinybird admin token (`TINYBIRD_ADMIN_TOKEN` or `TINYBIRD_TOKEN`) must be available in your environment. Once the token is present you can:
+The web API uses Effect and `@effect/platform` HTTP APIs. Desktop capture and export paths are backed by Rust crates for fast recording, rendering, and platform-specific media access.
-- Provision the required data sources and materialized views via `pnpm analytics:setup`. This command installs the Tinybird CLI (if needed), runs `tb login` when a `.tinyb` credential file is missing, copies that credential into `scripts/analytics/tinybird`, and finally executes `tb deploy --allow-destructive-operations --wait` from that directory. **It synchronizes the Tinybird workspace to the resources defined in `scripts/analytics/tinybird`, removing any other datasources/pipes in that workspace.**
-- Validate that the schema and materialized views match what the app expects via `pnpm analytics:check`.
+## Analytics
+
+Cap uses [Tinybird](https://www.tinybird.co) for viewer telemetry dashboards. Set `TINYBIRD_ADMIN_TOKEN` or `TINYBIRD_TOKEN` before running analytics commands.
+
+| Command | Purpose |
+| --- | --- |
+| `pnpm analytics:setup` | Deploy Tinybird datasources and pipes from `scripts/analytics/tinybird` |
+| `pnpm analytics:check` | Validate that the Tinybird workspace matches the app expectations |
+
+`analytics:setup` can remove Tinybird resources outside the checked-in analytics configuration. Use it only against the workspace you intend to manage from this repo.
+
+## Contributing
+
+Cap is built in public. Issues, pull requests, design feedback, bug reports, docs fixes, and bounties are welcome.
+
+- Read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request.
+- Join the community on [Discord](https://cap.link/discord).
+- Check open bounties on [Algora](https://console.algora.io/org/CapSoftware/bounties?status=open).
+
+## License
+
+Portions of this software are licensed as follows:
-Both commands target the workspace pointed to by `TINYBIRD_HOST` (defaults to `https://api.tinybird.co`). Make sure you are comfortable with the destructive nature of the deploy step before running `analytics:setup`.
+- Code in the `cap-camera*` and `scap-*` crate families is licensed under the MIT License. See [licenses/LICENSE-MIT](https://github.com/CapSoftware/Cap/blob/main/licenses/LICENSE-MIT).
+- Third-party components are licensed under the original license provided by their owner.
+- All other content not mentioned above is available under the AGPLv3 license as defined in [LICENSE](https://github.com/CapSoftware/Cap/blob/main/LICENSE).