From 300e50589b1fe358dd993c94d97fb18251d2f835 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 13:27:03 -0500 Subject: [PATCH 01/39] docs: code of conduct, contributing, security policy and code owners, in the family's wording --- .github/CODEOWNERS | 1 + CODE_OF_CONDUCT.md | 36 ++++++++++++++ CONTRIBUTING.md | 120 +++++++++++++++++++++++++++++++++++++++++++++ SECURITY.md | 62 +++++++++++++++++++++++ 4 files changed, 219 insertions(+) create mode 100644 .github/CODEOWNERS create mode 100644 CODE_OF_CONDUCT.md create mode 100644 CONTRIBUTING.md create mode 100644 SECURITY.md diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..6fe19b5 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @nodemode-ai @gbarnai diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..dc03425 --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,36 @@ +# Code of conduct + +FormREC is built in the open by people who want a recorder that belongs to its +users. This page says how we treat each other while doing it. It applies to the +repository, its issues, pull requests, discussions and wiki, and to anyone speaking +for the project elsewhere. + +## What we expect + +- Be respectful and patient, with newcomers above all. Everyone started somewhere. +- Argue about code, designs and ideas, never about people. +- Assume good intent, and ask before concluding otherwise. +- Accept correction gracefully, and give it kindly and specifically. +- Credit the work of others. + +## What is not acceptable + +- Harassment, insults, threats, or personal or political attacks. +- Discriminatory language or conduct, on any grounds. +- Sexualised language or imagery. +- Publishing anyone's private information without their explicit permission. +- Deliberately derailing discussions, or sustained disruption of any kind. + +## Reporting + +Report anything that breaks this code by opening an +[issue](https://github.com/nodemode-dev/formREC/issues), or by reaching the +maintainers on GitHub: the [nodemode-dev](https://github.com/nodemode-dev) +organisation, [@nodemode-ai](https://github.com/nodemode-ai) and +[@gbarnai](https://github.com/gbarnai). + +## What happens next + +The maintainers review every report and decide what is fair: a private word, a +public note, removal of content, or a temporary or permanent ban from the project's +spaces. People who report in good faith will not face retaliation. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..8bbfdc2 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,120 @@ +# Contributing to FormREC + +Thank you for helping. FormREC aims to be a free recorder for walkthroughs, podcasts, +corporate messages and live feeds that runs on your own computer, by a person or by an +agent, and it gets there through real use and real contributions. + +## Where to start + +- **Use it and report what goes wrong.** A clear bug report, with steps, the version + and your platform, is one of the most useful things you can give. +- **Look at the open issues.** Comment on one before starting larger work, so nobody + builds the same thing twice. + +## Setting up + +Clone the repository and run `./formrec_oc_install`, then `./formrec` (or +`formrec_oc_install.bat` and `formrec.bat` on Windows). The first installs the +packages and the recorder's browser and compiles the server and the window; the second +starts the server on 127.0.0.1:8770 with the window recompiling as you edit. `./formrec +help` lists every command, and the README's "Run it from source" section has the +details and the requirements (Node.js 22 or newer; FFmpeg is optional). + +The code lives in: + +| Folder | What is there | +| --- | --- | +| `src` | the server (Node 22, TypeScript): the library, the studio, the guests, the headless recorder, the MCP server, the relay and one folder per feature | +| `web` | the window (TypeScript, no framework): the views, the studio, the player and Preferences | +| `shared` | pure modules that both the server and the window compile | +| `src-tauri` | the desktop shell (Rust, Tauri 2), which runs the server as a Node sidecar (`formrec-node`) | +| `extension` | the browser extension that records a tab | +| `relay` | the files for deploying the sharing relay | +| `apps` | the parts of the integrations that run inside other products (manifests, scripts and add-ins) | +| `setup`, `tools`, `scripts` | build, packaging, notices, agent and demo scripts | +| `tests` | the vitest suite | +| `docs`, `demos`, `examples` | the manual and parity tables, the two bundled demos and example walkthroughs | + +## Before you open a pull request + +Run the same checks CI runs: + +```sh +npm ci +npm run check +npm run build +npx vitest run +npm run agents:check +npm run notices:check +(cd src-tauri && cargo fmt --check && cargo clippy --locked --all-targets && cargo test --locked) +``` + +`npm test` builds and then runs the suite; it includes real headless recordings and +the studio in Chromium, so it needs `npx playwright install chromium` and takes a +while (CI splits it across four runners). FFmpeg and poppler are used by the media +tests, and the tests that need a tool this computer lacks skip with a message that says +which. The Rust checks need Rust and Tauri 2's system packages. `npm run coverage` +adds coverage, which stays above 80%. + +- Keep each pull request to one change, with tests for what it adds or fixes. +- Write commit subjects the way the history does: `feat: ...`, `fix: ...`, `docs: ...`, + `test: ...`, `ci: ...`, `chore: ...`, with a scope in brackets where it helps + (`fix(live): ...`). Leave the version alone; a maintainer bumps it when releasing. +- Every change to an existing file is made by hand, one region at a time, with no + scripted rewrites. The reasoning for a change goes into the `HASHOUT_LOG.md` beside + the code you changed (`src/` and `web/` each have one). +- The window builds its DOM with `h()` and never parses text as HTML. Nothing may flash, + flicker or shift the layout: the shell exists before the first paint, views fill + reserved space and images carry their size. Icons are inline `currentColor` SVG, with + no icon library, and `z-index` comes only from the tokens file. +- No emoji anywhere, and no em dash in Markdown. +- After changing the MCP tools or adding or renaming commands, run + `npm run agents:sync`; `npm run agents:check` fails while the skills drift. +- Every new dependency, binary, model, font or data file gets a row in `NOTICE.md` + before it is used, and `npm run notices` refreshes `THIRD-PARTY-NOTICES.txt`. +- The server listens on 127.0.0.1 only, and recordings stay private to their owner. + See `CLAUDE.md` for the rules a change must keep. + +## Maintainers + +FormREC is maintained by: + +- the [nodemode-dev](https://github.com/nodemode-dev) organisation on GitHub +- [@nodemode-ai](https://github.com/nodemode-ai) +- [@gbarnai](https://github.com/gbarnai) + +Reach them through issues and pull requests. + +## How changes land + +Only a maintainer pushes to `main`. Everyone else forks the repository and opens a pull request into `main`. A pull request merges when its checks pass on an up-to-date branch and a maintainer has approved it after its last push. + +## Releases + +A release is a version, and only a maintainer makes one: after the version is bumped on +`main`, a maintainer cuts a `compile_vX.Y.Z` branch, and formcompiler +(`nodemode-dev/formcompiler`) builds every platform and publishes them together. No +push from a contributor starts a release. + +## Licensing + +FormREC is licensed under the Apache License, Version 2.0 ([LICENSE](LICENSE), SPDX +`Apache-2.0`). By contributing, you agree that your contribution is licensed under +the same terms. Only add code you have the right to contribute, and name any +third-party code and its licence in the pull request. + +## Patents and other people's IP + +Some features are deliberately not built, or are taken out, because they come too close to someone else's patent, trademark, copyright or design. The maintainers hold that line with counsel; contributors do not decide it, and nobody here redesigns a feature on their own reading of a patent. This is engineering diligence, not legal advice. + +### Rules for every contribution + +- Patents: do not add a feature, or a dependency that provides one, that reproduces a method you know to be patented. If you are unsure, open an issue that describes what the feature does, not which patent it resembles. Patent numbers stay out of code, commits, comments, logs and changelogs. +- Trademarks: other vendors' product and feature names appear only to name a file format or compatibility ("opens files", "for use with"). No command, menu, panel, tool, preset, template, theme or agent tool takes another product's feature name, and no text says "like X" or "the way X does it". Describe what the feature does. The parity tables in `docs/` are the one place that compares features by name, each row with its source. +- Copyright: never copy another product's help, tooltip, dialog or documentation text (link to it instead); never trace or import vendor icons; never bundle vendor templates, themes, presets, brushes, swatches, LUTs, materials, sample files, sound libraries, stock media or fonts. Compatibility layers carry names and signatures only. Test fixtures come from this repository's own scripts. +- Licences: every new dependency, binary, model, font, profile or data file gets a row in `NOTICE.md` before it is used. GPL stays outside the distributed bundle, AGPL nowhere, LGPL dynamically linked and replaceable, MPL files unedited. CC BY credited, CC BY-SA only unmodified, CC NC and ND never. Models with gated or non-commercial terms are optional downloads, never bundled. + +## Conduct + +Everyone taking part follows the [code of conduct](CODE_OF_CONDUCT.md). Security +problems go through [SECURITY.md](SECURITY.md), never a public issue. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..e6c635c --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,62 @@ +# Security policy + +## Supported versions + +Security fixes go into the newest release. Please update before reporting, and +check whether the problem is still there. + +| Version | Supported | +| --- | --- | +| Latest release | Yes | +| Anything older | No | + +## Reporting a vulnerability + +**Do not open a public issue for a security problem.** Use GitHub's private +reporting instead: on the repository's **Security** tab, choose **Report a +vulnerability**. Include what you found, the steps to reproduce it, the version and +platform, and what an attacker could do with it. + +You can expect an acknowledgement within a week. We will keep you informed while it +is fixed and credit you in the release notes, unless you would rather not be named. + +## What counts + +FormREC runs on your own machine, so the things that matter most are the ways +something outside it could get in: + +- **The server** listens on 127.0.0.1 only (port 8770 from the command line, 8772 in + the desktop app) and answers only loopback host names. Anything that makes it + reachable from another machine, lets a web page on another origin drive it, or + reaches an `/api` route without the run's token. +- **Guests on this network**: the guest listener is the one thing on the network + (HTTPS, port 8771, on only while guests are turned on). Anything that makes it serve + more than the guest page and the guest API, lets a guest write another guest's + tracks or a track outside the room's current session, or lets a device that has not + paired with the six-digit code in. +- **Share links, the tunnel and the relay**: opening a recording without its link, + doing more than a link's privacy setting allows (password, people, domain, expiry, + email gate), reaching the library or the API through a public share server (which + answers the share routes only), getting past the relay's enrollment, signed + requests or sign-in, or reading what a relay seals at rest. +- **Agents and the MCP server**: an agent reaching more than it was given. The + `/mcp` endpoint takes a bearer token; a link an agent hands out opens one recording's + player and nothing else, never carries the app's own token, and stops working when the + person rotates player links; the relay's bridge never hands out the app's own token + and offers only the tools the person chose. +- **Code anchors and walkthroughs** are untrusted input from agents and people: + reading a file outside the codebases FormREC was given (through a symlink as well), + or showing a secret-looking file (`.env`, keys, credentials, `.git/`, `.ssh/`, + `.aws/`). The headless recorder opens http and https only. +- **Provider and stream keys**: the keys kept for AI providers, mail, integrations and + single sign-on, and a live stream's key (which is held in memory only and never in a + command line, an environment or a log): anything that leaks them. +- **Recordings and files**: a recording is private (folders 0700, files 0600) and a + saved one is never overwritten by an upload. Anything that reads or overwrites + another recording, or importing a recording, package or archive in a way that writes + outside where it should. +- **Inbound requests from other products** (webhooks, SSO assertions, SCIM, the + integrations): anything that gets a body trusted before it was verified. + +Bugs that need someone to already control your machine, or to run a modified build +of FormREC, are ordinary bugs: please open an issue for those. From 3a384785972078df963a20630b660308ca618085 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 13:29:32 -0500 Subject: [PATCH 02/39] docs: README in the family's shape, with Download, FormREC in prose and the 0.10.0 menu bar, Home, Preferences and dock --- README.md | 136 +++++++++++++++++++++++++++++++++++------------------- 1 file changed, 89 insertions(+), 47 deletions(-) diff --git a/README.md b/README.md index f511df4..6136b08 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,11 @@

