Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
ba6512e
feat(capture): resize annotations and glide the target highlight
imnakul Nov 19, 2026
50c5bf3
feat(capture): toolbar placement, pinned drawings, browser detection
imnakul Nov 19, 2026
ca91ad9
fix(detection): wake Chromium page accessibility before scanning
imnakul Nov 19, 2026
9492953
feat(extension): CapKit Inspector with spacing, styles and source loc…
imnakul Nov 19, 2026
7fe040b
feat(capture): browser link and extension-based detection and redaction
imnakul Nov 19, 2026
7006641
feat(notes): note pins, Markdown handoff and Notes library
imnakul Nov 19, 2026
724db6a
fix(devtools): rework notes guard, fallback box, settings and popup copy
imnakul Nov 19, 2026
65f3781
docs(devtools): record browser devtools in README, roadmap, status, d…
imnakul Nov 19, 2026
66c9ecb
fix(extension): request site access from the popup click and start th…
imnakul Nov 19, 2026
57b40c3
fix(devtools): find the page in Aside for screenshot highlights, foll…
imnakul Nov 19, 2026
b70e862
fix(capture): skip tiling-manager overlays when finding the window un…
imnakul Nov 20, 2026
3dcb5b4
feat(notes): open a saved note in full, and load note screenshots
imnakul Nov 20, 2026
0759fdf
feat(capture): C/S/A deliver notes, number keys pick tools, pins edit…
imnakul Nov 20, 2026
55edd5d
fix(notes): move a pin's comment with the pin; Geist Mono shortcut ba…
imnakul Nov 20, 2026
72c8524
fix(settings): make the toolbar show/hide switches clickable
imnakul Nov 20, 2026
c040da2
fix(extension): reconnect to CapKit after the worker is suspended
imnakul Nov 20, 2026
fd72e3b
chore(release): v0.4.0 with signed auto-updates
imnakul Nov 20, 2026
3744369
fix(ci): track the extension build script
imnakul Nov 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ jobs:
- name: Test
run: pnpm test

- name: Build browser extension
run: pnpm ext:build

