diff --git a/.agents/skills/formrec-harness/references/feature-tools.md b/.agents/skills/formrec-harness/references/feature-tools.md index b76920d..ecfa790 100644 --- a/.agents/skills/formrec-harness/references/feature-tools.md +++ b/.agents/skills/formrec-harness/references/feature-tools.md @@ -4,7 +4,7 @@ Generated from the FormREC MCP server by `formrec agents sync` (`npm run agents: The tools FormREC's feature modules add next to the core tools in tools.md: editing, transcripts, sharing, comments, the library, documents, integrations and the rest. Each carries a title and annotations; trust "Changes anything" and ask the person before a tool that removes or reaches outside FormREC. They take a recording id from `formrec_list` or `formrec_record` unless they say otherwise. -113 tools. +115 tools. ## Tools @@ -67,6 +67,7 @@ The tools FormREC's feature modules add next to the core tools in tools.md: edit | `formrec_library_tag` | Tag recordings | yes | Add and remove tags (lower case words; a leading # is dropped). Returns each recording's tags. | | `formrec_library_trash` | Move recordings to the Trash, restore or delete them | yes, removes or overwrites | action "trash" moves recordings to the Trash (restorable); "restore" brings them back where they were; "purge" deletes recordings in the Trash for good (all of the Trash when ids is omitted). The Trash empties itself after the number of days set in Settings. | | `formrec_list_clips` | List the clips of a recording | no | The clips made from a recording: id, title, the span of the source (ms), shape (9:16, 1:1, 16:9), length and player link. With highlights true, also the highlights that would be picked now, without making anything. | +| `formrec_list_voices` | Voice-over voices | no | Reads the built-in voice (Kokoro, offline on this computer): whether it is ready, why not when it is not, the default voice and speed from Settings, Voice, and its voices with id, name, language and group when it is ready. | | `formrec_live_destinations` | Live streaming destinations | yes, removes or overwrites | Where a studio take can stream while it records (YouTube, Twitch, LinkedIn, Facebook or a custom RTMP or RTMPS server). action "list": the destinations, with the stream key masked. "add": name, url (the ingest address, such as rtmps://a.rtmps.youtube.com:443/live2) and key. "update": id, and any of name, url, key, enabled (a missing key keeps the saved one). "remove": id. Stream keys are secrets: they are saved on this computer only, in a private file, and are never returned. A take streams to every enabled destination when it starts, and the record bar shows the state. | | `formrec_live_status` | Live streaming status | no | How the studio takes that streamed live are doing: per take (sessionId) the state (starting, live, reconnecting, failed, stopped), and per destination its state, the reason it is not live (an FFmpeg message, never a key), the seconds sent and the failed tries in a row. Read from the running app's status file, so updatedAt says how recent it is. Recording never depends on the stream. | | `formrec_mail_test` | Send a test email | yes, reaches outside FormREC | Send a short test email to an address through the email account the person set up in Settings, Email (their own SMTP server, Gmail or Outlook; no other service is involved). Use it to check that email works before relying on invitations, one-time codes and notifications. Fails with the reason (not set up, refused by the server) when it cannot send. Sends exactly one message. | @@ -116,6 +117,7 @@ The tools FormREC's feature modules add next to the core tools in tools.md: edit | `formrec_tunnel` | Public link through a tunnel | yes, reaches outside FormREC | Turn the public-link tunnel on or off, or ask where it stands. While it runs, shared recordings also have a public link (https://[tunnel host]/v/[shareId], listed first by formrec_share) that works from anywhere without a server; the recordings stay on this computer and the link works only while FormREC and the tunnel run. The provider (Cloudflare quick or named tunnel, Tailscale Funnel, ngrok, a custom command) is the person's choice in Settings, Public link. start waits for the address. A quick tunnel's address changes on every start. | | `formrec_unsaved_takes` | Unsaved takes | no | Studio takes that never became recordings (the app or tab closed before Save, a crash, a lost upload). Each has an id, title, tracks with their bytes, an estimated length, and live: true when it may still be recording. Nothing is deleted on its own; recover one with formrec_recover_take or discard it with formrec_discard_take. | | `formrec_variants` | Record variants of a walkthrough | yes, reaches outside FormREC | Record one walkthrough many times with different values: the walkthrough declares "variables": [{"name": "customer", "default": "Ada"}] and uses {{customer}} in titles, words, typed values, goto addresses and target text; pass the value sets (an array of {name: value}, or JSON or CSV text, or a valuesFile) and each becomes a recording of its own, linked to its source and recorded one after another (at most 50 a call). Give the walkthrough as an object or file, or the id of a recording made from it. Every set is checked before the first recording starts. Values are plain text: a variable cannot stand in a secret field, a value cannot hold a line break in a title or address, and a relative address cannot leave the walkthrough's site. Sends a progress notification per step, stops when cancelled. Check each result's failedSteps and error before reporting. | +| `formrec_voiceover` | Voice-over for a recording | yes | Reads or makes the spoken voice-over of a recording with the built-in voice (Kokoro). Each line starts at its chapter (its say text, or text given here) and is mixed into the player, exports and share renditions, with the recording's own sound ducked under it (Settings, Voice). Give only the recording to read its lines. text with stepId changes that line; text with atMs adds a line; notes turns speaker notes or a script into lines (a row starting m:ss lands at that time, other paragraphs go one per chapter in order); generate speaks every missing or changed line (all: true for every line, or stepId for one); voice and speed (0.5 to 2) set this recording's voice, or with stepId only that line's (null goes back to the recording's); on turns the voice-over on or off; remove clears one line; captions: true adds the spoken lines as WebVTT on the recording's timeline. | | `formrec_walkthrough_check` | Check a walkthrough is still current | yes, reaches outside FormREC | Replay a walkthrough headless without recording video and compare each step with what its last recording stored (the target's role, name, text and structure, and a picture hash): each step is same, changed (text, layout, appearance or page) or broken (target missing, action failed). It ignores anti-aliasing and clocks. Pass the walkthrough, or the id of a recording to use the walkthrough saved with it. The verdict is kept with the recording, which the library then marks out of date. Use formrec_walkthrough_rerecord to fix changed and broken steps. | | `formrec_walkthrough_format` | Walkthrough format | no | The full walkthrough format for recording ANY website (public sites without a codebase, signed-in sites, mobile emulation): every action, target, page setting, sign-in option, pacing and capture setting, the limits, and how to go from a plain-language goal to a recording. | | `formrec_walkthrough_freshness` | Which recordings are out of date | no | The recordings whose last freshness check found changed or broken steps, with the verdict. | @@ -479,6 +481,10 @@ No parameters. - `id`: string. recording id from formrec_list - `highlights` (optional): boolean. also show the picks (heuristic or AI) without making clips +### formrec_list_voices + +No parameters. + ### formrec_live_destinations - `action`: list|add|update|remove. @@ -789,6 +795,21 @@ No parameters. - `valuesFile` (optional): string. or a JSON or CSV file inside the allowed folders - `headed` (optional): boolean. +### formrec_voiceover + +- `recording`: string. the recording (from formrec_list) +- `stepId` (optional): string. a line, as this tool lists it (a chapter step id) +- `text` (optional): string. the words to speak +- `atMs` (optional): integer. where a new line starts, in ms on the recording +- `voice` (optional): any. a voice id from formrec_list_voices; with stepId, that line only +- `speed` (optional): any. 0.5 to 2; with stepId, that line only +- `notes` (optional): string. speaker notes or a script to make lines from +- `on` (optional): boolean. +- `generate` (optional): boolean. speak the lines now +- `all` (optional): boolean. with generate, speak every line again +- `remove` (optional): string. a line to clear +- `captions` (optional): boolean. add the spoken lines as WebVTT + ### formrec_walkthrough_check - `walkthrough` (optional): object. the walkthrough object diff --git a/.agents/skills/formrec-harness/references/tools.md b/.agents/skills/formrec-harness/references/tools.md index 1e84ff1..b9ebc07 100644 --- a/.agents/skills/formrec-harness/references/tools.md +++ b/.agents/skills/formrec-harness/references/tools.md @@ -94,7 +94,7 @@ Open one at `#/demo/` while FormREC runs (`formrec_demos` retur | Id | Title | Kind | Chapters | Point a person at it for | | --- | --- | --- | --- | --- | -| `self-tour` | A tour of FormREC | walkthrough | Home, The library, The studio, Marks carry code, A mark with code, Guests on this network, Made by an agent, The player | someone who wants to see what an agent-made walkthrough looks like, or how chapters carry code anchors | +| `self-tour` | A tour of FormREC | walkthrough | Home, The library, The studio, The Takes tab, Marks carry code, A mark with code, Guests on this network, Made by an agent, The player | someone who wants to see what an agent-made walkthrough looks like, or how chapters carry code anchors | | `studio-guest` | A studio take with a guest | studio | Mara opens the show, Ada answers | someone who wants to record a podcast or interview, or to see what guests and a track per source give them | | `podcast-episode` | A podcast episode with two speakers | studio | Welcome to Small Tracks, Why a track per voice, Levels before the take, Goodbye | someone planning a podcast or a two-person interview who wants to see the finished shape: tracks to edit apart and chapters to jump between | diff --git a/.claude/skills/formrec-harness/references/feature-tools.md b/.claude/skills/formrec-harness/references/feature-tools.md index b76920d..ecfa790 100644 --- a/.claude/skills/formrec-harness/references/feature-tools.md +++ b/.claude/skills/formrec-harness/references/feature-tools.md @@ -4,7 +4,7 @@ Generated from the FormREC MCP server by `formrec agents sync` (`npm run agents: The tools FormREC's feature modules add next to the core tools in tools.md: editing, transcripts, sharing, comments, the library, documents, integrations and the rest. Each carries a title and annotations; trust "Changes anything" and ask the person before a tool that removes or reaches outside FormREC. They take a recording id from `formrec_list` or `formrec_record` unless they say otherwise. -113 tools. +115 tools. ## Tools @@ -67,6 +67,7 @@ The tools FormREC's feature modules add next to the core tools in tools.md: edit | `formrec_library_tag` | Tag recordings | yes | Add and remove tags (lower case words; a leading # is dropped). Returns each recording's tags. | | `formrec_library_trash` | Move recordings to the Trash, restore or delete them | yes, removes or overwrites | action "trash" moves recordings to the Trash (restorable); "restore" brings them back where they were; "purge" deletes recordings in the Trash for good (all of the Trash when ids is omitted). The Trash empties itself after the number of days set in Settings. | | `formrec_list_clips` | List the clips of a recording | no | The clips made from a recording: id, title, the span of the source (ms), shape (9:16, 1:1, 16:9), length and player link. With highlights true, also the highlights that would be picked now, without making anything. | +| `formrec_list_voices` | Voice-over voices | no | Reads the built-in voice (Kokoro, offline on this computer): whether it is ready, why not when it is not, the default voice and speed from Settings, Voice, and its voices with id, name, language and group when it is ready. | | `formrec_live_destinations` | Live streaming destinations | yes, removes or overwrites | Where a studio take can stream while it records (YouTube, Twitch, LinkedIn, Facebook or a custom RTMP or RTMPS server). action "list": the destinations, with the stream key masked. "add": name, url (the ingest address, such as rtmps://a.rtmps.youtube.com:443/live2) and key. "update": id, and any of name, url, key, enabled (a missing key keeps the saved one). "remove": id. Stream keys are secrets: they are saved on this computer only, in a private file, and are never returned. A take streams to every enabled destination when it starts, and the record bar shows the state. | | `formrec_live_status` | Live streaming status | no | How the studio takes that streamed live are doing: per take (sessionId) the state (starting, live, reconnecting, failed, stopped), and per destination its state, the reason it is not live (an FFmpeg message, never a key), the seconds sent and the failed tries in a row. Read from the running app's status file, so updatedAt says how recent it is. Recording never depends on the stream. | | `formrec_mail_test` | Send a test email | yes, reaches outside FormREC | Send a short test email to an address through the email account the person set up in Settings, Email (their own SMTP server, Gmail or Outlook; no other service is involved). Use it to check that email works before relying on invitations, one-time codes and notifications. Fails with the reason (not set up, refused by the server) when it cannot send. Sends exactly one message. | @@ -116,6 +117,7 @@ The tools FormREC's feature modules add next to the core tools in tools.md: edit | `formrec_tunnel` | Public link through a tunnel | yes, reaches outside FormREC | Turn the public-link tunnel on or off, or ask where it stands. While it runs, shared recordings also have a public link (https://[tunnel host]/v/[shareId], listed first by formrec_share) that works from anywhere without a server; the recordings stay on this computer and the link works only while FormREC and the tunnel run. The provider (Cloudflare quick or named tunnel, Tailscale Funnel, ngrok, a custom command) is the person's choice in Settings, Public link. start waits for the address. A quick tunnel's address changes on every start. | | `formrec_unsaved_takes` | Unsaved takes | no | Studio takes that never became recordings (the app or tab closed before Save, a crash, a lost upload). Each has an id, title, tracks with their bytes, an estimated length, and live: true when it may still be recording. Nothing is deleted on its own; recover one with formrec_recover_take or discard it with formrec_discard_take. | | `formrec_variants` | Record variants of a walkthrough | yes, reaches outside FormREC | Record one walkthrough many times with different values: the walkthrough declares "variables": [{"name": "customer", "default": "Ada"}] and uses {{customer}} in titles, words, typed values, goto addresses and target text; pass the value sets (an array of {name: value}, or JSON or CSV text, or a valuesFile) and each becomes a recording of its own, linked to its source and recorded one after another (at most 50 a call). Give the walkthrough as an object or file, or the id of a recording made from it. Every set is checked before the first recording starts. Values are plain text: a variable cannot stand in a secret field, a value cannot hold a line break in a title or address, and a relative address cannot leave the walkthrough's site. Sends a progress notification per step, stops when cancelled. Check each result's failedSteps and error before reporting. | +| `formrec_voiceover` | Voice-over for a recording | yes | Reads or makes the spoken voice-over of a recording with the built-in voice (Kokoro). Each line starts at its chapter (its say text, or text given here) and is mixed into the player, exports and share renditions, with the recording's own sound ducked under it (Settings, Voice). Give only the recording to read its lines. text with stepId changes that line; text with atMs adds a line; notes turns speaker notes or a script into lines (a row starting m:ss lands at that time, other paragraphs go one per chapter in order); generate speaks every missing or changed line (all: true for every line, or stepId for one); voice and speed (0.5 to 2) set this recording's voice, or with stepId only that line's (null goes back to the recording's); on turns the voice-over on or off; remove clears one line; captions: true adds the spoken lines as WebVTT on the recording's timeline. | | `formrec_walkthrough_check` | Check a walkthrough is still current | yes, reaches outside FormREC | Replay a walkthrough headless without recording video and compare each step with what its last recording stored (the target's role, name, text and structure, and a picture hash): each step is same, changed (text, layout, appearance or page) or broken (target missing, action failed). It ignores anti-aliasing and clocks. Pass the walkthrough, or the id of a recording to use the walkthrough saved with it. The verdict is kept with the recording, which the library then marks out of date. Use formrec_walkthrough_rerecord to fix changed and broken steps. | | `formrec_walkthrough_format` | Walkthrough format | no | The full walkthrough format for recording ANY website (public sites without a codebase, signed-in sites, mobile emulation): every action, target, page setting, sign-in option, pacing and capture setting, the limits, and how to go from a plain-language goal to a recording. | | `formrec_walkthrough_freshness` | Which recordings are out of date | no | The recordings whose last freshness check found changed or broken steps, with the verdict. | @@ -479,6 +481,10 @@ No parameters. - `id`: string. recording id from formrec_list - `highlights` (optional): boolean. also show the picks (heuristic or AI) without making clips +### formrec_list_voices + +No parameters. + ### formrec_live_destinations - `action`: list|add|update|remove. @@ -789,6 +795,21 @@ No parameters. - `valuesFile` (optional): string. or a JSON or CSV file inside the allowed folders - `headed` (optional): boolean. +### formrec_voiceover + +- `recording`: string. the recording (from formrec_list) +- `stepId` (optional): string. a line, as this tool lists it (a chapter step id) +- `text` (optional): string. the words to speak +- `atMs` (optional): integer. where a new line starts, in ms on the recording +- `voice` (optional): any. a voice id from formrec_list_voices; with stepId, that line only +- `speed` (optional): any. 0.5 to 2; with stepId, that line only +- `notes` (optional): string. speaker notes or a script to make lines from +- `on` (optional): boolean. +- `generate` (optional): boolean. speak the lines now +- `all` (optional): boolean. with generate, speak every line again +- `remove` (optional): string. a line to clear +- `captions` (optional): boolean. add the spoken lines as WebVTT + ### formrec_walkthrough_check - `walkthrough` (optional): object. the walkthrough object diff --git a/.claude/skills/formrec-harness/references/tools.md b/.claude/skills/formrec-harness/references/tools.md index 1e84ff1..b9ebc07 100644 --- a/.claude/skills/formrec-harness/references/tools.md +++ b/.claude/skills/formrec-harness/references/tools.md @@ -94,7 +94,7 @@ Open one at `#/demo/` while FormREC runs (`formrec_demos` retur | Id | Title | Kind | Chapters | Point a person at it for | | --- | --- | --- | --- | --- | -| `self-tour` | A tour of FormREC | walkthrough | Home, The library, The studio, Marks carry code, A mark with code, Guests on this network, Made by an agent, The player | someone who wants to see what an agent-made walkthrough looks like, or how chapters carry code anchors | +| `self-tour` | A tour of FormREC | walkthrough | Home, The library, The studio, The Takes tab, Marks carry code, A mark with code, Guests on this network, Made by an agent, The player | someone who wants to see what an agent-made walkthrough looks like, or how chapters carry code anchors | | `studio-guest` | A studio take with a guest | studio | Mara opens the show, Ada answers | someone who wants to record a podcast or interview, or to see what guests and a track per source give them | | `podcast-episode` | A podcast episode with two speakers | studio | Welcome to Small Tracks, Why a track per voice, Levels before the take, Goodbye | someone planning a podcast or a two-person interview who wants to see the finished shape: tracks to edit apart and chapters to jump between | diff --git a/CHANGELOG.md b/CHANGELOG.md index 66d5b73..bbedca7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,37 @@ FormREC's releases, newest first. Versions are X.YY.Z; the release commit is last in its pull request and moves every version site together (`tests/version-sites.test.ts`). +## v0.11.0 · 2026-12-02 + +- A natural voice, built in: Kokoro, the same voice FormCut and FormMorpheus speak with, in place of the robotic Flite and eSpeak voices. + - Settings, Voice sets it up once: FormREC makes a Python environment of its own in the data folder (`voice/runtime`, from Python 3.10 to 3.13 on this computer) and downloads the Kokoro-82M model, about 340 MB, from the kokoro-onnx release on GitHub into `voice/models`, keeping it only when both files match their pinned SHA-256. A stopped download resumes. After that it works offline. Cancel and Remove are there too, and a computer the voice cannot run on (32-bit, Windows on Arm) is told so in the section. + - 54 voices, American and British English first; the default is Heart (`af_heart`), as in FormCut and FormMorpheus, with a speed from 0.5 to 2. + - Nothing GPL ships with FormREC: the runtime's phonemizer and eSpeak NG are installed by your own Python into that folder and run as a separate program, as in the other two apps. NOTICE.md lists the model and the runtime. +- Voice-over for any recording: the player's Voice-over tab makes one line per chapter from its text (a walkthrough's `say`, the Script mode's paragraphs), lines from your notes, and lines you add at a time. Each line starts at its chapter, can be listened to, edited and made again on its own, and says when it is not made yet, has changed or runs past its chapter. A recording can have its own voice and speed, and a line its own. + - The lines play in step in the player and the editor, and are mixed into every export and the share renditions, with the recording's own sound lowered under each line (Settings, Voice: Duck, the ducked level, and Even loudness at -16 LUFS). Captions from the lines are at `/api/voiceover//captions.vtt`. + - The Studio has a Voice tab with the voice, the speed and a preview. + - MCP: `formrec_list_voices` and `formrec_voiceover` (124 tools). + - Replace with speech in the editor and the AI avatar's voice-over speak with the built-in voice. `FORMREC_TTS` still names a program of your own. +- The demos speak with Kokoro: the podcast episode (Juno with Heart, Theo with Michael) and the studio take (Mara with Heart, Ada with Bella), at -16 LUFS. +- The Studio, and Screen, Camera and Audio only, without the long scroll: the tools are in an inspector with an icon rail (Source, Display, Phone, Camera, Sound, Scene, Prompter, Voice, Guests and captions, Live stream, Distractions, Takes), one group at a time, and each page remembers its last tab. Source, camera, microphone and Record are on screen at 1440 by 900 and 1280 by 800. The stage shows the preview, or what to do first with a Record now button; Screen shows the preview's size and frame rate, Camera has framing guides, and Audio only is a large scrolling waveform with the peak level. +- The Form shell, finished: + - The top bar ends with the agent button and FormPortal's gear, as in every Form app. The agent button opens and closes the agent dock and shows when it is open. + - Preferences floats over the window with its sections in a rail at its left and the wire to the open section, one section at a time; Esc or a click outside closes it. + - The agent dock shows: Preferences, Agents, Show the agent dock, View, Agent Dock and Cmd+J (Ctrl+J elsewhere). An outside agent's call that changes something waits for your Allow once, Always or Deny in the window, and Preferences, Agents lists what you allowed. Ask is the default: with no FormREC window open, an outside agent's changes (through `formrec mcp` or `formrec mcp --http`) are refused with what to do, until you open FormREC or set Outside agents to Allowed; reading still works. + - On macOS the window's content starts right of the traffic lights. +- FormREC is the name a person reads everywhere: the tour's narration and captions, the browser extension, the Android and iOS apps, the Figma plugin, the form.md connection, the integrations' names and labels (their API names, ids and headers are kept), the launchers, the notices and the guides. +- The tour (A tour of FormREC) is recorded again on the new Studio, now 87.4 s with nine chapters, and speaks its captions with Kokoro's Heart voice at -16 LUFS. +- Checks, run on Linux only: + - the type check of the server and the window, `npm run build`, `npm run notices:check` and `npm run agents:check` (124 tools) pass; + - the test files for what changed pass one at a time, among them demos, edit-api, ai-voice, agents, mcp-tools, mcp-new-tools-audit, notices, version-sites, renditions-edit, share-export, avatar-export, edit-web, edit-e2e, studio-e2e, studio-proof-e2e, voice-master-e2e, e2e-studio, studio-slides-e2e, live-e2e, desktop-native-panels, player-controls-e2e and the shell's browser tests; the full suite was not run; + - the window was checked in Chrome with the CPU slowed four times, at 1440 by 900 and 1280 by 800, dark and light: no layout shift on load, on opening Preferences and switching its sections, on switching the Studio's tabs, when the preview starts and when the dock opens and closes; + - the voice was checked by measurement, not by ear: the demos' and the tour's lines start at their caption times, at -16 LUFS without clipping, and an export carries the lines at the chapter times with the recording 12 dB lower under them. +- Known issues: + - macOS was not run: the traffic-light inset, the native menu bar and its Cmd+J and Cmd+, were checked with a stand-in for the desktop bridge only. + - The built-in voice was run on Linux only; its Windows and macOS Python paths follow FormMorpheus's and were not run. + - The macOS Shortcuts FormREC runs for Do not disturb keep their names "FormRec Focus On" and "FormRec Focus Off", because people made them under those names. + - The voice-over's cues are offered as captions at their own address; burnt-in captions on export still come from the transcript or captions.vtt. + ## v0.10.0 · 2026-12-01 - The Form shell, so FormREC looks and works like the rest of the family: diff --git a/NOTICE.md b/NOTICE.md index cb90476..246d0f3 100644 --- a/NOTICE.md +++ b/NOTICE.md @@ -37,12 +37,15 @@ Development only: typescript (Apache-2.0), vitest and @vitest/coverage-v8 (MIT), | File | Source | Licence | |---|---|---| -| `demos/self-tour/*` | recorded by FormREC from this repository (`scripts/make-demos.mjs`) | Apache-2.0 | -| `demos/studio-guest/*` | pictures generated with FFmpeg, voices synthesised with FFmpeg's flite filter (CMU Flite, BSD-style), recorded by FormREC; see its CREDITS.md | Apache-2.0 | +| `demos/self-tour/*` | recorded by FormREC from this repository (`scripts/make-demos.mjs`); since 0.11.0 the video carries a narration of its captions spoken with Kokoro-82M (Apache-2.0) through FormREC's built-in voice (`af_heart`); only the spoken audio ships, not the model or its runtime; see its CREDITS.md | Apache-2.0 | +| `demos/studio-guest/*` | pictures generated with FFmpeg, recorded by FormREC; the two microphone tracks spoken again in 0.11.0 with Kokoro-82M (Apache-2.0) through FormREC's built-in voice (`af_heart`, `af_bella`); only the spoken audio ships; see its CREDITS.md | Apache-2.0 | +| `demos/podcast-episode/*` | made by `scripts/make-podcast-demo.mjs`: pictures generated with FFmpeg, voices spoken with Kokoro-82M (Apache-2.0) through FormREC's built-in voice (`af_heart`, `am_michael`); only the spoken audio ships, not the model or its runtime; see its CREDITS.md | Apache-2.0 | | `assets/app-icon/*`, `src-tauri/icons/*` | FormREC's official app icons (tile, dark and light) from nodemode.ai, resized | all rights reserved by nodemode.ai; not covered by Apache-2.0 | | `web/brand/*` (including `phone-*.png`, the phone page's home screen icons), `extension/icons/*` | FormREC's official in-app mark (with drop shadow, dark and light) and app icon from nodemode.ai, cropped and resized | all rights reserved by nodemode.ai; not covered by Apache-2.0 | | `src/features/**`, `src/relay/**`, `src/apps/**`, `src/mail/**`, `src/wtdiff/**`, `shared/**`, `web/src/features/**`, `web/src/*-*.ts`, `web/styles/*`, `web/*.html`, `web/formrec-record-sdk.d.ts`, `extension/*` (but its icons), `web/src/formrec-sdk.ts`, `web/src/formrec-embed.ts`, `web/src/formrec-record-sdk.ts`, `relay/*.md` | written for FormREC; the zip reader and writer, the QR encoder, the person segmenter, the SMTP client, the PostgreSQL wire protocol, the JWT, OIDC, OAuth 2.1 and SCIM code are FormREC's own; icons are drawn inline as SVG | Apache-2.0 | | whisper.cpp and its models (not shipped) | MIT | transcription, used when the person installs whisper.cpp; a model (tiny to large-v3-turbo, from huggingface.co/ggerganov/whisper.cpp, or small.en-tdrz from huggingface.co/akashmjn/tinydiarize-whisper.cpp) is downloaded only on the person's click and checked against whisper.cpp's SHA-1 and its SHA-256 and size | +| Kokoro-82M voice model v1.0 (hexgrad, huggingface.co/hexgrad/Kokoro-82M), as the ONNX files `kokoro-v1.0.onnx` (SHA-256 beb0d1848dee9a49da392cc3df26958d46cfa35d321edf434f52949153f0df3a, 325505369 bytes) and `voices-v1.0.bin` (SHA-256 bca610b8308e8d99f32e6fe4197e7ec01679264efed0cac9140fe9c29f1fbf7d, 28214398 bytes) from the kokoro-onnx release `model-files-v1.1` on github.com (not shipped) | the built-in voice for voice-over lines and Replace with speech: downloaded into `/voice/models` only when the person chooses Set up in Settings, Voice, resumed after an interruption, and kept only when its size and SHA-256 match the values pinned in `src/features/voiceover/kokoro.ts` | Apache-2.0 | +| kokoro-onnx 0.6.1 (github.com/thewh1teagle/kokoro-onnx) with what pip installs for it: onnxruntime, numpy, phonemizer, espeakng-loader (which carries eSpeak NG) and their own dependencies (not shipped) | installed by the person's own Python 3.10 to 3.13 into a runtime of its own in `/voice/runtime` during that same setup, and run only as a separate program that is handed text and gives back a WAV; FormREC never imports, links or bundles any of it | MIT (kokoro-onnx, onnxruntime), BSD-3-Clause and others (numpy), GPL-3.0-or-later (phonemizer, eSpeak NG); because of the GPL parts none of this ships in or links with FormREC, which stays Apache-2.0 | | `web/vendor/rnnoise/rnnoise.wasm` | RNNoise (BSD-3-Clause; Jean-Marc Valin, Mozilla, Xiph.Org Foundation, Mark Borgerding) as built in @jitsi/rnnoise-wasm 0.2.1 (Apache-2.0), file `dist/rnnoise.wasm`, SHA-256 677147b9248aedc0a00de79dc090d1ecead37c08c8bb773a790da16109d2c487, with RNNoise's default model weights | BSD-3-Clause and Apache-2.0; both licence texts ship beside it (`COPYING-rnnoise.txt`, `LICENSE-rnnoise-wasm.txt`, `SOURCE.txt`); none of the package's JavaScript ships | | `tests/fixtures/saml/onelogin-2014-05-28.*`, `tests/fixtures/saml/verizon-idp-hub-2014-06-05.*` (tests only, not shipped) | signed SAML responses and their certificates from node-saml's test suite, github.com/node-saml/node-saml `test/tests.spec.ts` and `test/types.ts` | MIT (Copyright (c) 2012 Henri Bergius, (c) 2011 Michael Bosworth) | | `apps/android/gradlew`, `apps/android/gradlew.bat`, `apps/android/gradle/wrapper/*` (gradle-wrapper.jar SHA-256 7d3a4ac4de1c32b59bc6a4eb8ecb8e612ccd0cf1ae1e99f66902da64df296172) | the Gradle Wrapper 8.10.2 from gradle.org | Apache-2.0 | @@ -52,7 +55,7 @@ Development only: typescript (Apache-2.0), vitest and @vitest/coverage-v8 (MIT), | cloudflared (not shipped) | Apache-2.0 | the public-link tunnel, when the person installs it or clicks Download cloudflared (fetched from github.com/cloudflare/cloudflared releases into `/bin`); Tailscale and ngrok are used only when the person has them | | `apps/*` (the other products' halves of the integration apps) | written for FormREC | Apache-2.0. They name packages installed in the vendor's own tooling when the owner deploys them, not shipped by FormREC: `@hubspot/ui-extensions` (HubSpot's) and react (MIT) for the HubSpot card; `@forge/api`, `@forge/resolver`, `@forge/bridge` (Atlassian's Forge terms) and esbuild (MIT) for the Jira app; AndroidX, Jetpack Compose, WorkManager and kotlinx-coroutines (Apache-2.0) and Google Play services' code scanner (Google's terms) for the Android app; the iOS app uses system frameworks only; Zendesk's app SDK loads from Zendesk's CDN at run time | | `relay/Dockerfile` | written for FormREC, built on the official `node:22-slim` image (Node.js MIT; the image's Debian packages under their own licences) | Apache-2.0 | -| FFmpeg, flite, espeak-ng (not shipped) | LGPL/GPL (FFmpeg), BSD-style (flite), GPL (espeak-ng) | used when present on the computer for exports, posters, noise reduction and synthesised voice; FormREC runs them as separate programs | +| FFmpeg, flite, espeak-ng (not shipped) | LGPL/GPL (FFmpeg), BSD-style (flite), GPL (espeak-ng) | FFmpeg when present on the computer for exports, posters and noise reduction; flite or espeak-ng only when the person names one in `FORMREC_TTS` for Replace with speech (the built-in voice is Kokoro, above); FormREC runs them as separate programs | | `THIRD-PARTY-NOTICES.txt`, `setup/notices.mjs`, `setup/notices-crates.mjs`, `src/notices.ts` | generated from the npm, Rust and vendored components above (their own licence texts, unchanged); the generator and the route are written for FormREC | each text under its own licence; the generator Apache-2.0 | | `web/views.css`, `web/src/view-kit.ts`, `web/src/meter.ts` | written for FormREC; the icons are drawn inline as SVG | Apache-2.0 | | `web/src/dock/*`, `web/styles/dock.css` | the agent dock module 2.2.1 from FormVis and FormDeck (the same family), written into FormREC by hand with its imports adapted; the icons are drawn inline as SVG | Apache-2.0 | diff --git a/README.md b/README.md index 3bb5804..b2a1f7a 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@

- version v0.10.0 + version v0.11.0 Node 22+ TypeScript, no framework MCP @@ -128,7 +128,8 @@ What FormREC does that Loom's own pages do not offer, each checked against Loom' - **Short clips.** Highlights picked from the transcript, chapters and viewers become 9:16, 1:1 or 16:9 clips of 15 to 60 seconds with word-timed captions, the screen above the camera for vertical ones. Each clip is a recording of its own. - **Keystrokes on screen.** Shortcuts and named keys over the picture, from walkthroughs and from tab recordings in the extension when you turn it on; never the characters typed, never a secret. - **Scene chapters.** For recordings with little speech, chapters from where the screen changes, named from the page or the words at the top of the frame. -- **Agents.** 122 MCP tools, among them object tools that read up to 20 recordings and meetings in one call, and a prompt for an agent sent to Jira as a work item assigned to an agent. Since 0.9.0 you choose what a remote agent reaching this computer through the bridge is offered: everything, no destructive tools or read only, plus tool names to withhold; the bridge never hands out the app's own token. +- **Voice-over.** A natural built-in voice, Kokoro (54 voices, Heart by default), set up once from Settings, Voice and offline after that, as in FormCut and FormMorpheus. Each chapter's text becomes a line at the chapter's time, made, heard and made again one line at a time in the player's Voice-over tab, and mixed into exports and share links with the recording lowered under it. +- **Agents.** 124 MCP tools, among them object tools that read up to 20 recordings and meetings in one call, and a prompt for an agent sent to Jira as a work item assigned to an agent. Since 0.9.0 you choose what a remote agent reaching this computer through the bridge is offered: everything, no destructive tools or read only, plus tool names to withhold; the bridge never hands out the app's own token. - **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. diff --git a/THIRD-PARTY-NOTICES.txt b/THIRD-PARTY-NOTICES.txt index e907d94..0332047 100644 --- a/THIRD-PARTY-NOTICES.txt +++ b/THIRD-PARTY-NOTICES.txt @@ -1,6 +1,6 @@ -FormRec third-party notices +FormREC third-party notices -FormRec is Apache-2.0 (see LICENSE and NOTICE.md). This file holds the licence +FormREC is Apache-2.0 (see LICENSE and NOTICE.md). This file holds the licence texts of the third-party software that ships with it: the Node.js runtime of the desktop app, the npm packages its server runs, the vendored RNNoise module in the window, the Rust crates compiled into the desktop shell, and what the app diff --git a/apps/android/README.md b/apps/android/README.md index 4dc2e03..ade5683 100644 --- a/apps/android/README.md +++ b/apps/android/README.md @@ -1,7 +1,7 @@ -# FormRec for Android +# FormREC for Android A Kotlin app that records the phone's screen with MediaProjection (a foreground service of type `mediaProjection`, -`MediaRecorder` to MP4, a three-second countdown, pause and stop in the notification) and sends it to the paired FormRec +`MediaRecorder` to MP4, a three-second countdown, pause and stop in the notification) and sends it to the paired FormREC over the local network with WorkManager. The wire contract is `../mobile-api.md`; the server is `src/features/phone/` (`native.ts`). @@ -33,7 +33,7 @@ artifact" from Robolectric; run it again, the downloads are cached. `enqueue` asks WorkManager for a unique job that needs the network. * `SettingsTest`, `ScreenSizeAndManifestTest`: stored pairing and result; the screen size on Android 10; the service types and permissions in the merged manifest. -* `FormRecServerE2ETest`: the Kotlin client and `UploadWorker` against a real FormRec server: pairing by code with the +* `FormRecServerE2ETest`: the Kotlin client and `UploadWorker` against a real FormREC server: pairing by code with the certificate pinned (and a wrong fingerprint failing closed), the chunk answers (accepted, already held, ahead, not an MP4, unknown upload), a worker upload of a real two-slice MP4 into the library, a retry then success, resuming where the computer stopped, restarting when the computer forgot the upload, and an unrecoverable refusal being dropped. It is diff --git a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/FormRecClient.kt b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/FormRecClient.kt index 8ae273b..cb69ab4 100644 --- a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/FormRecClient.kt +++ b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/FormRecClient.kt @@ -55,7 +55,7 @@ class FormRecClient(private val host: String, private val port: Int, private val override fun checkServerTrusted(chain: Array, authType: String) { val seen = fingerprintOf(chain[0]) observed = seen - if (pinned != null && !seen.equals(pinned, ignoreCase = true)) throw CertificateException("This is not the computer FormRec was paired with: its certificate changed.") + if (pinned != null && !seen.equals(pinned, ignoreCase = true)) throw CertificateException("This is not the computer FormREC was paired with: its certificate changed.") } override fun getAcceptedIssuers(): Array = emptyArray() @@ -106,7 +106,7 @@ class FormRecClient(private val host: String, private val port: Int, private val /** Connect once and read the certificate's fingerprint, to show the person before they trust it. */ fun observeFingerprint(): String { runCatching { call("/phone/api/me") } - return observed ?: throw IOException("Could not reach the computer at $host. Is FormRec's phone switch on, on the same network?") + return observed ?: throw IOException("Could not reach the computer at $host. Is FormREC's phone switch on, on the same network?") } /** Exchange the six-digit code for the device's cookie: the `name=value` pair. */ diff --git a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/MainActivity.kt b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/MainActivity.kt index f3abaec..4fd33ae 100644 --- a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/MainActivity.kt +++ b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/MainActivity.kt @@ -54,7 +54,7 @@ private fun AppScreen() { val context = androidx.compose.ui.platform.LocalContext.current var pairing by remember { mutableStateOf(Settings.pairing(context)) } Column(Modifier.fillMaxSize().padding(20.dp), verticalArrangement = Arrangement.spacedBy(12.dp)) { - Text("FormRec", style = MaterialTheme.typography.headlineMedium) + Text("FormREC", style = MaterialTheme.typography.headlineMedium) val current = pairing if (current == null) PairingScreen { pairing = it; Settings.savePairing(context, it) } else RecordScreen(current) { pairing = null; Settings.savePairing(context, null) } @@ -75,7 +75,7 @@ private fun PairingScreen(onPaired: (Pairing) -> Unit) { val target = confirm if (target == null) { - Text("On your computer open FormRec, Home, Record from your phone, and turn it on. Scan the QR code, or paste the link.") + Text("On your computer open FormREC, Home, Record from your phone, and turn it on. Scan the QR code, or paste the link.") OutlinedTextField(link, { link = it }, Modifier.fillMaxWidth(), label = { Text("Link") }, singleLine = true, keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Uri)) OutlinedTextField(code, { code = it }, Modifier.fillMaxWidth(), label = { Text("Six-digit code (if the link has none)") }, singleLine = true, keyboardOptions = KeyboardOptions(keyboardType = KeyboardType.Number)) OutlinedTextField(name, { name = it }, Modifier.fillMaxWidth(), label = { Text("Name for this phone") }, singleLine = true) @@ -98,7 +98,7 @@ private fun PairingScreen(onPaired: (Pairing) -> Unit) { val (parsed, fingerprint) = target Text("Is this your computer?", style = MaterialTheme.typography.titleMedium) Text("${parsed.host}:${parsed.port}") - Text("Its certificate's fingerprint must match the one FormRec shows on your computer (Settings, Phone; the Studio's guest panel shows the start of it).") + Text("Its certificate's fingerprint must match the one FormREC shows on your computer (Settings, Phone; the Studio's guest panel shows the start of it).") Text(fingerprint, fontFamily = FontFamily.Monospace, style = MaterialTheme.typography.bodySmall) Button( onClick = { diff --git a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/Notifications.kt b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/Notifications.kt index ee2ad9a..e2e9e22 100644 --- a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/Notifications.kt +++ b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/Notifications.kt @@ -44,13 +44,13 @@ object Notifications { when (state) { is CaptureState.Countdown -> builder.setContentTitle("Recording starts in ${state.seconds}") .addAction(action(context, R.string.action_stop, CaptureService.ACTION_STOP, 3)) - CaptureState.Recording -> builder.setContentTitle("FormRec is recording your screen").setUsesChronometer(true) + CaptureState.Recording -> builder.setContentTitle("FormREC is recording your screen").setUsesChronometer(true) .addAction(action(context, R.string.action_pause, CaptureService.ACTION_PAUSE, 1)) .addAction(action(context, R.string.action_stop, CaptureService.ACTION_STOP, 3)) CaptureState.Paused -> builder.setContentTitle("Recording paused") .addAction(action(context, R.string.action_resume, CaptureService.ACTION_RESUME, 2)) .addAction(action(context, R.string.action_stop, CaptureService.ACTION_STOP, 3)) - CaptureState.Idle -> builder.setContentTitle("FormRec") + CaptureState.Idle -> builder.setContentTitle("FormREC") } return builder.build() } @@ -58,7 +58,7 @@ object Notifications { fun upload(context: Context, text: String): Notification = Notification.Builder(context, UPLOAD_CHANNEL) .setSmallIcon(R.drawable.ic_stat_record) - .setContentTitle("FormRec") + .setContentTitle("FormREC") .setContentText(text) .setContentIntent(open(context)) .setOngoing(true) diff --git a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/ScreenRecorder.kt b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/ScreenRecorder.kt index 558d432..45c879f 100644 --- a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/ScreenRecorder.kt +++ b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/ScreenRecorder.kt @@ -62,7 +62,7 @@ class ScreenRecorder( // Android 14: a callback must be registered before createVirtualDisplay, and a token makes one display only. projection.registerCallback(callback, Handler(Looper.getMainLooper())) display = projection.createVirtualDisplay( - "FormRec", width, height, density, + "FormREC", width, height, density, DisplayManager.VIRTUAL_DISPLAY_FLAG_AUTO_MIRROR, media.surface, null, null, ) media.start() diff --git a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/UploadWorker.kt b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/UploadWorker.kt index c58dabd..e1a7974 100644 --- a/apps/android/app/src/main/kotlin/ai/nodemode/formrec/UploadWorker.kt +++ b/apps/android/app/src/main/kotlin/ai/nodemode/formrec/UploadWorker.kt @@ -23,7 +23,7 @@ class UploadWorker(context: Context, params: WorkerParameters) : CoroutineWorker val pairing = Settings.pairing(applicationContext) for (entry in UploadQueue.pending(applicationContext)) { if (pairing == null) { - fail(entry, "FormRec is not paired with a computer. Pair it, then record again.") + fail(entry, "FormREC is not paired with a computer. Pair it, then record again.") continue } try { diff --git a/apps/android/app/src/main/res/values/strings.xml b/apps/android/app/src/main/res/values/strings.xml index 60abc3b..55c7919 100644 --- a/apps/android/app/src/main/res/values/strings.xml +++ b/apps/android/app/src/main/res/values/strings.xml @@ -1,6 +1,6 @@ - FormRec + FormREC Recording Sending Pause diff --git a/apps/figma/README.md b/apps/figma/README.md index b49e3d7..e4cb823 100644 --- a/apps/figma/README.md +++ b/apps/figma/README.md @@ -1,4 +1,4 @@ -# FormRec for Figma and FigJam +# FormREC for Figma and FigJam A plugin that lists your shared recordings and puts a recording on the canvas: one frame per step, in a row with auto layout, each with the step's picture, its title and its timestamped link (`?t=1m20s`). "Insert player link" adds the diff --git a/apps/figma/code.js b/apps/figma/code.js index af3efc9..789d8c4 100644 --- a/apps/figma/code.js +++ b/apps/figma/code.js @@ -19,7 +19,7 @@ const GAP = 24; const REGULAR = { family: 'Inter', style: 'Regular' }; const BOLD = { family: 'Inter', style: 'Bold' }; const STORAGE = 'formrec'; -figma.showUI(__html__, { width: 380, height: 560, themeColors: true, title: 'FormRec' }); +figma.showUI(__html__, { width: 380, height: 560, themeColors: true, title: 'FormREC' }); void figma.clientStorage.getAsync(STORAGE).then((saved) => { var _a, _b; const s = (saved !== null && saved !== void 0 ? saved : {}); diff --git a/apps/figma/code.ts b/apps/figma/code.ts index cf4a33b..47eb6be 100644 --- a/apps/figma/code.ts +++ b/apps/figma/code.ts @@ -26,7 +26,7 @@ type FromUi = | { type: 'place'; title: string; url: string; steps: PlaceStep[] } | { type: 'link'; title: string; url: string } -figma.showUI(__html__, { width: 380, height: 560, themeColors: true, title: 'FormRec' }) +figma.showUI(__html__, { width: 380, height: 560, themeColors: true, title: 'FormREC' }) void figma.clientStorage.getAsync(STORAGE).then((saved) => { const s = (saved ?? {}) as { base?: string; token?: string } diff --git a/apps/figma/manifest.json b/apps/figma/manifest.json index 73f2075..564944b 100644 --- a/apps/figma/manifest.json +++ b/apps/figma/manifest.json @@ -1,5 +1,5 @@ { - "name": "FormRec", + "name": "FormREC", "id": "0000000000000000000", "api": "1.0.0", "main": "code.js", @@ -8,7 +8,7 @@ "documentAccess": "dynamic-page", "networkAccess": { "allowedDomains": ["https://relay.example.com"], - "reasoning": "Lists your FormRec recordings and loads each step's picture from your own FormRec relay or tunnel address.", + "reasoning": "Lists your FormREC recordings and loads each step's picture from your own FormREC relay or tunnel address.", "devAllowedDomains": ["http://localhost:8780"] } } diff --git a/apps/figma/ui.html b/apps/figma/ui.html index f1a16e3..ca8aeb1 100644 --- a/apps/figma/ui.html +++ b/apps/figma/ui.html @@ -2,7 +2,7 @@ -FormRec +FormREC -