- FormRec icon + FormREC icon

-

FormRec

+

FormREC

Record any app, website or desktop, like Loom; walkthroughs, podcasts and messages, by a person or by an agent.
@@ -19,18 +19,19 @@ Node 22+ TypeScript, no framework MCP + macOS, Windows, Linux License: Apache-2.0 Status: early

- Demos · Desktop app · Run it from source · Public links · MCP · Develop + Features · Download · Demos · Run it from source · Agents · Public links · Develop


- FormRec's Home: start a screen, camera or audio recording, the two demos with their posters, and the recent recordings
+ FormREC's Home: start a screen, camera or audio recording, the two demos with their posters, and the recent recordings
Home: start a recording, open a demo, or pick up a recent recording. The sidebar and the Settings menu are on every view.

@@ -41,7 +42,7 @@

A track per source

Screen, cameras and microphones each record to their own track, uploaded in two-second chunks as they go.

Guests on this network

A phone or laptop on the same Wi-Fi joins with a six-digit code and records itself at full quality.

Linked to the code

Every chapter can carry the route it shows and the code behind it, checked for staleness. -

Made by an agent

Over MCP an agent writes a walkthrough and FormRec records it headless, with no person. +

Made by an agent

Over MCP an agent writes a walkthrough and FormREC records it headless, with no person. @@ -52,7 +53,7 @@
- The player on the self tour: the video with captions low on the picture, FormRec's control bar under it with the chapters marked on the scrubber, and the chapters beside it with the code each one shows + The player on the self tour: the video with captions low on the picture, FormREC's control bar under it with the chapters marked on the scrubber, and the chapters beside it with the code each one shows
An agent-made walkthrough: chapters with their routes and code, marked on the player's own control bar.
@@ -72,20 +73,23 @@
-FormRec records anything on your screen and finishes it itself; FormCut and FormWav are there when you want the family's full editors. +FormREC records anything on your screen and finishes it itself; FormCut and FormWav are there when you want the family's full editors. - **Studio.** Screen, camera and microphone, camera and microphone, or audio only. Every source is its own track, uploaded in two-second chunks while it records, so a closed tab loses at most one chunk. Pause and resume. Marks become chapters. A dBFS level meter is always on screen (target band, peak hold, a clip light and count, plain hints), with a level check before the take and the clips listed after it. The Voice master preset turns off every browser process on the microphone and writes a lossless 48 kHz 24-bit WAV beside the Opus track, with room tone first; script mode shows a script one paragraph at a time and Space drops a chapter for each. Export with sound joins the camera or the screen with the microphone in one MP4. - **Guests on this network.** Turn on guests and a phone or computer on the same Wi-Fi opens the link, enters a six-digit code and joins the call. Each guest records their own camera and microphone at full quality and sends it as it goes; the call is only for talking (each guest hears everyone but themselves). Nothing leaves the network: HTTPS with a certificate this computer makes, no tunnel, no outside server. - **Open in FormCut.** One button places every track on its own FormCut timeline track at the right offset. - **Settings.** System, dark or light theme (applied before the window draws), the default recording mode, how guests join, the library folder, and the lines that connect Claude Code, Codex or Cursor. Open it from the gear, the sidebar, Home's Settings menu or Ctrl+, (Cmd+, on a Mac). - +- **Menu bar (from 0.10.0).** The window's menu bar is the Form family's: every menu opens just under the bar, and a menu longer than the room scrolls instead of covering the bar. The right-click menus on library rows, clips and takes open at the pointer under the same rule. On macOS the same menus are the system menu bar, built from the same list, and View, Menus in window chooses the in-window bar instead. +- **Home (from 0.10.0).** Home opens in front of the library with New recording, New walkthrough, Go live and your recent takes. +- **Preferences (from 0.10.0).** Every setting is in one Preferences window (Ctrl+, or Cmd+,), as sections: the places that held settings before are gathered there, and what each setting stores has not changed. Where this README says "Settings, X", from 0.10.0 it means the X section of Preferences. +- **Agent dock (from 0.10.0).** View, Dock opens a panel beside the window with a terminal for Claude Code, Codex or another agent program, whether each one is installed, and the window's own question when an outside agent over MCP asks to act. - **Walkthroughs.** Record in the studio and press M at each step. Each mark can name the route and the code it is about (`src/app.ts:42`, `src/app.ts:10-30`, `src/app.ts#handleSave`). -- **Made by an agent, no person.** An agent looks at any website or web app (a public site, a product someone else built, a staging or dev server), writes a walkthrough (JSON), and FormRec plays it in a headless browser with a cursor, a highlight ring and captions, recording the page as it goes. It runs over MCP. -- **Linked to code, when there is code.** Optional: when formrec has the codebase, every chapter carries its code anchors resolved at the checked-out commit: path, line range, a snippet, a forge link and an editor link. Anchors that no longer match say so (`missing-file`, `line-out-of-range`, `symbol-not-found`), so a walkthrough that went stale is visible. +- **Made by an agent, no person.** An agent looks at any website or web app (a public site, a product someone else built, a staging or dev server), writes a walkthrough (JSON), and FormREC plays it in a headless browser with a cursor, a highlight ring and captions, recording the page as it goes. It runs over MCP. +- **Linked to code, when there is code.** Optional: when FormREC has the codebase, every chapter carries its code anchors resolved at the checked-out commit: path, line range, a snippet, a forge link and an editor link. Anchors that no longer match say so (`missing-file`, `line-out-of-range`, `symbol-not-found`), so a walkthrough that went stale is visible. ### Everything Loom does, on your computer -FormRec 0.9.0 covers every feature in Loom's Help Center, loom.com and Atlassian's Loom pages: 289 rows (264 Loom features and the 25 Form family gaps), each checked against the code and a test by the people who built it and again by an independent audit. 269 rows work the way Loom's do, 12 reach Loom's outcome another way or need hardware or a vendor's approval this project cannot test with (each says which), 8 do not apply to an app on your computer, and none is partial or missing. [`docs/LOOM_PARITY.md`](docs/LOOM_PARITY.md) is the row-by-row table with sources, and [`docs/parity/`](docs/parity) maps each feature's rows to its code and tests. Loom's cloud parts run on servers you choose: a relay you deploy, a tunnel, or this network. +FormREC 0.9.0 covers every feature in Loom's Help Center, loom.com and Atlassian's Loom pages: 289 rows (264 Loom features and the 25 Form family gaps), each checked against the code and a test by the people who built it and again by an independent audit. 269 rows work the way Loom's do, 12 reach Loom's outcome another way or need hardware or a vendor's approval this project cannot test with (each says which), 8 do not apply to an app on your computer, and none is partial or missing. [`docs/LOOM_PARITY.md`](docs/LOOM_PARITY.md) is the row-by-row table with sources, and [`docs/parity/`](docs/parity) maps each feature's rows to its code and tests. Loom's cloud parts run on servers you choose: a relay you deploy, a tunnel, or this network. - **Record.** Seven layouts (screen and camera, screen, camera, audio, meeting, slides, canvas), the whole screen, a window, a tab or part of the screen, up to 4K, a countdown, pause, restart, cancel, Live Rewind, screenshots, speaker notes and a teleprompter, image slides that become chapters as you step through them, crash recovery. The camera bubble in five shapes (circle, rounded, square, portrait and landscape) and five sizes anywhere on the picture, with frames drawn into exports too, filters, touch-up, auto lighting, background blur or a picture, mirror and noise suppression. Drawing, click highlights, confetti and blurred areas while recording. In the desktop app the bubble, the controls and the drawing float over every app, with a tray Quick Record and global shortcuts; a browser extension records a tab with a Bug report mode (console and failed requests); a phone records in its browser on the same Wi-Fi. - **Edit.** Trim, split, stitch and add clips, edit by deleting words in the transcript, remove filler words and silences, noise reduction, music, a frame, overlays (text, arrows, boxes, blur, zoom), a synthesised voice to fix a line, versions and revert, custom and automatic thumbnails, GIF previews. One exporter: MP4, WebM, GIF, M4A and WAV with burnt-in captions, the bubble and the drawings; hand-offs to FormCut, FormEncoder and FormWav. @@ -93,12 +97,12 @@ FormRec 0.9.0 covers every feature in Loom's Help Center, loom.com and Atlassian - **Share.** A public link through your relay or a tunnel, a link on this network (HTTPS, unguessable) or a page you host anywhere (encrypted with a password), with privacy by link, password, people or your company's domain, viewers who sign in with a magic link or your identity provider, expiry, an email gate, downloads, branding, recommended speed, quality from 360p to 4K, embeds and oEmbed, GIFs for email, a viewer page with speed, captions, transcript, chapters, theatre, picture in picture and keyboard shortcuts. Invitations, notifications and digests go out through your own SMTP, Gmail or Microsoft 365 account. - **Engage.** Timestamped comments with threads, mentions and resolving, reactions, recorded replies, tasks, call-to-action buttons, video requests, viewer insights (views, completion, heatmap, CSV), notifications and a daily digest. - **Library and workspace.** Folders, spaces, tags, playlists, search across transcripts and comments, five sorts, archive, a Trash you can restore from, bulk actions, imports of MP4, MOV, WebM, M4V, WMV and AVI and of your Zoom cloud recordings (by hand or as they appear, with their transcript and chat), bulk export, `.frec` packages with Open and Open Recent, workspaces you switch between live in the same window, people and groups, policies, retention, branding, an activity log and insights. -- **Accounts and teams.** Owner, admin, creator and viewer roles with seats, invitations and hand-over when someone leaves; single sign-on with SAML 2.0 (from FormRec or from the identity provider's app tile, with single logout) or OpenID Connect (Okta, Microsoft Entra, Google Workspace or any other identity provider) and SCIM 2.0 provisioning on the relay; team spaces that several FormRec installs share through one relay, with conflicted copies instead of lost edits. +- **Accounts and teams.** Owner, admin, creator and viewer roles with seats, invitations and hand-over when someone leaves; single sign-on with SAML 2.0 (from FormREC or from the identity provider's app tile, with single logout) or OpenID Connect (Okta, Microsoft Entra, Google Workspace or any other identity provider) and SCIM 2.0 provisioning on the relay; team spaces that several FormREC installs share through one relay, with conflicted copies instead of lost edits. - **Integrations.** Twelve apps that open and post your recordings where you work: Slack, Google (Gmail, Docs, Slides, Calendar), Salesforce, HubSpot, Zendesk, Intercom, GitHub, GitLab, Jira, Linear, form.md (the Form family's workspace, in Notion's place: a recording becomes a form.md page with its link, summary, chapters and transcript) and Figma, plus Teams messages, Confluence pages, signed webhooks (Zapier, Make, n8n), calendar meetings and a meeting notetaker, a recorder SDK and an embed SDK for your own pages, analytics export, and the documented local API ([`docs/api.md`](docs/api.md)). A form.md page can carry the video itself, so it plays in the page. ### Beyond Loom -What FormRec does that Loom's own pages do not offer, each checked against Loom's documentation in [`docs/beyond-loom.md`](docs/beyond-loom.md): +What FormREC does that Loom's own pages do not offer, each checked against Loom's documentation in [`docs/beyond-loom.md`](docs/beyond-loom.md): The self tour as an interactive demo in the app: the step's picture with a hotspot on the Studio item, its words under it, Back, the progress line, 3 of 8 and Next, and beside it the steps with their words, Hide and Remove hotspot @@ -113,9 +117,37 @@ What FormRec does that Loom's own pages do not offer, each checked against Loom' - **Variants.** A walkthrough that declares `{{variables}}` is recorded once for each row of a JSON or CSV file (`formrec variants`, the Variants panel, an MCP tool): one recording per set of values, each linked to its source, with the same redaction and no variable allowed to carry a secret. It is not Loom's personalised video, whose spoken variables Loom is deprecating; nothing here is spoken. - **Linux.** On X11 the desktop app records the display you pick directly, with no system picker. 0.9.0 built the Linux app and ran that feed inside it; the same run found that the Linux app's window cannot yet use a microphone or camera, which is open. +## Download + +| Platform | Download | Release | +|---|---|---| +| macOS | [Download FormREC for macOS](https://formai.studio/get/formrec/macos) | [FormREC releases on FormCompiler](https://github.com/nodemode-dev/formcompiler/releases?q=formrec-v&expanded=true) | +| Windows | [Download FormREC for Windows](https://formai.studio/get/formrec/windows) | [FormREC releases on FormCompiler](https://github.com/nodemode-dev/formcompiler/releases?q=formrec-v&expanded=true) | +| Linux | [Download FormREC for Linux](https://formai.studio/get/formrec/linux) | [FormREC releases on FormCompiler](https://github.com/nodemode-dev/formcompiler/releases?q=formrec-v&expanded=true) | + +All FormREC builds are compiled, signed and released from [FormCompiler](https://github.com/nodemode-dev/formcompiler) and installed from FormPortal; this repo holds the source. + +Which file is for my computer? On a release page each file is named `formrec--`: + +| Your computer | File to download | What it is | +|---|---|---| +| Mac with Apple silicon (M1 or newer) | `formrec--macos-arm64.zip` | Portable copy. Unzip it and open FormREC; nothing is installed. | +| Mac with an Intel processor | `formrec--macos-x86_64.zip` | The same for Intel Macs. This build is experimental. | +| Windows PC (64-bit Intel or AMD) | `formrec--windows-x86_64-setup.exe` | Installer. The one most people on Windows want. | +| Windows PC (64-bit Intel or AMD) | `formrec--windows-x86_64.zip` | Portable copy. Unzip it and run; nothing is installed. | +| Linux PC (64-bit Intel or AMD) | `formrec--linux-x86_64.zip` | Portable copy. The zip holds the AppImage, which runs on most Linux systems with no install. | + +Needs macOS 14 or newer, Windows 10 or newer, or Linux with glibc 2.35 or newer. + +FormREC is a desktop app for macOS (Apple silicon and Intel), Windows and Linux. The app is a Tauri 2 window around the same server the command line runs: it starts `formrec serve --desktop` with a bundled Node 22 runtime, on 127.0.0.1 only, and shows the window once the page is ready, so there is no white flash. From 0.10.0 the macOS menu bar is built from the same list as the window's menu bar. Guests still join over HTTPS on this network while guests are on. + +Walkthroughs an agent records headless need Playwright's Chromium, which is not bundled: Help > Install the Recorder Browser downloads it once. The studio does not need it. + +To build it yourself: `setup/build_release --target ` (`aarch64-apple-darwin`, `x86_64-apple-darwin`, `x86_64-pc-windows-msvc` or `x86_64-unknown-linux-gnu`) writes `release-dist/formrec--.zip`, and on Windows the `-setup.exe` too. With `APPLE_SIGNING_IDENTITY` set it signs with the hardened runtime, notarizes and staples; without it the app is signed ad hoc. + ## Demos -Two demos ship inside FormRec, each a finished recording made by FormRec itself. Open them from Home (Demos) or Help > Demo. A demo opens in the player under a Demo bar with a way back to Home; it is never added to your library and cannot be deleted or sent to FormCut from there. +Two demos ship inside FormREC, each a finished recording made by FormREC itself. Open them from Home (Demos) or Help > Demo. A demo opens in the player under a Demo bar with a way back to Home; it is never added to your library and cannot be deleted or sent to FormCut from there. | Demo | What it shows | |---|---| @@ -124,17 +156,11 @@ Two demos ship inside FormRec, each a finished recording made by FormRec itself. `npm run build && node scripts/make-demos.mjs` remakes both from nothing (generated pictures and voices, a real take in two browsers, the self tour recorded headless); see each demo's CREDITS.md. -## Desktop app +## Run it from source -FormRec is a desktop app for macOS (Apple silicon and Intel), Windows and Linux, built, signed and released by the family's FormCompiler and installed from FormPortal. The app is a Tauri 2 window around the same server the command line runs: it starts `formrec serve --desktop` with a bundled Node 22 runtime, on 127.0.0.1 only, and shows the window once the page is ready, so there is no white flash. The menus match the window's File and Help menus. Guests still join over HTTPS on this network while guests are on. +Prefer it in your browser, or want to contribute? Run the app straight from this repo. -Walkthroughs an agent records headless need Playwright's Chromium, which is not bundled: Help > Install the Recorder Browser downloads it once. The studio does not need it. - -To build it yourself: `setup/build_release --target ` (`aarch64-apple-darwin`, `x86_64-apple-darwin`, `x86_64-pc-windows-msvc` or `x86_64-unknown-linux-gnu`) writes `release-dist/formrec--.zip`, and on Windows the `-setup.exe` too. With `APPLE_SIGNING_IDENTITY` set it signs with the hardened runtime, notarizes and staples; without it the app is signed ad hoc. - -## Use it - -**Requires:** Node.js 22 or newer. FFmpeg is optional (it adds MP4 export). +**Requires:** Node.js 22 or newer. FFmpeg is optional (it adds MP4 export). The desktop shell also needs Rust and the Tauri 2 system packages. ```sh git clone git@github.com:nodemode-dev/formREC.git @@ -161,28 +187,18 @@ node dist/src/cli.js validate examples/formrec-self-tour.json node dist/src/cli.js record examples/formrec-self-tour.json --base-url "$(node dist/src/cli.js url)" ``` -That example tours formrec's own UI with anchors into this repo (run `serve` first). +That example tours FormREC's own UI with anchors into this repo (run `serve` first). -## Public links +## Built for agents -A share link works on this network by default. Two ways make it work for anyone on the internet, and the share dialog shows the public link first once either is on: - -- **A relay you run.** `formrec relay` is a small server you deploy ([Cloud Run](relay/cloudrun.md), [a VPS](relay/vps.md) or the [Dockerfile](relay/Dockerfile)). In FormRec, Settings, Relay, paste its address and the enrollment code it printed, then choose "Publish to the relay" when you share. Your computer stays the source of truth: it pushes only what a share page reads, signed with its own key, and pulls back the views, comments and replies. With a seal key everything the relay keeps is sealed at rest (AES-256-GCM), media and every record alike. The relay also carries viewer sign-in, single sign-on and SCIM, team spaces, the hosted recorder SDK and remote agents over MCP. [`docs/relay.md`](docs/relay.md) has every setting. -- **A tunnel, no server.** Settings, Public link starts a Cloudflare quick tunnel (or your named tunnel, Tailscale Funnel or ngrok) to a share-only server on 127.0.0.1:8776. Links work while this computer is on. - -Either way the public server answers the share routes only, with lower limits than the app, and never the library or the API. - -## MCP - -Connect an agent in one of three ways: +Connect an agent in one of three ways, or over HTTP: - **In the app:** Settings, Agents. Claude Code, Codex, Cursor, Claude Desktop and VS Code each have the exact text to paste, a Copy button, Connect (writes it for you, with a backup) and whether it is connected. - **From a terminal:** `formrec agents install` (from a checkout, `npm run agents -- install`) connects Claude Code, Codex and Cursor for your account; name `desktop` or `vscode` to add those, `--dry-run` to see what it would change. `formrec agents status` says what is connected. It registers the installed app's `formrec-desktop mcp` when the app is on this computer (it brings its own Node), else this Node by its absolute path. - **As a Claude Code plugin:** `.claude-plugin/` carries the server and both skills (`/plugin marketplace add nodemode-dev/formREC`, then `/plugin install formrec@formrec`; it runs the checkout's build). - - **Over HTTP:** the app serves the same tools at `/mcp` (Streamable HTTP, with a bearer token), and `formrec mcp --http` runs them on port 8775. An agent somewhere else connects to your relay with OAuth 2.1: its `/mcp` works over what is published there, as the person who approved the agent, and when you turn the bridge on, `/mcp/bridge` passes every call to this computer while it is online. -**Player links.** A link an agent gives you for a recording opens that recording's player and nothing else: it carries a key for that one recording, never the app's own token, so it cannot open your library, Settings or any other part of FormRec. To stop every player link given so far, choose Settings, Agents, Player links, Rotate (or run `formrec url --rotate-player-links`); agents give new links in their next answers. `formrec url` still prints the app's own address for you. +**Player links.** A link an agent gives you for a recording opens that recording's player and nothing else: it carries a key for that one recording, never the app's own token, so it cannot open your library, Settings or any other part of FormREC. To stop every player link given so far, choose Settings, Agents, Player links, Rotate (or run `formrec url --rotate-player-links`); agents give new links in their next answers. `formrec url` still prints the app's own address for you. By hand, any MCP client: @@ -190,7 +206,7 @@ By hand, any MCP client: { "mcpServers": { "formrec": { "command": "/Applications/FormRec.app/Contents/MacOS/formrec-desktop", "args": ["mcp"] } } } ``` -or `"command": "/abs/path/to/node", "args": ["/path/to/formrec/dist/src/cli.js", "mcp"]`. Add `"--codebase", "/path/to/your/repo"` only if chapters should link to code: recording a website needs none. Code anchors are read only inside the codebases formrec was given (`--codebase`, `FORMREC_CODEBASES`, else the folder it started in, unless that is your home folder or `/`); a walkthrough naming any other root is refused, and secret-looking files (`.env`, keys, credentials, `.git/`, `.ssh/`, `.aws/`) are never shown. +or `"command": "/abs/path/to/node", "args": ["/path/to/formrec/dist/src/cli.js", "mcp"]`. Add `"--codebase", "/path/to/your/repo"` only if chapters should link to code: recording a website needs none. Code anchors are read only inside the codebases FormREC was given (`--codebase`, `FORMREC_CODEBASES`, else the folder it started in, unless that is your home folder or `/`); a walkthrough naming any other root is refused, and secret-looking files (`.env`, keys, credentials, `.git/`, `.ssh/`, `.aws/`) are never shown. Core tools, each with a title, annotations (read only, destructive, open world) and structured output: @@ -204,15 +220,24 @@ Core tools, each with a title, annotations (read only, destructive, open world) | `formrec_rename` | a new title or summary | | `formrec_delete` | removes a recording for good (destructive; `confirm` repeats the id) | | `formrec_open_in_formcut` | hands a recording to FormCut as a new project | -| `formrec_demos` | the demos that ship with FormRec, with a player link for each | +| `formrec_demos` | the demos that ship with FormREC, with a player link for each | -The feature modules add their own tools (editing, transcripts, sharing, comments, folders and more), listed from the live server in `.claude/skills/formrec-harness/references/feature-tools.md`. Two skills ship in `.claude/skills/` (mirrored in `.agents/skills/`, each with `EVALS.json`): `formrec-harness` for using FormRec through its tools and `formrec-skillset` for changing FormRec's code. This checkout carries `.mcp.json`, `.codex/config.toml`, `.cursor/mcp.json` and `.cursor/rules/formrec.mdc`. +The feature modules add their own tools (editing, transcripts, sharing, comments, folders and more), listed from the live server in `.claude/skills/formrec-harness/references/feature-tools.md`. Two skills ship in `.claude/skills/` (mirrored in `.agents/skills/`, each with `EVALS.json`): `formrec-harness` for using FormREC through its tools and `formrec-skillset` for changing FormREC's code. This checkout carries `.mcp.json`, `.codex/config.toml`, `.cursor/mcp.json` and `.cursor/rules/formrec.mdc`. + +## Public links + +A share link works on this network by default. Two ways make it work for anyone on the internet, and the share dialog shows the public link first once either is on: + +- **A relay you run.** `formrec relay` is a small server you deploy ([Cloud Run](relay/cloudrun.md), [a VPS](relay/vps.md) or the [Dockerfile](relay/Dockerfile)). In FormREC, Settings, Relay, paste its address and the enrollment code it printed, then choose "Publish to the relay" when you share. Your computer stays the source of truth: it pushes only what a share page reads, signed with its own key, and pulls back the views, comments and replies. With a seal key everything the relay keeps is sealed at rest (AES-256-GCM), media and every record alike. The relay also carries viewer sign-in, single sign-on and SCIM, team spaces, the hosted recorder SDK and remote agents over MCP. [`docs/relay.md`](docs/relay.md) has every setting. +- **A tunnel, no server.** Settings, Public link starts a Cloudflare quick tunnel (or your named tunnel, Tailscale Funnel or ngrok) to a share-only server on 127.0.0.1:8776. Links work while this computer is on. + +Either way the public server answers the share routes only, with lower limits than the app, and never the library or the API. ## What it writes -`~/formrec/recordings//` (or `FORMREC_DATA`, folders 0700, files 0600): `recording.json`, one `track-.webm` per source (studio; the camera and screen files are pictures only, with no sound) or `video.webm` (walkthroughs), `master-host-mic.wav` for a Voice master take, `captions.vtt`, `chapters.vtt`, `session.json` while recording and, for agent-made recordings, `walkthrough.json`; feature modules add their own files beside them. The video and the tracks are plain WebM: export or share them from FormRec, or open them in FormCut. +`~/formrec/recordings//` (or `FORMREC_DATA`, folders 0700, files 0600): `recording.json`, one `track-.webm` per source (studio; the camera and screen files are pictures only, with no sound) or `video.webm` (walkthroughs), `master-host-mic.wav` for a Voice master take, `captions.vtt`, `chapters.vtt`, `session.json` while recording and, for agent-made recordings, `walkthrough.json`; feature modules add their own files beside them. The video and the tracks are plain WebM: export or share them from FormREC, or open them in FormCut. -## Settings +## Environment variables and ports | Variable | Default | | |---|---|---| @@ -231,7 +256,24 @@ Ports: 8770 the command line's app, 8772 the desktop app, 8775 `formrec mcp --ht ## Develop -`npm run check` type-checks the server and the client; `npm test` runs the suite (unit, server, MCP and real headless recordings); `npm run coverage` adds coverage; `npm run agents:check` checks the skills' tool references against the server and the skills, EVALS.json and plugin against the family's limits. The desktop shell is in `src-tauri/` (`cargo check` there). See `CLAUDE.md` for the rules and `docs/DESIGN.md` for where formrec is going. +`npm run check` type-checks the server and the client; `npm test` runs the suite (unit, server, MCP and real headless recordings); `npm run coverage` adds coverage; `npm run agents:check` checks the skills' tool references against the server and the skills, EVALS.json and plugin against the family's limits. The desktop shell is in `src-tauri/` (`cargo check` there). See `CLAUDE.md` for the rules and `docs/DESIGN.md` for where FormREC is going. + +**Contributing:** fork, keep changes to one thing, and open a pull request into `main`; packaging and releases are left to FormCompiler. See [`CONTRIBUTING.md`](CONTRIBUTING.md), [`CODE_OF_CONDUCT.md`](CODE_OF_CONDUCT.md) and [`SECURITY.md`](SECURITY.md) (security problems are reported privately, never in a public issue). + +## Repository + +| Path | What it is | +|---|---| +| `src/` · `shared/` | The server (Node 22, TypeScript) and the modules it shares with the window | +| `web/` | The window: vanilla TypeScript, no framework | +| `src-tauri/` | The Tauri 2 desktop shell, which runs the server as a Node sidecar | +| `extension/` · `relay/` | The browser extension · the files for deploying the relay | +| `setup/` · `tools/` · `scripts/` · `tests/` | Build and packaging · the launchers' halves · agent and demo scripts · the vitest suite | +| `docs/` · `demos/` · `examples/` | The manual and parity tables · the two bundled demos · example walkthroughs | + +Agents: [`CLAUDE.md`](CLAUDE.md), [`AGENTS.md`](AGENTS.md) + +
--- @@ -239,11 +281,11 @@ Ports: 8770 the command line's app, 8772 the desktop app, 8775 `formrec mcp --ht | Maintainer | Role | |---|---| -| [@gbarnai](https://github.com/gbarnai) | Owner | -| [@nodemode-ai](https://github.com/nodemode-ai) | Co-Owner | +| [@nodemode-ai](https://github.com/nodemode-ai) | Owner | +| [@gbarnai](https://github.com/gbarnai) | Co-owner | Code owners are set in [`.github/CODEOWNERS`](.github/CODEOWNERS). -## Licence +## License -Apache-2.0, the family default, pending the owner's decision. +FormREC is licensed under the Apache License 2.0 ([`LICENSE`](LICENSE), SPDX `Apache-2.0`). Copyright 2026 NodeAgentc, Inc. Third-party notices: [`NOTICE.md`](NOTICE.md). From 03e4b161680b0c3fe686de8cfc6b8f9520cc34e4 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 13:30:04 -0500 Subject: [PATCH 03/39] feat(web): Home's actions are New recording, New walkthrough, Go live and Open library --- web/src/home.ts | 30 +++++++++++++++++++----------- web/styles/home.css | 4 ++++ 2 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 web/styles/home.css diff --git a/web/src/home.ts b/web/src/home.ts index adeeb73..fd21924 100644 --- a/web/src/home.ts +++ b/web/src/home.ts @@ -21,12 +21,23 @@ function glyph(shapes: [string, Record][]): SVGSVGElement { return svg } -const START = [ - { mode: 'screen', title: 'Screen recording', line: 'Screen, camera and microphone, each on its own track.', icon: glyph([['rect', { x: '3', y: '4', width: '18', height: '12', rx: '2' }], ['path', { d: 'M8 20h8M12 16v4' }], ['circle', { cx: '12', cy: '10', r: '2.5' }]]) }, - { mode: 'camera', title: 'Camera and microphone', line: 'A talking head, a corporate message or an interview.', icon: glyph([['rect', { x: '3', y: '6', width: '13', height: '12', rx: '2' }], ['path', { d: 'M16 10l5-3v10l-5-3z' }]]) }, - { mode: 'audio', title: 'Audio only', line: 'A podcast: every microphone, and guests on this network.', icon: glyph([['rect', { x: '9', y: '3', width: '6', height: '11', rx: '3' }], ['path', { d: 'M5 11a7 7 0 0 0 14 0M12 18v3' }]]) }, +interface HomeAction { id: string; title: string; line: string; icon: SVGSVGElement; href?: string; settings?: string } + +const ACTIONS: HomeAction[] = [ + { id: 'new-recording', href: '#/record', title: 'New recording', line: 'Screen, camera and microphone, each on its own track.', icon: glyph([['circle', { cx: '12', cy: '12', r: '8' }], ['circle', { cx: '12', cy: '12', r: '3.5', fill: 'currentColor' }]]) }, + { id: 'new-walkthrough', settings: 'agents', title: 'New walkthrough', line: 'Connect an agent over MCP; it records the steps and links them to code.', icon: glyph([['rect', { x: '3', y: '4', width: '18', height: '16', rx: '2' }], ['path', { d: 'M7 9l3 3-3 3M13 15h4' }]]) }, + { id: 'go-live', href: '#/record', title: 'Go live', line: 'Stream from the Studio\'s Live panel to RTMP or a live link.', icon: glyph([['circle', { cx: '12', cy: '12', r: '2' }], ['path', { d: 'M8.5 8.5a5 5 0 0 0 0 7M15.5 8.5a5 5 0 0 1 0 7M5.6 5.6a9 9 0 0 0 0 12.8M18.4 5.6a9 9 0 0 1 0 12.8' }]]) }, + { id: 'open-library', href: '#/library', title: 'Open library', line: 'Every take, walkthrough and import on this computer.', icon: glyph([['rect', { x: '3', y: '4', width: '7', height: '7', rx: '1.5' }], ['rect', { x: '14', y: '4', width: '7', height: '7', rx: '1.5' }], ['rect', { x: '3', y: '14', width: '7', height: '7', rx: '1.5' }], ['rect', { x: '14', y: '14', width: '7', height: '7', rx: '1.5' }]]) }, ] +function action(a: HomeAction, primary: boolean): HTMLElement { + const cls = `home-action${primary ? ' is-primary' : ''}` + const body = [a.icon, h('span', { class: 'home-action-text' }, h('strong', {}, a.title), h('span', {}, a.line))] + return a.settings + ? h('button', { class: cls, type: 'button', 'data-home-action': a.id, 'data-settings-open': a.settings }, ...body) + : h('a', { class: cls, href: a.href ?? '#/', 'data-home-action': a.id }, ...body) +} + const GEAR: [string, Record][] = [['circle', { cx: '12', cy: '12', r: '3' }], ['path', { d: 'M19.4 15a1.7 1.7 0 0 0 .3 1.8l.1.1a2 2 0 1 1-2.8 2.8l-.1-.1a1.7 1.7 0 0 0-1.8-.3 1.7 1.7 0 0 0-1 1.5V21a2 2 0 1 1-4 0v-.1a1.7 1.7 0 0 0-1.1-1.5 1.7 1.7 0 0 0-1.8.3l-.1.1a2 2 0 1 1-2.8-2.8l.1-.1a1.7 1.7 0 0 0 .3-1.8 1.7 1.7 0 0 0-1.5-1H3a2 2 0 1 1 0-4h.1a1.7 1.7 0 0 0 1.5-1.1 1.7 1.7 0 0 0-.3-1.8l-.1-.1a2 2 0 1 1 2.8-2.8l.1.1a1.7 1.7 0 0 0 1.8.3H9a1.7 1.7 0 0 0 1-1.5V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1 1.5 1.7 1.7 0 0 0 1.8-.3l.1-.1a2 2 0 1 1 2.8 2.8l-.1.1a1.7 1.7 0 0 0-.3 1.8V9a1.7 1.7 0 0 0 1.5 1H21a2 2 0 1 1 0 4h-.1a1.7 1.7 0 0 0-1.5 1z' }]] function greeting(): string { @@ -45,13 +56,13 @@ function settingsMenu(): HTMLElement { icon.setAttribute('width', '16') icon.setAttribute('height', '16') return h('div', { class: 'menu home-menu', 'data-menu': 'home-settings' }, - h('button', { class: 'menu-button btn', type: 'button', 'aria-haspopup': 'menu', 'aria-expanded': 'false', 'data-home-settings': '' }, icon, h('span', {}, 'Settings')), + h('button', { class: 'menu-button btn', type: 'button', 'aria-haspopup': 'menu', 'aria-expanded': 'false', 'data-home-settings': '' }, icon, h('span', {}, 'Preferences')), h('div', { class: 'menu-list menu-list-end', role: 'menu', hidden: true }, h('div', { class: 'menu-label' }, 'Theme'), theme('system', 'Match the System'), theme('dark', 'Dark'), theme('light', 'Light'), h('div', { class: 'menu-sep', role: 'separator' }), - open('appearance', 'Settings...'), - open('recording', 'Recording Defaults...'), + open('appearance', 'Preferences...'), + open('recording', 'General...'), open('guests', 'Guests...'), open('library', 'Library Folder...'), open('agents', 'Connect an Agent...'), @@ -113,10 +124,7 @@ export function homeView(): HTMLElement { h('p', { class: 'muted' }, 'Record any app, website or your whole screen, with camera and microphone on their own tracks. Guests on this network record themselves, and agents record walkthroughs of any website.'), h('div', { class: 'hero-tags' }, h('span', { class: 'hero-tag' }, 'Track per source'), h('span', { class: 'hero-tag' }, 'Local network guests'), h('span', { class: 'hero-tag' }, 'Agents over MCP')), ), - h('div', { class: 'hero-actions' }, ...START.map((s, i) => - h('a', { class: `home-action${i === 0 ? ' is-primary' : ''}`, href: `#/record?mode=${s.mode}`, 'data-start': s.mode }, - s.icon, h('span', { class: 'home-action-text' }, h('strong', {}, s.title), h('span', {}, s.line))), - )), + h('div', { class: 'hero-actions' }, ...ACTIONS.map((a, i) => action(a, i === 0))), ), h('section', { class: 'home-section', 'data-home-section': 'phone' }, phoneCard('home')), h('section', { class: 'home-section', 'data-home-section': 'demos' }, diff --git a/web/styles/home.css b/web/styles/home.css new file mode 100644 index 0000000..c46cce3 --- /dev/null +++ b/web/styles/home.css @@ -0,0 +1,4 @@ +button.home-action { width: 100%; font: inherit; text-align: start; cursor: pointer; } +.prefs-accents .prefs-accent { width: var(--ctl-md); padding: 0; justify-content: center; } +.prefs-accent[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--text-secondary); } +.seg-item:disabled { opacity: .5; cursor: default; } From 7760ec0c18addcf4b61a3ec505b1ba132630c774 Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 13:30:04 -0500 Subject: [PATCH 04/39] feat(web): one Preferences window with General, Studio, AI and Avatar, an accent, Menus in Window and the agent dock --- web/index.html | 39 ++++++++++++++++++-- web/src/app.ts | 8 +++- web/src/preferences.ts | 84 ++++++++++++++++++++++++++++++++++++++++++ web/src/prepaint.ts | 4 ++ web/src/settings.ts | 11 +++--- web/src/theme.ts | 31 ++++++++++++++++ 6 files changed, 166 insertions(+), 11 deletions(-) create mode 100644 web/src/preferences.ts diff --git a/web/index.html b/web/index.html index 6a42a02..536b998 100644 --- a/web/index.html +++ b/web/index.html @@ -48,6 +48,7 @@ + @@ -170,9 +171,9 @@
-
+
- + @@ -182,7 +183,7 @@
-