- name: Verify native application
run: |
cargo fmt --manifest-path apps/desktop/src-tauri/Cargo.toml --check
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ docs/*
!docs/specs/
docs/specs/*
!docs/specs/capture-copy-and-save.md
scripts
/scripts
.gitignore
CHANGELOG.md
AGENTS.md
Expand Down
25 changes: 22 additions & 3 deletions CHANGELOG-PUBLIC.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,39 @@

User-facing changes only, grouped by date under Added / Improved / Fixed.

## Unreleased — 2026-11-19
## 0.4.0 — 2026-11-20

### Added

- CapKit can update itself. It checks GitHub once when it starts, tells you when a new version is ready, and installs only when you click Install and restart. You can turn the check off in Settings → General.
- The CapKit Inspector extension now uses the accent colour you chose in CapKit.
- Developer tools (off by default): link the CapKit Inspector browser extension to see exact page elements, find sensitive text precisely, and pin numbered notes on a page. Notes copy as Markdown with a screenshot and are kept in a new Notes tab.
- CapKit can update itself. It checks GitHub once when it starts, tells you when a new version is ready, and installs only when you click Install and restart. You can turn the check off in Settings → General. Install 0.4.0 by hand once; later versions arrive through the app.
- Copy any capture from the Screenshots page, and drag it straight into another app.
- Choose how the capture overlay appears: Dim and rise, Fade in, or Fade in and out.
- Capture toolbar groups open when you click them and remember the last tool you used in each group.
- Settings → Screenshots lets you show or hide each finishing action (Copy, Save, Pin, Showcase and more) and choose whether each tool and action sits in the horizontal or the vertical toolbar.

### Improved

- Press 1–9 and 0 to pick a tool in the capture toolbar, and V for Select. Each button shows its number in the corner, like C, S and A.
- Copy, Save and Copy & Save (C, S, A) now deliver your note when the capture has pins, so the separate note buttons are gone.
- Click a note pin with the Select tool to edit its comment, and drag the pin to move its comment with it.
- The capture toolbar is a single card, with the colour and size row only for tools that use them.
- Only one CapKit runs at a time; opening it again brings the existing window forward.
- Shapes, arrows, pen strokes and highlights can be resized: select one and drag any of its eight handles, or focus a handle and use the arrow keys.
- The highlight that follows your pointer before you select now glides smoothly from one area to the next. It jumps instantly when Windows animation effects are off.
- Folder paths in Settings no longer start with `\\?\`.
- The capture overlay fades in and out. The other overlay animations and their setting are gone.
- Drawings stay where they are on screen when you move or resize the capture area.

### Fixed

- The CapKit Inspector extension reconnects by itself after CapKit restarts, instead of staying disconnected until you open its popup.
- The show/hide switches in Settings → Screenshots (tools and finishing actions) respond to clicks again.
- Saved notes show their screenshot again in the Notes tab.
- Click a saved note to read all of it: the full screenshot and every pin's comment and details.
- Detection works again when a tiling window manager such as FancyWM is running. Before, it found nothing in tiled windows.
- Screenshots in Aside now highlight exact page elements when the CapKit Inspector extension is linked.
- Detection mode finds parts of web pages in Chrome, Edge and other Chromium browsers again, not just the browser's own buttons.

## Earlier — 2026-10-29

Expand Down
3 changes: 3 additions & 0 deletions PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ Copy actions write the resulting image to the Windows clipboard. User-initiated
Core screenshot capture, editing, drawing, recording and export run locally and do not require a CapKit cloud account. This release does not include a built-in capture-upload service, application analytics, or automatic remote diagnostic uploads in the inspected production application. Microsoft Edge WebView2 and Windows are external components with their own update, diagnostic and privacy settings. Files saved in a folder managed by OneDrive or another synchronization service may be synchronized by that service. Those services operate under their own terms and controls.


## Developer tools and the browser extension
Developer tools is off by default. When you turn it on, CapKit listens on 127.0.0.1 only (your own computer) and accepts connections only from a browser extension you paired with a one-time code. The CapKit Inspector extension reads page content only when CapKit asks for it or when you use its inspector, keeps everything on your device, and opens no network access beyond 127.0.0.1. Notes you create are stored in a local database in CapKit's data folder, and you can delete them from the Notes tab. Turning the switch off closes the listener.

## Your choices and deletion
Choose capture and recording folders in Settings, disable optional recording inputs, and stop capture or recording when you no longer need it. Close CapKit before manually removing its local data. Delete unwanted screenshots, recording folders and temporary CapKit files through File Explorer. Removing a recording from CapKit's library currently removes its library entry, not necessarily the underlying recording files; delete those files separately if required. Clearing local application/WebView storage removes saved preferences and editing metadata but does not by itself delete exported media. Uninstalling should not be relied on to remove every output, temporary file or setting. Editing or redacting an export does not guarantee that original or temporary sources have been securely erased.

Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ The selected area becomes the editor. Tools appear right beside it.
- Turn a plain screenshot into something worth posting: backgrounds, gradients and wallpapers; padding, rounded corners and shadows; browser and device frames; tilt and perspective; titles and notes.
- Save your favourite looks as presets.

### Developer tools (Provisional, off by default)

- Turn on **Settings → Developer → Developer tools** to link the CapKit Inspector browser extension. Hovering a web page then highlights exact page elements, Find sensitive text marks exact rects, and the Note tool pins numbered comments with element details and a Markdown handoff for AI.
- Load the extension: in Chrome or Aside open chrome://extensions, turn on Developer mode, choose Load unpacked, and select `apps/browser-extension/dist` (build it with `pnpm ext:build`). Then click **Pair a browser** in Settings and enter the 6-digit code in the extension popup.
- Notes are listed in the **Notes** tab, where you can copy or drag them out.

### Private by design

- Everything stays on your device. No account, sign-in, telemetry or network access is needed to capture, edit, record or export.
Expand Down
22 changes: 22 additions & 0 deletions apps/browser-extension/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";

export default tseslint.config(
{ ignores: ["dist", "eslint.config.js", "scripts"] },
eslint.configs.recommended,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
languageOptions: {
parserOptions: {
projectService: true,
tsconfigRootDir: import.meta.dirname,
},
},
rules: {
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/no-confusing-void-expression": "off",
},
},
);
42 changes: 42 additions & 0 deletions apps/browser-extension/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "@snaphub/browser-extension",
"version": "0.3.0",
"private": true,
"type": "module",
"scripts": {
"build": "node scripts/build.mjs",
"dev": "node scripts/build.mjs --watch",
"typecheck": "tsc -p tsconfig.json --pretty false",
"lint": "eslint . --max-warnings 0",
"lint:fix": "eslint . --fix --max-warnings 0",
"test": "vitest run"
},
"dependencies": {
"@fontsource-variable/jetbrains-mono": "5.2.8",
"@fontsource-variable/plus-jakarta-sans": "5.2.8",
"@jridgewell/trace-mapping": "^0.3.31",
"@snaphub/devtools-protocol": "workspace:*",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"zod": "^4.4.3"
},
"devDependencies": {
"@eslint/js": "^9.39.5",
"@tailwindcss/vite": "^4.3.3",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@testing-library/user-event": "^14.6.1",
"@types/chrome": "^0.1.40",
"@types/node": "^26.1.1",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^6.0.3",
"eslint": "^9.39.5",
"jsdom": "^29.1.1",
"tailwindcss": "^4.3.3",
"typescript": "^6.0.3",
"typescript-eslint": "^8.64.0",
"vite": "^8.1.5",
"vitest": "^4.1.10"
}
}
Binary file added apps/browser-extension/public/icons/128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/browser-extension/public/icons/16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/browser-extension/public/icons/48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions apps/browser-extension/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"manifest_version": 3,
"name": "CapKit Inspector",
"version": "0.3.0",
"description": "Inspect spacing, styles and source locations on any page, and give CapKit exact element data.",
"minimum_chrome_version": "116",
"icons": { "16": "icons/16.png", "48": "icons/48.png", "128": "icons/128.png" },
"action": { "default_popup": "popup/index.html", "default_title": "CapKit Inspector" },
"background": { "service_worker": "background.js" },
"permissions": ["activeTab", "alarms", "scripting", "storage", "clipboardWrite"],
"host_permissions": ["http://localhost/*", "http://127.0.0.1/*"],
"optional_host_permissions": ["<all_urls>"],
"commands": {
"toggle-inspector": {
"suggested_key": { "default": "Alt+Shift+I" },
"description": "Inspect the page"
}
},
"web_accessible_resources": [{ "resources": ["fonts/*"], "matches": ["<all_urls>"], "use_dynamic_url": true }]
}
62 changes: 62 additions & 0 deletions apps/browser-extension/scripts/build.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
// Builds the extension: three single-file IIFE scripts plus the React popup.
import { build } from "vite";
import react from "@vitejs/plugin-react";
import tailwind from "@tailwindcss/vite";
import { cp, mkdir, readFile, writeFile, readdir } from "node:fs/promises";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
import { createRequire } from "node:module";

const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");
const dist = resolve(root, "dist");
const watch = process.argv.includes("--watch");
const require = createRequire(import.meta.url);

const scripts = [
{ name: "background", entry: "src/background.ts", file: "background.js" },
{ name: "capkitIsolated", entry: "src/content/isolated.ts", file: "content/isolated.js" },
{ name: "capkitMainWorld", entry: "src/content/main-world.ts", file: "content/main-world.js" },
];

let first = true;
for (const script of scripts) {
await build({
root,
configFile: false,
logLevel: "warn",
publicDir: first ? resolve(root, "public") : false,
build: {
outDir: dist,
emptyOutDir: first,
watch: watch ? {} : null,
minify: true,
sourcemap: false,
lib: { entry: resolve(root, script.entry), name: script.name, formats: ["iife"], fileName: () => script.file },
},
});
first = false;
}

await build({
root: resolve(root, "src/popup"),
base: "./",
configFile: false,
logLevel: "warn",
plugins: [react(), tailwind()],
build: { outDir: resolve(dist, "popup"), emptyOutDir: true, watch: watch ? {} : null },
});

await mkdir(resolve(dist, "fonts"), { recursive: true });
for (const pkg of ["plus-jakarta-sans", "jetbrains-mono"]) {
const dir = resolve(dirname(require.resolve(`@fontsource-variable/${pkg}/package.json`)), "files");
for (const file of await readdir(dir)) {
if (file.endsWith("-latin-wght-normal.woff2")) await cp(resolve(dir, file), resolve(dist, "fonts", file));
}
}

const rootVersion = JSON.parse(await readFile(resolve(root, "../../package.json"), "utf8")).version;
const manifestPath = resolve(dist, "manifest.json");
const manifest = JSON.parse(await readFile(manifestPath, "utf8"));
manifest.version = rootVersion;
await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
console.log(`CapKit Inspector ${rootVersion} built to ${dist}`);
15 changes: 15 additions & 0 deletions apps/browser-extension/src/accent.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { accentSchema } from "@snaphub/devtools-protocol/protocol";

/** Storage key for CapKit's accent colour; the lime default applies until CapKit sends one. */
export const ACCENT_KEY = "capkitAccent";
export const DEFAULT_ACCENT = "#d9ff43";

/** The stored accent, or the default when none is stored or the value is invalid. */
export async function readAccent(): Promise<string> {
try {
const parsed = accentSchema.safeParse((await chrome.storage.local.get(ACCENT_KEY))[ACCENT_KEY]);
return parsed.success ? parsed.data : DEFAULT_ACCENT;
} catch {
return DEFAULT_ACCENT;
}
}
Loading
Loading