FrameEver · 帧刻 is a local-only screen recorder and editor by aniBullet (GLOSSARY.md). Everything it captures, edits and exports stays on the user's machine. It ships on Windows first; macOS is built, tested and packaged in CI but has not run on a real Mac, and Linux is not supported (ADR-0008).
Read docs/upstream-sync/HANDOFF.md first when resuming work: one page with the current state, the order of what is next and what cost time before. What each ticket did is in its closing comment, not there. The open issues on AniBullet/FrameEver are the one list of remaining work (docs/agents/issue-tracker.md).
- GPUI app
apps/desktop-gpui(frameever-desktop-gpui, binaryframeever-gpui, installed asFrameEver.exe): recording, the editor, the library and settings, drawn natively with gpui (ADR-0001). - CLI
apps/cli(packageframeever, installed asframeever-cli, run asframeever): recording, export and project commands for scripts, automation rules and AI agents (apps/cli/README.md). - FrameEver Converter
apps/desktop-gpui/converter(frameever-converter-app) on the corecrates/converter(frameever-converter): the separate wizard that brings Cap-aniBullet 2.x or official Cap data into the storage folder. It is the only code that knows older layouts (ADR-0006).
There is no server, no account, no database and no cloud storage (ADR-0002). Settings are a JSON store in the app data folder; projects, screenshots and exports live in the storage folder (Videos\FrameEver by default), each project a .ever folder with a frameever.json (ADR-0006). The only network use is update checks and downloads from our GitHub Releases, caption model downloads, and links the user opens in a browser.
Two Cargo workspaces, both on Rust stable (rust-toolchain.toml):
- Root workspace:
apps/cliandcrates/*.crates/recording,crates/rendering,crates/editor,crates/export,crates/project: the recording and editing pipeline; an edit here rebuilds everything above it.crates/enc-*,crates/media*,crates/video-decode,crates/muxer*: encoding, decoding and muxing (FFmpeg, Media Foundation; AVFoundation for macOS).crates/scap-*,crates/camera*,crates/audio,crates/cursor-*: screen, camera, audio and cursor capture.crates/utils: brand constants (brand.rs) andstorage, the one place that knows the app data folder, the settings file, the storage folder and what counts as a project.crates/converter: FrameEver Converter's core.
- GPUI workspace
apps/desktop-gpui(members: the app,kernels,converter,gpui_tokio). It has its ownCargo.lock, andpnpm fe setupprepares the patched gpui crates it builds against in../gpui-pre-patched.src/: the app.src/i18n/holds the Chinese tables (docs/i18n.md).kernels/holds pixel and sample loops built atopt-level = 3.assets/: fonts, icons, sounds, editor music and backgrounds.assets/icons/sources.jsonpins the Lucide and Tabler releases and lists every icon.packaging/andtauri.conf.json: installer packaging only. The Tauri CLI is used as the NSIS bundler; nothing links the Tauri runtime.
scripts/:fe.mjs(thepnpm feentry point), packaging, privacy scan and benchmarks.docs/:adr/(decisions),agents/(agent guides),upstream-sync/(handoff, roadmap and history),i18n.md,brand/,design/(the design reference page and token source; itsREADME.mdhas the rules).
docs/upstream-sync/0.6.1.md, docs/adr/ and CHANGELOG.md are history and keep old names. Upstream CapSoftware/Cap is a read-only reference: fixes are ported by hand, never merged (ADR-0007).
Everything goes through pnpm fe <command> (scripts/fe.mjs; pnpm fe lists them). Local work, CI and the "FrameEver 开发" pane in Claude Desktop all call it. BUILD.md is the human guide; docs/agents/debugging.md is how to debug and fix things. Don't use other build commands.
| Command | Does |
|---|---|
pnpm fe setup / doctor |
Prepare the machine / say what is missing and how to fix it |
pnpm fe dev [--watch] [--lang zh-CN] |
Build and run the app on the test profile (apps/desktop-gpui/target/testdata/) |
pnpm fe test [filter] / --crate <package> / --all |
GPUI tests / one root-workspace crate's library tests (--ignored, --optimized) / plus converter, encoder, export, utils, CLI and script tests |
pnpm fe check |
Compile the GPUI app, FrameEver Converter and the CLI with tests |
pnpm fe lint / fmt |
Format check, clippy, translation tests / format |
pnpm fe converter [--lang zh-CN] |
Run FrameEver Converter against a fresh fake 2.x install |
pnpm fe package |
Build the installer and FrameEver Converter into dist/; on macOS, the disk image and updater archive |
pnpm fe design |
Generate docs/design/tokens.css and tokens.js from tokens.json |
pnpm fe icons |
Copy every icon in assets/icons/sources.json from its pinned Lucide or Tabler release |
When asked to "build", "package" or "打包" the app, run pnpm fe package.
- No code comments of any kind (
//,/* */,///,//!,#, JSDoc). Code explains itself through names, types and structure; explanations go in docs. - Rust:
rustfmtand the workspace lints below. Modules snake_case, crates kebab-case and namedframeever-*; environment variablesFRAMEEVER_*. - Scripts (
scripts/*.mjs, the Claude Desktop pane): tab indent, Biome (pnpm format), files kebab-case. - UI text: English and Simplified Chinese only. Every
t!string needs a zh-CN entry; proper nouns (FrameEver, HEVC, Whisper) stay English in the Chinese UI (docs/i18n.md). How copy reads (voice, sentence case, errors, confirmations) is indocs/copy-style.md. - UI design: flat only, no gradients or glass. Colours come from
src/theme/tokens.rs, the Rust copy ofdocs/design/tokens.json; new code uses the semantic names (theme.primary,theme.foreground), and solid Klein blue only wheredocs/design/index.htmllists it. - Icons: Lucide at the release pinned in
assets/icons/sources.json, Tabler only for what Lucide lacks. Add one by listing it there, runningpnpm fe iconsand adding it toICONSinsrc/assets.rs. Draw them at 14, 16 or 20 px (12 px for filled glyphs); 24 px and up for empty states. - Use
GLOSSARY.mdterms in code, UI and docs: project, storage folder, export, Studio recording, Instant recording, library. - Platforms: keep
#[cfg(target_os = "macos")]andcfg(unix)code even though it is not kept compiling until the macOS work after Windows 1.0.0; delete Linux code wherever it turns up.
These are denied in the workspace Cargo.toml and fail CI:
unused_must_use: handle everyResult,Optionand#[must_use]value.dbg_macro: usetracing::debug!instead ofdbg!.let_underscore_future: await futures instead oflet _ = async_fn().unchecked_time_subtraction:a.saturating_sub(b)forDurationandInstant.collapsible_if:if a && b {}instead of nestedifs.clone_on_copy: copyCopyvalues instead of.clone().redundant_closure:iter.map(foo)instead ofiter.map(|x| foo(x)).ptr_arg: take&[T]/&str, not&Vec<T>/&String.len_zero:.is_empty()instead of comparing.len()with 0.let_unit_value:foo();instead oflet _ = foo();for unit returns.unnecessary_lazy_evaluations:.unwrap_or(value)for cheap defaults.needless_range_loop: iterate the collection (with.enumerate()when the index matters).manual_clamp:value.clamp(min, max).
- For ticket work, inspect relevant upstream source/history and authoritative primary references before choosing an implementation. Upstream is always the original
CapSoftware/Cap(git fetch upstream, thenupstream/main), never the old Cap-aniBullet fork or its backup folders. Upstream is a read-only reference (ADR-0007), not a constraint: prefer a better solution when the ticket, design and measured results support it. Record the sources and reasoning in the ticket's closing comment. - Agents choose routine test seams and implementation details within the ticket's scope; ask the owner when a product decision or missing requirement changes that scope.
- Work test-first. Rust tests sit beside the code (
#[cfg(test)]) or in a crate'stests/; script tests arescripts/*.test.mjs(node --test). - Checks come in two layers. After each edit:
pnpm fe fmtandpnpm fe test <filter>for the code you touched (--crate <package>for a root-workspace crate); nothing wider. Once per change that lands onmain, after code review and its fixes:pnpm fe test --allandpnpm fe lint. When several tickets are built in parallel, that pass runs once on the integration branch, not per ticket. Don't edit source while it runs. - Prove a fix by reproducing it first and checking it with a test or a measured result. Anything visible is checked by the owner in the running app: never take screenshots of the owner's screen.
- Conventional prefixes (
feat:,fix:,improve:,refactor:,chore:,docs:); messages in Chinese, naming the issue ((#12)). - One ticket at a time, in the main checkout. Keep scope tight and update docs when behaviour changes. Close a ticket with a comment that names its commits and says what was ported or not, what was seen failing, what was measured and what was not checked. Edit
HANDOFF.mdonly when the state or the order of the work changes, and keep it to one page. git pushrunspnpm fe privacythrough the.githookspre-push hook; never bypass it.ghtargetsAniBullet/FrameEver. Never push, open PRs, comment or file issues onCapSoftware/Cap.