FormRec

- +

FormREC

+ @@ -58,9 +58,9 @@

FormRec

} function json(path) { return api(path).then(function (r) { - if (r.status === 401) throw new Error('The token is not right. Copy it again from FormRec Settings, Apps, Figma.'); + if (r.status === 401) throw new Error('The token is not right. Copy it again from FormREC Settings, Apps, Figma.'); if (r.status === 403) throw new Error('That recording is protected, so its pictures stay hidden.'); - if (!r.ok) throw new Error('FormRec answered ' + r.status + '.'); + if (!r.ok) throw new Error('FormREC answered ' + r.status + '.'); return r.json(); }); } @@ -86,7 +86,7 @@

FormRec

function render(recordings) { list.textContent = ''; - if (recordings.length === 0) { var none = document.createElement('li'); none.textContent = 'No shared recordings yet. Share one in FormRec first.'; list.appendChild(none); return; } + if (recordings.length === 0) { var none = document.createElement('li'); none.textContent = 'No shared recordings yet. Share one in FormREC first.'; list.appendChild(none); return; } recordings.forEach(function (item) { var li = document.createElement('li'); var b = document.createElement('button'); @@ -102,7 +102,7 @@

FormRec

} loadBtn.addEventListener('click', function () { - if (!root() || !token.value.trim()) { say('Enter the FormRec address and the plugin token.', true); return; } + if (!root() || !token.value.trim()) { say('Enter the FormREC address and the plugin token.', true); return; } save(); busy(true); say('Loading'); json('recent').then(function (r) { render(r.recordings); say(''); }, function (e) { say(e.message, true); }).then(function () { busy(false); }); }); diff --git a/apps/formmd/README.md b/apps/formmd/README.md index 0258240..cdaab66 100644 --- a/apps/formmd/README.md +++ b/apps/formmd/README.md @@ -1,26 +1,26 @@ -# FormRec for form.md +# FormREC for form.md form.md is the Form family's workspace: pages, databases and realtime editing for people and agents, one Go binary -with its web client embedded (default address `http://127.0.0.1:8750`). FormRec publishes a recording to it as a page. +with its web client embedded (default address `http://127.0.0.1:8750`). FormREC publishes a recording to it as a page. Nothing is installed inside form.md; this folder is the guide, and `integration.json` describes the connection. ## 1. Publish to form.md (Settings, Integrations, form.md) 1. In form.md, open Account settings, API tokens, and make a personal API token that can write (`fmd_...`). -2. In FormRec, Settings, Integrations, form.md: enter form.md's address, paste the token (it is kept in your data +2. In FormREC, Settings, Integrations, form.md: enter form.md's address, paste the token (it is kept in your data folder, `integrations/connections.json`, readable only by you, and never shown again in full), press **Load workspaces**, choose the workspace, optionally paste a page link to put recordings under, and Save. **Test** checks that the token signs in, may write, and sees the workspace and the parent page. 3. A recording's **Send to** menu, `POST /api/integrations/send/` `{ "to": "formmd" }` and the MCP tool `formrec_export_page` with `publish: "formmd"` make the page and return its link. Publishing the same recording - again replaces the body of the same page (FormRec keeps the page id in the recording's folder, `formmd.json`); if + again replaces the body of the same page (FormREC keeps the page id in the recording's folder, `formmd.json`); if the page was deleted in form.md a new one is made. The address may be `https` anywhere, or `http` on this computer or the local network (loopback, private and link-local addresses, `.local` names). A token sent over plain http crosses the network unencrypted: use https beyond your own computer. -What FormRec calls (form.md serves the reference at `/api/docs`): +What FormREC calls (form.md serves the reference at `/api/docs`): | Call | Why | |---|---| @@ -38,14 +38,14 @@ and, if you chose it, **Transcript** (each segment a timestamped link). form.md turns a link on its own line into a **bookmark card** (a Markdown line `` becomes a `bookmark` block), and its editor fills the card with the page's title, description, picture and site name from the link's Open Graph tags (`og:title`, `og:description`, `og:image`, `og:site_name`, falling back to `twitter:*` and ``) through its own -unfurler. Two limits come from form.md, not from FormRec: +unfurler. Two limits come from form.md, not from FormREC: - The unfurler refuses loopback and private addresses unless form.md runs with `FORMMD_FETCH_PRIVATE=1`. A share link that only opens on this computer or the local network stays a plain card with the address; a share through the relay or the tunnel (Settings, Sharing) gets the full card. - A card is a link, not a player. form.md embeds only the providers it knows (YouTube, Vimeo, Loom and others), or a page that allows framing when the person chooses Embed for a pasted `https` link in the editor; Markdown cannot - ask for that. FormRec's player page (`/e/<id>`) allows framing, so Embed in the editor can play it inline. + ask for that. FormREC's player page (`/e/<id>`) allows framing, so Embed in the editor can play it inline. ## 3. This server's half (`/apps/formmd/...`) diff --git a/apps/formmd/integration.json b/apps/formmd/integration.json index 5e6eced..5ddbc71 100644 --- a/apps/formmd/integration.json +++ b/apps/formmd/integration.json @@ -1,5 +1,5 @@ { - "name": "FormRec", + "name": "FormREC", "kind": "api-token-connection", "target": "form.md", "defaultAddress": "http://127.0.0.1:8750", diff --git a/apps/github/INSTALL.md b/apps/github/INSTALL.md index ec31f74..8937edd 100644 --- a/apps/github/INSTALL.md +++ b/apps/github/INSTALL.md @@ -1,8 +1,8 @@ -# FormRec for GitHub +# FormREC for GitHub -A FormRec link in an issue, a pull request or a comment gets one comment from the app: the animated preview linked to the recording, its title and length, the summary and the chapters as links that open the recording at that moment. GitHub cannot play a video inside a comment, so the animated preview and the chapter links are the inline play. A recording whose share hides previews gets only its link. +A FormREC link in an issue, a pull request or a comment gets one comment from the app: the animated preview linked to the recording, its title and length, the summary and the chapters as links that open the recording at that moment. GitHub cannot play a video inside a comment, so the animated preview and the chapter links are the inline play. A recording whose share hides previews gets only its link. -You need FormRec reachable from the internet (the relay, or the share listener while it is public) at an https address, called `PUBLIC_HOST` below. +You need FormREC reachable from the internet (the relay, or the share listener while it is public) at an https address, called `PUBLIC_HOST` below. ## 1. Register the app (manifest flow) @@ -15,14 +15,14 @@ You need FormRec reachable from the internet (the relay, or the share listener w (You can also create the app by hand in Settings, Developer settings, GitHub Apps, with the same permissions, events and webhook address.) -## 2. Give FormRec the app's details +## 2. Give FormREC the app's details -In FormRec, Settings, Apps, GitHub: set App ID (`id`), Private key (`pem`) and Webhook secret (`webhook_secret`). For GitHub Enterprise Server, set API address to `https://<host>/api/v3`. +In FormREC, Settings, Apps, GitHub: set App ID (`id`), Private key (`pem`) and Webhook secret (`webhook_secret`). For GitHub Enterprise Server, set API address to `https://<host>/api/v3`. ## 3. Install the app -On the app's page choose Install App and pick the repositories. Paste a FormRec share link into an issue; the comment appears in a few seconds. Editing the issue or adding another link updates the same comment. +On the app's page choose Install App and pick the repositories. Paste a FormREC share link into an issue; the comment appears in a few seconds. Editing the issue or adding another link updates the same comment. -How it authenticates: FormRec signs an RS256 JWT with the private key (`iss` the App ID, `iat` a minute in the past, `exp` under ten minutes), exchanges it at `POST /app/installations/{id}/access_tokens` for an installation token that lasts an hour, and calls the REST API with it. Every delivery's `X-Hub-Signature-256` is checked against the webhook secret before anything is read. +How it authenticates: FormREC signs an RS256 JWT with the private key (`iss` the App ID, `iat` a minute in the past, `exp` under ten minutes), exchanges it at `POST /app/installations/{id}/access_tokens` for an installation token that lasts an hour, and calls the REST API with it. Every delivery's `X-Hub-Signature-256` is checked against the webhook secret before anything is read. Sources: GitHub docs, "Registering a GitHub App from a manifest", "Generating a JSON Web Token (JWT) for a GitHub App", "Validating webhook deliveries", REST "Create an installation access token for an app". diff --git a/apps/github/app-manifest.json b/apps/github/app-manifest.json index 0cdbf9a..c37b6c3 100644 --- a/apps/github/app-manifest.json +++ b/apps/github/app-manifest.json @@ -1,7 +1,7 @@ { - "name": "FormRec", + "name": "FormREC", "url": "https://PUBLIC_HOST", - "description": "Plays FormRec recordings inline in issues and pull requests: an animated preview, chapters and the summary.", + "description": "Plays FormREC recordings inline in issues and pull requests: an animated preview, chapters and the summary.", "hook_attributes": { "url": "https://PUBLIC_HOST/apps/github/webhook", "active": true diff --git a/apps/github/register.html b/apps/github/register.html index 4f6ee07..e1824f7 100644 --- a/apps/github/register.html +++ b/apps/github/register.html @@ -2,12 +2,12 @@ <html lang="en"> <head> <meta charset="utf-8"> -<title>Register the FormRec GitHub App +Register the FormREC GitHub App -

Register the FormRec GitHub App

+

Register the FormREC GitHub App

Open this file from your computer. It posts the manifest in app-manifest.json to GitHub, which asks you to confirm.

diff --git a/apps/gitlab/INSTALL.md b/apps/gitlab/INSTALL.md index fac8915..54fb990 100644 --- a/apps/gitlab/INSTALL.md +++ b/apps/gitlab/INSTALL.md @@ -1,8 +1,8 @@ -# FormRec for GitLab +# FormREC for GitLab -GitLab shows a link to a video file as a player inside Markdown. When an issue, a merge request or a comment contains a FormRec link, the app posts one note: the recording playing inline when the share plays without a gate, otherwise the animated preview, then the chapters as links. A share that hides previews gets only its link. +GitLab shows a link to a video file as a player inside Markdown. When an issue, a merge request or a comment contains a FormREC link, the app posts one note: the recording playing inline when the share plays without a gate, otherwise the animated preview, then the chapters as links. A share that hides previews gets only its link. -You need FormRec reachable from the internet at an https address, `PUBLIC_HOST` below. +You need FormREC reachable from the internet at an https address, `PUBLIC_HOST` below. 1. Choose a secret token (a long random string). 2. In the project, Settings, Webhooks, Add new webhook: @@ -10,7 +10,7 @@ You need FormRec reachable from the internet at an https address, `PUBLIC_HOST` - Secret token: the string from step 1 (GitLab sends it in `X-Gitlab-Token`). - Triggers: Comments, Issues events, Merge request events. 3. Create a project access token (or a personal access token) with the `api` scope and the Developer role or higher, so the app can create and update notes. -4. In FormRec, Settings, Apps, GitLab: set Webhook secret token and Access token. For a self-managed GitLab set API address to `https:///api/v4`. -5. Paste a FormRec link in an issue. The note appears in a few seconds; later links in the same issue update the same note. +4. In FormREC, Settings, Apps, GitLab: set Webhook secret token and Access token. For a self-managed GitLab set API address to `https:///api/v4`. +5. Paste a FormREC link in an issue. The note appears in a few seconds; later links in the same issue update the same note. Sources: GitLab docs, "Webhooks" and "Webhook events" (X-Gitlab-Token, X-Gitlab-Event: Note Hook, Issue Hook, Merge Request Hook), "Notes API" (POST and PUT on issues and merge requests, PRIVATE-TOKEN). diff --git a/apps/google/Code.gs b/apps/google/Code.gs index 8faceda..3a3e04a 100644 --- a/apps/google/Code.gs +++ b/apps/google/Code.gs @@ -12,7 +12,7 @@ var ORANGE = '#f97316'; function relayBase_() { var url = PropertiesService.getScriptProperties().getProperty('RELAY_URL'); - if (!url) throw new Error('Set the RELAY_URL script property to your FormRec relay address.'); + if (!url) throw new Error('Set the RELAY_URL script property to your FormREC relay address.'); return url.replace(/\/+$/, ''); } @@ -27,13 +27,13 @@ function call_(route, params) { muteHttpExceptions: true }); var body = JSON.parse(response.getContentText() || '{}'); - if (response.getResponseCode() !== 200) throw new Error(body.error || ('FormRec answered ' + response.getResponseCode())); + if (response.getResponseCode() !== 200) throw new Error(body.error || ('FormREC answered ' + response.getResponseCode())); return body; } function errorCard_(error) { return CardService.newCardBuilder() - .setHeader(CardService.newCardHeader().setTitle('FormRec')) + .setHeader(CardService.newCardHeader().setTitle('FormREC')) .addSection(CardService.newCardSection().addWidget(CardService.newTextParagraph().setText(String(error.message || error)))) .build(); } @@ -44,9 +44,9 @@ function openLinkButton_(text, url) { function onHomepage() { return CardService.newCardBuilder() - .setHeader(CardService.newCardHeader().setTitle('FormRec')) + .setHeader(CardService.newCardHeader().setTitle('FormREC')) .addSection(CardService.newCardSection().addWidget(CardService.newTextParagraph().setText( - 'Insert recordings in Gmail, record for a Calendar event, and paste FormRec links into Docs, Sheets and Slides.'))) + 'Insert recordings in Gmail, record for a Calendar event, and paste FormREC links into Docs, Sheets and Slides.'))) .build(); } @@ -65,7 +65,7 @@ function onGmailCompose() { if (data.recordings.length === 0) section.addWidget(CardService.newTextParagraph().setText('No shared recordings yet.')); var record = CardService.newCardSection().addWidget(openLinkButton_('Record new', relayBase_() + '/apps/google/open?link=' + encodeURIComponent(data.recorder))); - return [CardService.newCardBuilder().setHeader(CardService.newCardHeader().setTitle('FormRec recordings')).addSection(section).addSection(record).build()]; + return [CardService.newCardBuilder().setHeader(CardService.newCardHeader().setTitle('FormREC recordings')).addSection(section).addSection(record).build()]; } catch (e) { return [errorCard_(e)]; } @@ -95,7 +95,7 @@ function onCalendarEventOpen(e) { } var data = call_('event', { eventId: eventId, start: start, title: title }); return CardService.newCardBuilder() - .setHeader(CardService.newCardHeader().setTitle('FormRec')) + .setHeader(CardService.newCardHeader().setTitle('FormREC')) .addSection(CardService.newCardSection() .addWidget(CardService.newTextParagraph().setText(data.title)) .addWidget(openLinkButton_('Record for this meeting', data.openUrl))) @@ -112,7 +112,7 @@ function onLinkPreview(e) { try { info = call_('preview', { url: url }); } catch (err) { - info = { title: 'FormRec recording', summary: '', durationMs: 0 }; + info = { title: 'FormREC recording', summary: '', durationMs: 0 }; } var section = CardService.newCardSection(); if (info.posterUrl) section.addWidget(CardService.newImage().setImageUrl(info.posterUrl).setAltText(info.title)); diff --git a/apps/google/INSTALL.md b/apps/google/INSTALL.md index a486810..7cd50a3 100644 --- a/apps/google/INSTALL.md +++ b/apps/google/INSTALL.md @@ -1,10 +1,10 @@ -# FormRec for Google Workspace: install +# FormREC for Google Workspace: install -The add-on is an Apps Script project (this folder) that calls your FormRec relay at `https:///apps/google/...` +The add-on is an Apps Script project (this folder) that calls your FormREC relay at `https:///apps/google/...` with the Google-signed ID token of the person using it. The relay verifies the token (signature, issuer, audience, expiry, verified email, optional domain) before it answers. -## 1. Settings in FormRec +## 1. Settings in FormREC Settings, Apps, Google Workspace: @@ -34,8 +34,8 @@ Google Cloud console, Google Workspace Marketplace SDK, App Configuration: visib ## Notes -- Deep links (`formrec://...`) cannot be opened directly from an add-on card, which allows https links only, so the buttons open `https:///apps/google/open?link=...`, a small page that hands the link to the FormRec app on that person's computer. -- A share that hides previews shows as "FormRec recording" with no picture in chips, the picker and emails. +- Deep links (`formrec://...`) cannot be opened directly from an add-on card, which allows https links only, so the buttons open `https:///apps/google/open?link=...`, a small page that hands the link to the FormREC app on that person's computer. +- A share that hides previews shows as "FormREC recording" with no picture in chips, the picker and emails. - Not verified without a Google account: the OAuth consent screen and the Marketplace review. ## Google documentation for each manifest field diff --git a/apps/google/appsscript.json b/apps/google/appsscript.json index 02042e6..1c6d527 100644 --- a/apps/google/appsscript.json +++ b/apps/google/appsscript.json @@ -15,7 +15,7 @@ "urlFetchWhitelist": ["https://RELAY_HOST/apps/google/"], "addOns": { "common": { - "name": "FormRec", + "name": "FormREC", "logoUrl": "https://LOGO_HOST/formrec-mark.png", "layoutProperties": { "primaryColor": "#f97316" }, "useLocaleFromApp": true, @@ -24,7 +24,7 @@ }, "gmail": { "composeTrigger": { - "selectActions": [{ "text": "Insert a FormRec recording", "runFunction": "onGmailCompose" }], + "selectActions": [{ "text": "Insert a FormREC recording", "runFunction": "onGmailCompose" }], "draftAccess": "NONE" } }, @@ -37,7 +37,7 @@ { "runFunction": "onLinkPreview", "patterns": [{ "hostPattern": "RELAY_HOST", "pathPrefix": "v" }], - "labelText": "FormRec recording", + "labelText": "FormREC recording", "logoUrl": "https://LOGO_HOST/formrec-mark.png" } ] @@ -47,7 +47,7 @@ { "runFunction": "onLinkPreview", "patterns": [{ "hostPattern": "RELAY_HOST", "pathPrefix": "v" }], - "labelText": "FormRec recording", + "labelText": "FormREC recording", "logoUrl": "https://LOGO_HOST/formrec-mark.png" } ] @@ -57,7 +57,7 @@ { "runFunction": "onLinkPreview", "patterns": [{ "hostPattern": "RELAY_HOST", "pathPrefix": "v" }], - "labelText": "FormRec recording", + "labelText": "FormREC recording", "logoUrl": "https://LOGO_HOST/formrec-mark.png" } ] diff --git a/apps/hubspot/INSTALL.md b/apps/hubspot/INSTALL.md index fb34fa2..625e5c4 100644 --- a/apps/hubspot/INSTALL.md +++ b/apps/hubspot/INSTALL.md @@ -1,8 +1,8 @@ -# FormRec for HubSpot +# FormREC for HubSpot -A card on Contact and Deal records (the recordings the contact watched, with links to play them, and "Send a recording"), and a "Watched a FormRec" entry on the contact timeline whenever a known person watches. +A card on Contact and Deal records (the recordings the contact watched, with links to play them, and "Send a recording"), and a "Watched a FormREC" entry on the contact timeline whenever a known person watches. -You need the HubSpot CLI 8.4.0 or later (`hs`), a FormRec relay reachable over HTTPS, and a HubSpot developer account. +You need the HubSpot CLI 8.4.0 or later (`hs`), a FormREC relay reachable over HTTPS, and a HubSpot developer account. ## 1. Point the project at your relay @@ -28,12 +28,12 @@ curl -X POST -H "Content-Type: application/json" -d @timeline/watched-a-formrec. "https://api.hubapi.com/crm/v3/timeline//event-templates?hapikey=" ``` -The response has the template `id`. +The response has the template `id`. FormREC finds the template by that `id` only, so a template made before 0.11.0 under the name "Watched a FormRec" keeps working: keep its `id`, and rename it in HubSpot if you like. -## 4. Configure FormRec +## 4. Configure FormREC -In FormRec, Settings, HubSpot: enter the Client ID, the Client secret and the template `id`. Then open `https:///apps/hubspot/connect` and approve the install. The client secret also verifies the signature of every card request (X-HubSpot-Signature-v3). +In FormREC, Settings, HubSpot: enter the Client ID, the Client secret and the template `id`. Then open `https:///apps/hubspot/connect` and approve the install. The client secret also verifies the signature of every card request (X-HubSpot-Signature-v3). ## 5. Add the card -Open a Contact or Deal, then Customize record, and add the FormRec card to a tab. +Open a Contact or Deal, then Customize record, and add the FormREC card to a tab. diff --git a/apps/hubspot/src/app/app-hsmeta.json b/apps/hubspot/src/app/app-hsmeta.json index 49d9cbb..d352465 100644 --- a/apps/hubspot/src/app/app-hsmeta.json +++ b/apps/hubspot/src/app/app-hsmeta.json @@ -2,8 +2,8 @@ "uid": "formrec_hubspot_app", "type": "app", "config": { - "description": "Shows which FormRec recordings a contact watched, lets you send one, and puts a Watched a FormRec entry on the contact timeline.", - "name": "FormRec", + "description": "Shows which FormREC recordings a contact watched, lets you send one, and puts a Watched a FormREC entry on the contact timeline.", + "name": "FormREC", "distribution": "private", "auth": { "type": "oauth", diff --git a/apps/hubspot/src/app/cards/FormRecCard.jsx b/apps/hubspot/src/app/cards/FormRecCard.jsx index 142e406..8bce383 100644 --- a/apps/hubspot/src/app/cards/FormRecCard.jsx +++ b/apps/hubspot/src/app/cards/FormRecCard.jsx @@ -47,13 +47,13 @@ const FormRecCard = ({ context, actions }) => { } } - if (failed) return The FormRec relay did not answer. Check the app's connection in FormRec Settings. + if (failed) return The FormREC relay did not answer. Check the app's connection in FormREC Settings. if (!data) return return ( Watched - {data.watched.length === 0 ? Nobody on this record has watched a FormRec recording yet. : null} + {data.watched.length === 0 ? Nobody on this record has watched a FormREC recording yet. : null} {data.watched.map((r) => ( {r.title} @@ -65,7 +65,7 @@ const FormRecCard = ({ context, actions }) => { Send a recording {data.recent.length === 0 ? ( - No shared recordings yet. Share one in FormRec first. + No shared recordings yet. Share one in FormREC first. ) : (