Settings

+

Preferences

@@ -197,11 +198,32 @@

Appearance

+
+
AccentButtons, links, the selection and the meters' marks. Applied before the window draws.
+
+ + + + + + + +
+

System follows this computer's light or dark setting as it changes. The guest page always follows the guest's own system.

+
+
+
Menus in WindowOn macOS the desktop app puts the menus in the menu bar. Keep them in this window instead; applies at the next start.
+
+ + +
+
+
-

Recording

+

General

@@ -239,6 +261,15 @@

Library

Agents

+
+
+
Agent dockTerminals for Claude Code, Codex and the other agents at the window's edge. View, Agent Dock shows or hides it too.
+
+ + +
+
+

Connect an agent over MCP and it can record walkthroughs of any website or web app, list, read, rename and hand off your recordings, and use every feature's tools. Connect writes the client's settings for this user account and keeps a backup; Copy gives you the same text to paste. A codebase is optional: add --codebase DIR only for chapters linked to code.

RunsThe FormRec app when it is installed, else this Node.
formrec mcp
diff --git a/web/src/app.ts b/web/src/app.ts index d2ca4d2..4cc677d 100644 --- a/web/src/app.ts +++ b/web/src/app.ts @@ -7,7 +7,7 @@ import { markRoute, wireChrome } from './menus.js' import { demoView, linkView, playerView } from './player.js' import { playerKeyFor, takePlayerKey } from './player-link.js' import { defaultMode } from './prefs.js' -import { wireSettings } from './settings.js' +import { canChooseMenus, menusInWindow, openPreferences, setMenusInWindow, toggleDock, wirePreferences } from './preferences.js' import { studioView, type Mode } from './studio.js' import { wireTheme } from './theme.js' // Every feature registers its slots before the first view is drawn. @@ -90,7 +90,11 @@ takePlayerKey() token() wireTheme() wireChrome() -wireSettings() +wirePreferences() +commands.add({ id: 'app.home', label: 'Home', run: () => { location.hash = '#/' } }) +commands.add({ id: 'app.preferences', label: 'Preferences...', shortcut: 'mod+,', run: () => openPreferences() }) +commands.add({ id: 'view.dock', label: 'Agent Dock', run: () => toggleDock() }) +commands.add({ id: 'view.menus-in-window', label: 'Menus in Window', run: () => { if (canChooseMenus()) setMenusInWindow(!menusInWindow()) } }) wireCommands() void api.info().then((info) => { const slot = document.querySelector('[data-status="version"]') diff --git a/web/src/preferences.ts b/web/src/preferences.ts new file mode 100644 index 0000000..0dbed53 --- /dev/null +++ b/web/src/preferences.ts @@ -0,0 +1,84 @@ +import { openSettings, wireSettings, type Section } from './settings.js' + +export interface DockHandle { toggle(): void; open(): void; close(): void } + +const TITLES: Record = { studio: 'Studio', ai: 'AI', 'ai-avatar': 'Avatar' } + +export const MENUS_IN_WINDOW_KEY = 'formrec.menusInWindow' + +export function canChooseMenus(): boolean { + return '__TAURI_INTERNALS__' in window && /Mac/.test(navigator.platform) +} + +export function menusInWindow(): boolean { + try { + return localStorage.getItem(MENUS_IN_WINDOW_KEY) === '1' + } catch { + return false + } +} + +function press(selector: string, attr: string, value: string): void { + for (const control of document.querySelectorAll(selector)) { + const on = String(control.getAttribute(attr) === value) + if (control.getAttribute('aria-pressed') !== on) control.setAttribute('aria-pressed', on) + } +} + +function setText(node: Element | null, text: string): void { + if (node && node.textContent !== text) node.textContent = text +} + +export function setMenusInWindow(on: boolean): void { + try { + if (on) localStorage.setItem(MENUS_IN_WINDOW_KEY, '1') + else localStorage.removeItem(MENUS_IN_WINDOW_KEY) + } catch {} + press('[data-menus-set]', 'data-menus-set', on ? 'window' : 'bar') + if (canChooseMenus()) setText(document.querySelector('[data-menus-note]'), on ? 'The menus stay in this window from the next start.' : 'The menus go to the macOS menu bar from the next start.') +} + +let dock: DockHandle | null = null +let dockShown = false + +function markDock(): void { + press('[data-dock-set]', 'data-dock-set', dockShown ? 'show' : 'hide') +} + +export function showDock(on: boolean): void { + if (!dock) return + if (on) dock.open() + else dock.close() + dockShown = on + markDock() +} + +export function toggleDock(): void { + showDock(!dockShown) +} + +export function attachDock(handle: DockHandle, shown: boolean): void { + dock = handle + dockShown = shown + markDock() +} + +export function openPreferences(section?: Section): void { + openSettings(section) +} + +export function wirePreferences(): void { + wireSettings(TITLES) + press('[data-menus-set]', 'data-menus-set', menusInWindow() ? 'window' : 'bar') + if (!canChooseMenus()) { + for (const control of document.querySelectorAll('[data-menus-set]')) control.disabled = true + setText(document.querySelector('[data-menus-note]'), 'Only the macOS desktop app has a system menu bar; here the menus are always in the window.') + } + document.addEventListener('click', (e) => { + const target = e.target as HTMLElement + const menus = target.closest('[data-menus-set]')?.dataset.menusSet + if (menus && canChooseMenus()) setMenusInWindow(menus === 'window') + const shown = target.closest('[data-dock-set]')?.dataset.dockSet + if (shown) showDock(shown === 'show') + }) +} diff --git a/web/src/prepaint.ts b/web/src/prepaint.ts index d7dd9c5..51237c4 100644 --- a/web/src/prepaint.ts +++ b/web/src/prepaint.ts @@ -15,4 +15,8 @@ const light = mode === 'light' || (mode === 'system' && matchMedia('(prefers-color-scheme: light)').matches) root.setAttribute('data-theme', light ? 'light' : 'dark') root.setAttribute('data-theme-mode', mode) + try { + const accent = localStorage.getItem('formrec.accent') + if (accent && /^#[0-9a-f]{6}$/.test(accent)) root.style.setProperty('--accent-color', accent) + } catch {} })() diff --git a/web/src/settings.ts b/web/src/settings.ts index 38e5c00..8ce320c 100644 --- a/web/src/settings.ts +++ b/web/src/settings.ts @@ -16,19 +16,20 @@ export type Section = string const SECTIONS: Section[] = ['appearance', 'recording', 'guests', 'library', 'agents', 'about'] /** Feature sections join the rail and the page before About. The dialog is closed while this runs, so nothing moves. */ -function addFeatureSections(dialog: HTMLDialogElement): void { +function addFeatureSections(dialog: HTMLDialogElement, titles: Record): void { const nav = dialog.querySelector('.settings-nav') const aboutTab = nav?.querySelector('[data-settings-tab="about"]') const aboutPage = dialog.querySelector('[data-settings-page="about"]') if (!nav || !aboutTab || !aboutPage) return for (const s of settingsSections.all()) { if (SECTIONS.includes(s.id)) continue + const title = titles[s.id] ?? s.title const tab = h('button', { class: 'settings-tab', type: 'button', role: 'tab', 'aria-selected': 'false', 'data-settings-tab': s.id }, - s.icon ? s.icon() : '', h('span', {}, s.title)) + s.icon ? s.icon() : '', h('span', {}, title)) nav.insertBefore(tab, aboutTab) const heading = `set-${s.id}` const page = h('section', { class: 'settings-page', 'data-settings-page': s.id, 'aria-labelledby': heading }, - h('h3', { class: 'settings-sechead', id: heading }, s.title), s.render()) + h('h3', { class: 'settings-sechead', id: heading }, title), s.render()) aboutPage.before(page) SECTIONS.splice(SECTIONS.indexOf('about'), 0, s.id) } @@ -103,11 +104,11 @@ function fillInfo(): void { void api.list().then((all) => setText('[data-settings-value="recordings"]', String(all.length)), () => undefined) } -export function wireSettings(): void { +export function wireSettings(titles: Record = {}): void { dialog = document.querySelector('[data-settings]') pages = dialog?.querySelector('[data-settings-pages]') ?? null if (!dialog || !pages) return - addFeatureSections(dialog) + addFeatureSections(dialog, titles) document.addEventListener('click', (e) => { const opener = (e.target as HTMLElement).closest('[data-settings-open]') if (!opener) return diff --git a/web/src/theme.ts b/web/src/theme.ts index e548ad7..0ebc16b 100644 --- a/web/src/theme.ts +++ b/web/src/theme.ts @@ -2,8 +2,36 @@ export type ThemeMode = 'system' | 'dark' | 'light' const KEY = 'formrec.theme' +const ACCENT_KEY = 'formrec.accent' const media = matchMedia('(prefers-color-scheme: light)') +export const DEFAULT_ACCENT = '#f97316' +export const ACCENTS: ReadonlyArray = [['#f97316', 'Orange'], ['#f59e0b', 'Amber'], ['#22c55e', 'Green'], ['#14b8a6', 'Teal'], ['#38bdf8', 'Sky'], ['#a78bfa', 'Violet'], ['#f472b6', 'Pink']] + +export function accentColor(): string { + const set = document.documentElement.style.getPropertyValue('--accent-color').trim().toLowerCase() + return ACCENTS.some(([hex]) => hex === set) ? set : DEFAULT_ACCENT +} + +function paintAccent(hex: string): void { + const root = document.documentElement + if (hex === DEFAULT_ACCENT) { if (root.style.getPropertyValue('--accent-color')) root.style.removeProperty('--accent-color') } + else if (root.style.getPropertyValue('--accent-color') !== hex) root.style.setProperty('--accent-color', hex) + for (const control of document.querySelectorAll('[data-accent-set]')) { + const on = String(control.dataset.accentSet === hex) + if (control.getAttribute('aria-pressed') !== on) control.setAttribute('aria-pressed', on) + } +} + +export function setAccent(hex: string): void { + if (!ACCENTS.some(([value]) => value === hex)) return + try { + if (hex === DEFAULT_ACCENT) localStorage.removeItem(ACCENT_KEY) + else localStorage.setItem(ACCENT_KEY, hex) + } catch {} + paintAccent(hex) +} + export function themeMode(): ThemeMode { const mode = document.documentElement.getAttribute('data-theme-mode') return mode === 'dark' || mode === 'light' ? mode : 'system' @@ -33,9 +61,12 @@ export function setTheme(mode: ThemeMode): void { /** Any [data-theme-set] control anywhere (Settings, the Home settings menu, the View menu) sets the theme. */ export function wireTheme(): void { paint(themeMode()) + paintAccent(accentColor()) media.addEventListener('change', () => paint(themeMode())) document.addEventListener('click', (e) => { const set = (e.target as HTMLElement).closest('[data-theme-set]')?.dataset.themeSet if (set === 'system' || set === 'dark' || set === 'light') setTheme(set) + const accent = (e.target as HTMLElement).closest('[data-accent-set]')?.dataset.accentSet + if (accent) setAccent(accent) }) } From c8fd70cc015e1ba71a5f1b6b95b1110ad8bd6e7d Mon Sep 17 00:00:00 2001 From: nodemode-ai Date: Tue, 1 Dec 2026 13:31:44 -0500 Subject: [PATCH 05/39] build: name the app and its bundle FormREC --- build_app | 8 ++++---- build_app.bat | 4 ++-- setup/HASHOUT_LOG.md | 21 +++++++++++++++++++++ setup/build_release | 6 +++--- setup/stage_desktop | 6 +++--- src-tauri/Cargo.toml | 2 +- src-tauri/HASHOUT_LOG.md | 24 ++++++++++++++++++++++++ src-tauri/splash/index.html | 4 ++-- src-tauri/tauri.conf.json | 12 ++++++------ 9 files changed, 66 insertions(+), 21 deletions(-) create mode 100644 setup/HASHOUT_LOG.md create mode 100644 src-tauri/HASHOUT_LOG.md diff --git a/build_app b/build_app index d598627..1934880 100755 --- a/build_app +++ b/build_app @@ -6,13 +6,13 @@ usage() { cat << 'EOF' usage: ./build_app [--server-only] [--skip-web] [--target TRIPLE] [--yes] -Builds FormRec start to finish: the desktop app for this computer, with the server inside it. +Builds FormREC start to finish: the desktop app for this computer, with the server inside it. 1. checks Node 22+ and npm 2. installs the packages when they are missing 3. builds the server and the client into dist/ (npm run build) 4. checks the desktop toolchain (Rust through rustup with the target, WebKitGTK on Linux) 5. stages the app (setup/stage_desktop: dist, the production packages and the pinned Node runtime) - 6. bundles it (setup/build_release): FormRec.app in a zip on macOS, an AppImage in a zip on Linux, + 6. bundles it (setup/build_release): FormREC.app in a zip on macOS, an AppImage in a zip on Linux, the -setup.exe and a portable zip on Windows, in release-dist/ Options: @@ -58,7 +58,7 @@ case "$version" in [0-9]*.[0-9]*.[0-9]*) ;; *) die "package.json carries no x.y.z version" ;; esac -say "FormRec v$version" +say "FormREC v$version" if [ ! -d node_modules ]; then say "installing the packages" @@ -79,7 +79,7 @@ command -v cargo >/dev/null 2>&1 || die "Rust is needed for the desktop app: ins [ -n "$target" ] || target="$(rustc -vV | awk '/^host:/ {print $2}')" case "$target" in aarch64-apple-darwin|x86_64-apple-darwin|x86_64-pc-windows-msvc|x86_64-unknown-linux-gnu) ;; - *) die "FormRec's desktop app builds for aarch64-apple-darwin, x86_64-apple-darwin, x86_64-pc-windows-msvc or x86_64-unknown-linux-gnu, not $target" ;; + *) die "FormREC's desktop app builds for aarch64-apple-darwin, x86_64-apple-darwin, x86_64-pc-windows-msvc or x86_64-unknown-linux-gnu, not $target" ;; esac if command -v rustup >/dev/null 2>&1 && ! rustup target list --installed | grep -qx "$target"; then if [ "$yes" -eq 1 ]; then diff --git a/build_app.bat b/build_app.bat index 153cb2b..dc3894d 100644 --- a/build_app.bat +++ b/build_app.bat @@ -18,7 +18,7 @@ where node >nul 2>nul || (echo [build_app] Node 22 or newer is required: https:/ for /f "delims=" %%v in ('node -p "process.versions.node.split('.')[0]"') do set "NODE_MAJOR=%%v" if !NODE_MAJOR! LSS 22 (echo [build_app] Node 22 or newer is required: https://nodejs.org/ & exit /b 1) for /f "delims=" %%v in ('node -p "require('./package.json').version"') do set "APPV=%%v" -echo [build_app] FormRec v%APPV% +echo [build_app] FormREC v%APPV% if not exist node_modules ( echo [build_app] installing the packages @@ -48,7 +48,7 @@ exit /b 0 :usage echo usage: build_app.bat [--server-only] [--skip-web] -echo Builds the FormRec desktop app for Windows with the server inside it: the -setup.exe and a portable zip in release-dist\. +echo Builds the FormREC desktop app for Windows with the server inside it: the -setup.exe and a portable zip in release-dist\. echo --server-only stop after building dist\ (run it with formrec.bat serve) echo --skip-web reuse the client already in dist\web exit /b 0 diff --git a/setup/HASHOUT_LOG.md b/setup/HASHOUT_LOG.md new file mode 100644 index 0000000..f6240c3 --- /dev/null +++ b/setup/HASHOUT_LOG.md @@ -0,0 +1,21 @@ +# setup HASHOUT log + +The release scripts' decisions and why, newest last. Read before changing `build_release` or `stage_desktop`. + +## v0.10.0 | the bundle is FormREC.app {#form-rec-name} + +- refers-to: build_release, stage_desktop, ../build_app, ../build_app.bat +- logged: v0.10.0 | 2026-12-01 13:30 EST + +`build_release` reads `PRODUCT` from `tauri.conf.json` `productName`, so the paths it builds (`$RELEASE/bundle/macos/$PRODUCT.app`, `$PRODUCT.AppImage`, the Windows stage folder) follow the new name with no script change. Only text a person reads moved to FormREC. + +Removed lines, quoted: + +- build_release: `# Builds FormRec's desktop release`, `release-dist/*.zip of FormRec.app)`, `echo "the signed formrec-node runs FormRec $ran"` +- stage_desktop: `# Lays out what the FormRec desktop app`, `echo "FormRec $pkg_version"`, `FormRec ships Node 22"` +- build_app: the usage line `Builds FormRec start to finish`, `FormRec.app in a zip`, `say "FormRec v$version"`, `die "FormRec's desktop app builds` +- build_app.bat: `echo [build_app] FormRec v%APPV%`, `echo Builds the FormRec desktop app` + +Not changed: the artifact names `formrec---.zip` (formcompiler's globs and the registry read them), `formrec-node`, `formrec-desktop`. + +Left for the owners of the Rust shell: `linux_desktop_run.mjs` finds the main window with `xdotool search --name '^FormRec$'` and expects the tray labels `Open FormRec` and `Quit FormRec`. Those strings come from `src-tauri/src/main.rs` and `menu.rs`; the script changes in the same step as they do. diff --git a/setup/build_release b/setup/build_release index 48cbed9..59d88db 100755 --- a/setup/build_release +++ b/setup/build_release @@ -1,9 +1,9 @@ #!/bin/bash -# Builds FormRec's desktop release for one platform, from the repository root. nodemode-dev/formcompiler runs it on +# Builds FormREC's desktop release for one platform, from the repository root. nodemode-dev/formcompiler runs it on # each platform's own runner from a compile_vX.Y.Z branch (apps/formrec.json) and opens the draft release; this # repository builds nothing itself. # -# setup/build_release --target aarch64-apple-darwin (macOS, Apple Silicon: release-dist/*.zip of FormRec.app) +# setup/build_release --target aarch64-apple-darwin (macOS, Apple Silicon: release-dist/*.zip of FormREC.app) # setup/build_release --target x86_64-apple-darwin (macOS, Intel, on an Intel runner: the same) # setup/build_release --target x86_64-pc-windows-msvc (Windows, in Git Bash: NSIS -setup.exe and a portable zip) # setup/build_release --target x86_64-unknown-linux-gnu (Linux, on Ubuntu 22.04: a zip of the AppImage, glibc 2.35+) @@ -185,6 +185,6 @@ if [ "$OS" = macos ]; then # The sidecar as signed runs the bundled app. ran=$("$node_bin" "$app/Contents/Resources/app/dist/src/cli.js" version) if [ "$ran" != "$VERSION" ]; then echo "the signed formrec-node reports $ran, not $VERSION"; exit 1; fi - echo "the signed formrec-node runs FormRec $ran" + echo "the signed formrec-node runs FormREC $ran" rm -rf "$unpacked" fi diff --git a/setup/stage_desktop b/setup/stage_desktop index b948daf..053749b 100755 --- a/setup/stage_desktop +++ b/setup/stage_desktop @@ -1,5 +1,5 @@ #!/bin/bash -# Lays out what the FormRec desktop app carries, for one target, from the repository root: +# Lays out what the FormREC desktop app carries, for one target, from the repository root: # # setup/stage_desktop --target aarch64-apple-darwin # @@ -48,7 +48,7 @@ if [ "$pkg_version" != "$conf_version" ] || [ "$pkg_version" != "$cargo_version" echo "package.json $pkg_version, tauri.conf.json $conf_version and Cargo.toml $cargo_version differ" exit 1 fi -echo "FormRec $pkg_version" +echo "FormREC $pkg_version" say "build formrec" if [ ! -d node_modules ]; then npm ci --no-audit --no-fund; fi @@ -77,7 +77,7 @@ sidecar="src-tauri/binaries/formrec-node-$TARGET$EXE" rm -f src-tauri/binaries/formrec-node-* if [ -n "${FORMREC_NODE:-}" ]; then version=$("$FORMREC_NODE" --version) - case "$version" in v22.*) ;; *) echo "FORMREC_NODE is Node $version; FormRec ships Node 22"; exit 1 ;; esac + case "$version" in v22.*) ;; *) echo "FORMREC_NODE is Node $version; FormREC ships Node 22"; exit 1 ;; esac cp "$FORMREC_NODE" "$sidecar" node_license="$(dirname "$FORMREC_NODE")/../LICENSE" if [ -f "$node_license" ]; then cp "$node_license" "$APP/NODE_LICENSE"; else echo "warning: no Node LICENSE beside FORMREC_NODE"; fi diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index baad71e..6e946b6 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "formrec-desktop" version = "0.9.0" -description = "FormRec desktop app: a window around formrec serve" +description = "FormREC desktop app: a window around formrec serve" authors = ["NodeAgentc, Inc."] license = "Apache-2.0" edition = "2021" diff --git a/src-tauri/HASHOUT_LOG.md b/src-tauri/HASHOUT_LOG.md new file mode 100644 index 0000000..f7f8114 --- /dev/null +++ b/src-tauri/HASHOUT_LOG.md @@ -0,0 +1,24 @@ +# src-tauri HASHOUT log + +The desktop shell's packaging decisions and why, newest last. Read before changing `tauri.conf.json`. + +## v0.10.0 | the app is named FormREC {#form-rec-name} + +- refers-to: tauri.conf.json `productName`, the splash window `title`, `longDescription`, `fileAssociations`; splash/index.html; Cargo.toml `description` +- logged: v0.10.0 | 2026-12-01 13:30 EST + +The owner named the app and its bundle FormREC. Tauri builds the macOS bundle, the AppImage's file name and the Windows installer's product name from `productName`, so it changes here and nowhere else in the config. + +Kept as they were, because they are identifiers and not names a person reads: `identifier` `ai.nodemode.formrec`, `mainBinaryName` `formrec-desktop`, the sidecar `formrec-node`, the `formrec` URL scheme, the `application/x-formrec` type and the lowercase artifact names `formrec---.zip`. + +Removed lines, quoted: + +- `"productName": "FormRec",` +- `"title": "FormRec",` (the splash window) +- `"longDescription": "FormRec records each source ...` +- `"name": "FormRec Recording",` and `"description": "A FormRec recording package",` +- `"description": "A video FormRec can import",` +- splash/index.html: `FormRec`, `alt="FormRec"`, `Starting FormRec` (text and aria-label); the splash is a fixed 360 by 200 window with the same one-line paragraph, so the longer word changes no layout. +- Cargo.toml: `description = "FormRec desktop app: ...` + +Not changed here, because they are Rust and server code that other owners hold: `src/packaged.rs` and `src/main.rs` still name `FormRec` (the Linux `lib/FormRec/app` candidate follows Tauri's `productName` directory, `/Applications/FormRec.app`, `%LOCALAPPDATA%\FormRec`, the main window title). They must follow `productName` or the packaged app will not find its files. diff --git a/src-tauri/splash/index.html b/src-tauri/splash/index.html index 704bbe3..fae64fa 100644 --- a/src-tauri/splash/index.html +++ b/src-tauri/splash/index.html @@ -2,7 +2,7 @@ - FormRec + FormREC -FormRec

Starting FormRec

@@ -48,6 +48,7 @@ + @@ -56,63 +57,15 @@
- Home
@@ -129,8 +81,8 @@
-