peach-browser

@june

A free, open source, local-first password manager for Chrome, Firefox, and Android.

TypeScript

v5.3.12 · 1,780 saves · 70,179 lines · updated 2 weeks ago

266 files
19da2c5da38d
back to HEAD
icons/6.4 KB · 5 months ago
public/619.5 KB · 5 months ago
scripts/57.1 KB · 5 months ago
src/2.3 MB · 5 months ago
background/596.8 KB · 5 months ago
aes.test.ts2.2 KB · 6 months agoaes.tsaes.ts — AES-256-GCM encrypt/decrypt primitives for vault storage.4.2 KB · 5 months agoalarms.test.ts5.3 KB · 5 months agoalarms.ts2.3 KB · 5 months agochirp-identity.tsLocal-device identity helpers for the chirp-sync architecture.4.9 KB · 5 months agochirp-sync-coordinator.test.ts12.1 KB · 5 months agochirp-sync-coordinator.tsChirp Sync — Phase 2 manifest-diff coordinator.11.8 KB · 5 months agochirp-sync-runner.test.ts15.2 KB · 5 months agochirp-sync-runner.tsProduction sync runner — composes the live vault adapter, WebSocket transport, and coordinator into the function the dispatcher injects via setSyncRunner.5.9 KB · 5 months agochirp-sync-static.test.tsIV.7 — Static safety assertions for Chirp Sync.4.5 KB · 5 months agochirp-sync-vault-adapter.test.ts16.4 KB · 5 months agochirp-sync-vault-adapter.tsProduction adapter that backs runChirpSyncInitiator with the live vault.10.3 KB · 5 months agoclipboard.test.ts3.2 KB · 6 months agoclipboard.ts1.8 KB · 6 months agocodex-handlers.test.tsTests for src/background/codex-handlers.ts.6.1 KB · 5 months agocodex-handlers.tscodex-handlers.ts — message handlers that back the Peach Codex flow.10.4 KB · 5 months agocommands.tsKeyboard command handler — routing for summon-inline: 1.2.5 KB · 6 months agoentry.ts2.0 KB · 5 months agohealth.test.ts4.2 KB · 5 months agohealth.tshealth.ts — Pro advanced vault health analysis.5.1 KB · 5 months agoindex.ts1.3 KB · 5 months agolicense.ts4.9 KB · 5 months agomessages.adversarial.test.tsmessages.adversarial.test.ts — Layer 3 §3.3 adversarial message handler tests.37.3 KB · 5 months agomessages.test.ts24.9 KB · 5 months agomessages.tsmessages.ts — the only background message handler.51.0 KB · 5 months agoml.ts6.0 KB · 5 months agonotes.test.ts9.3 KB · 5 months agopaired-devices.test.ts5.9 KB · 5 months agopaired-devices.tsPaired-device registry — v3 chirp-sync.7.1 KB · 5 months agopasskey-chrome-ceremony.test.tspasskey-chrome-ceremony.test.ts — covers the Chrome chrome.webAuthenticationProxy ceremony path that the Firefox-proxy test file does NOT exercise.30.0 KB · 5 months agopasskey-crypto.test.ts6.0 KB · 6 months agopasskey-crypto.ts11.1 KB · 5 months agopasskey-deny-on-close.test.tspasskey-deny-on-close.test.ts — M8/COR-0092.8 KB · 5 months agopasskey-firefox-proxy.test.tspasskey-firefox-proxy.test.ts — covers the v2.12.0 Firefox content-script proxy path.11.4 KB · 5 months agopasskey.ts43.1 KB · 5 months agorecovery-pending.tsPersistent flag set while the user has just created a vault and is reading their 12 recovery words but has not yet typed the 3 confirmation words.1.2 KB · 5 months agorecovery-words.test.ts19.1 KB · 5 months agorecovery.adversarial.test.tsrecovery.adversarial.test.ts — Layer 3 §3.2 adversarial recovery words tests.19.2 KB · 5 months agoself-test.test.ts329 B · 5 months agoself-test.tsself-test.ts — Known-Answer Test (KAT) for the Peach crypto stack.2.6 KB · 5 months agosync-trigger.test.ts7.5 KB · 5 months agosync-trigger.tssync-trigger.ts — central sync dispatcher.5.6 KB · 5 months agovault-history.test.tsVault history tests.8.4 KB · 6 months agovault.adversarial.test.tsvault.adversarial.test.ts — Layer 3 §3.1 adversarial vault tests.32.7 KB · 5 months agovault.test.ts31.3 KB · 5 months agovault.tsvault.ts — sole owner of vault state and chrome.storage vault keys.86.4 KB · 5 months ago
content/305.1 KB · 5 months ago
crypto/58.0 KB · 5 months ago
popup/1.1 MB · 5 months ago
codex/195.7 KB · 5 months ago
aztec.tsaztec.ts — Aztec 2D barcode generation with round-trip verification.12.7 KB · 5 months agobrowser-bundle.test.ts674 B · 5 months agocodex.adversarial.test.tscodex.adversarial.test.ts — Layer 3 §3.4 adversarial Codex tests.21.4 KB · 5 months agocodex.suite.test.tscodex.suite.test.ts — cross-cutting regression suite for the Codex pipeline.9.9 KB · 5 months agocodex.test.ts19.0 KB · 5 months agoconfirmation.tsPick 3 distinct positions in [1, 12] for the recovery-words confirmation gate.601 B · 5 months agoerasure.tserasure.ts — Reed-Solomon erasure coding around the WASM library.13.9 KB · 5 months agogenerate.test.ts17.1 KB · 5 months agogenerate.tsgenerate.ts — full Codex generation pipeline.15.9 KB · 5 months agohelpers.tshelpers.ts — shared utilities for Codex generation and restoration.7.8 KB · 5 months agonode-wasm.tsNode-only WASM byte loader for Vitest.1.1 KB · 5 months agopdf-import.test.tspdf-import.test.ts — coverage for the testable surface of the PDF import path.12.5 KB · 5 months agopdf-import.tspdf-import.ts — restore from a Codex PDF instead of a camera scan.22.4 KB · 5 months agopdf-layout.tspdf-layout.ts — A4 Codex page geometry shared between the generator and the PDF importer.1.4 KB · 5 months agopdf.tspdf.ts — render the printable Codex PDF.8.1 KB · 5 months agoreed-solomon.tsBrowser-safe wrapper around the Reed-Solomon WASM exports.4.8 KB · 5 months agorestore.test.tsrestore.test.ts — coverage for ChunkBuffer, parseRawScan, reconstructAndVerify.11.0 KB · 5 months agorestore.tsrestore.ts — Peach Codex restoration library (popup-side).11.1 KB · 5 months agors-loader.tsrs-loader.ts — load the Reed-Solomon erasure WASM module.2.4 KB · 5 months agoscanner.tsscanner.ts — camera-based Aztec scanning for Codex restoration.1.8 KB · 5 months ago
components/87.8 KB · 5 months ago
styles/271.3 KB · 5 months ago
views/489.4 KB · 5 months ago
App.tsx66.9 KB · 5 months agochirp-pair-capacitor.test.ts3.7 KB · 5 months agochirp-pair-capacitor.tsCapacitor adapter for the initiator-role pairing server, plus the mDNS peer-discovery listener that fires the sync trigger when a known paired device appears on the local network.7.9 KB · 5 months agochirp-pair.test.ts7.2 KB · 5 months agochirp-pair.tsPopup-side orchestrator for Phase-1 chirp pairing.11.4 KB · 5 months agocopy.tsPopup-side copy helper.1.1 KB · 6 months agofirefox-passkey.tsfirefox-passkey.ts — popup-context WebAuthn caller for the Firefox path.4.0 KB · 6 months agogenerator-policy.ts2.2 KB · 5 months agoindex.html2.5 KB · 5 months agoindex.tsx610 B · 5 months ago
shared/245.8 KB · 5 months ago
backup.test.ts2.8 KB · 6 months agobackup.ts7.4 KB · 6 months agobridge.ts1.6 KB · 5 months agobrowser.test.tsbrowser.test.ts — locks down feature-detected browser identification.6.5 KB · 5 months agobrowser.tsbrowser.ts — feature-detected browser identifier shared by background, popup, and content scripts.1.3 KB · 6 months agochirp-handshake.test.ts5.1 KB · 5 months agochirp-handshake.tsPost-chirp pairing handshake.7.1 KB · 5 months agochirp-pairing.test.ts7.8 KB · 5 months agochirp-pairing.tsAudio pairing driver — orchestrates the two-chirp exchange that bootstraps trust between two devices in the same room.10.2 KB · 5 months agochirp-payload.test.ts3.5 KB · 5 months agochirp-payload.tsAudio pairing payload — 64 bytes on the wire.4.4 KB · 5 months agochirp-sync-transport.test.tsSubnet-probe rate-limit tests.2.9 KB · 5 months agochirp-sync-transport.tsWebSocket sync transport — v3 chirp-sync Phase 2.8.4 KB · 5 months agocodex-types.tscodex-types.ts — shared shapes for the Peach Codex.10.0 KB · 5 months agoconfig.tsTemporary until Vesper (internal tracker) is ready123 B · 5 months agodevice-manifest.test.ts4.2 KB · 5 months agodevice-manifest.tsDevice manifest — v2 brief §4.3.8.1 KB · 5 months agodomain.ts657 B · 6 months agofavicon.test.ts1.2 KB · 6 months agofavicon.tsResolves a favicon URL for a given domain.794 B · 6 months agogenerate.test.ts2.1 KB · 6 months agogenerate.ts2.1 KB · 6 months agoggwave.test.ts4.7 KB · 5 months agoggwave.tsggwave loader — thin async wrapper around the ggwave-wasm module.6.5 KB · 5 months agoimport.test.ts13.4 KB · 6 months agoimport.tsany is intentional throughout this module (L17/I3/QUA-010): import files are user-supplied external JSON whose schemas vary by source app and version (1Password CPG, Bitwarden, CXF, generic CSV).16.1 KB · 5 months agolocal-network.tsLocal network discovery — minimal helper used by chirp pairing.1.2 KB · 5 months agoml.ts1.4 KB · 6 months agonative.tsMobile platform detection helpers used by popup views to gate Capacitor-only paths.848 B · 5 months agonoise-js.test.tsNoise NK auth proof regression test.6.9 KB · 5 months agonoise-js.tsNoise NK initiator for Android / Capacitor.13.0 KB · 5 months agonoise-xx.test.ts3.4 KB · 5 months agonoise-xx.tsNoise XX (mutual auth) — used for every Phase-2 WebSocket connection after the audio chirp pairing has stamped each side into the other's paired-device registry.8.1 KB · 5 months agopasskey-flags.tspasskey-flags.ts — single switch for the Firefox passkey content-script proxy.2.1 KB · 6 months agorecovery-word-list.tsrecovery-word-list.ts — 2048-word recovery word list for Peach vault recovery.20.1 KB · 5 months agorecovery-words.tsrecovery-words.ts — BIP39-compatible recovery word encoding for Peach vault recovery.5.4 KB · 5 months agoshortcuts.test.ts@vitest-environment jsdom4.0 KB · 6 months agoshortcuts.tsshortcuts.ts — keybinding schema, defaults, matcher, formatter.6.7 KB · 6 months agostorage.ts537 B · 5 months agosync-identity.test.ts2.9 KB · 5 months agosync-identity.tsSync identity — long-term X25519 keypair tied to the vault, not the device installation.7.0 KB · 5 months agosync-types.tsChirp Sync — type definitions (Master Brief v2).7.6 KB · 5 months agotypes.tstypes.ts — cross-boundary types and the MessageType union.15.7 KB · 5 months ago
tests/444.2 KB · 5 months ago
.amoignore1.2 KB · 5 months ago.gitignore124 B · 6 months ago.nvmrc8 B · 5 months agobun.lock123.2 KB · 5 months agomanifest.firefox.json2.6 KB · 5 months agomanifest.json1.7 KB · 5 months agopackage-lock.json288.4 KB · 5 months agopackage.json2.8 KB · 5 months agoplaywright.config.ts808 B · 6 months agopnpm-lock.yaml169.9 KB · 6 months agotsconfig.background.json490 B · 5 months agotsconfig.json521 B · 5 months agotsconfig.tests.json122 B · 6 months agovite.config.mobile.ts1.2 KB · 5 months agovite.config.ts2.1 KB · 5 months agovitest.config.ts461 B · 5 months ago
5d22740c27d6feat: UI-1 sync alert banners — popup fetches GET_SYNC_ALERTS on open, renders dismissible REMOTE_PASSWORD_CHANGE/REMOTE_DELETE/DEVICE_KEY_ROTATED banners, acks with consume4 months ago800e374c624bfeat: UI-3 + UI-4 Sync settings — pending vouched-device Allow/Reject rows (CONFIRM/REJECT) with live badge, rotate-sync-identity danger button + confirm dialog (ROTATE_SYNC_IDENTITY) routing to new recovery words4 months agob5317629a444feat: UI-2 lazy-search loading hint — pulsing 'searching…' in inline popup while vault-wide list loads on first search gesture4 months agobefb31137ebbfeat: UI-8 homograph warning — non-blocking row in Entry URL editor + save.ts offer banner when page domain is non-ASCII/punycode4 months ago41ef91e27e40feat: UI-7 friendly IMPORT_TOO_LARGE message in import view (maps MV-5 oversized-import error, never shows raw string)4 months ago6a30323ef695feat: UI-6 popup lock port uses nonce'd name popup-<uuid> (pairs with LV-5 entry.ts acceptance)4 months ago9af036ca50b9test: adapt recovery-words + recovery.adversarial suites to LV-4 GET_RECOVERY_WORDS password re-auth; full suite green (3141)4 months ago56b407befb6efix: LV-9 exact-pin crypto/vault deps (hash-wasm, @stablelib/*, zstd-wasm, reed-solomon, pdfjs-dist, tldts) + WASM-PROVENANCE SHA-256 table4 months ago2a773119080bfix: LV-8 replace unmaintained zxcvbn with @zxcvbn-ts/core 3.0.4 (+language-common 3.0.4, language-en 3.0.2 — no 3.0.4 published); Lock.tsx lazy loader with dictionaries4 months agoeb5ade2fb949fix: LV-7 ggwave createNamedFunction static rewrite (no new Function, CSP-safe) + PEACH-PATCH marker; updateSettings proto-pollution key filter4 months ago47e9cdca5c50fix: LV-6 standardize on [email protected] — packageManager pin, frozen-lockfile CI gate, commit bun.lock + drop pnpm/npm lockfiles, source-zip ships bun.lock4 months ago2335dde54c5bfix: LV-5 deduplicate onConnect popup lock — delete dead background/index.ts, accept nonce'd popup-<uuid> port (legacy popup for one release) in entry.ts4 months agoe1bf91ef908dfix: LV-4 GET_RECOVERY_WORDS requires fresh password re-auth (verifyMainPassword), exempt during recovery-pending confirmation window; change-password flow sets pending4 months ago0c436fd73d57fix: LV-3 canary fetch debounced per webhook+entry (1h), test pings exempt — caps page-induced ping firehose while keeping each canary live4 months ago8c8a5b1478bcfix: LV-2 detectHomograph flags non-ASCII and xn-- punycode hostnames (non-blocking detector; edit/save-banner UI lands in UI-8)4 months ago878cf96cfacbfix: LV-1 NFC-normalize master password at deriveKey chokepoint + deriveKeyRaw legacy-unlock fallback with heal; NFC on export KDF and recovery words4 months agob02250b96462fix: MV-9 pdf.js getDocument hardened — isEvalSupported:false + disableFontFace/Range/Stream on Codex PDF import4 months agof6a46c70c59ffix: MV-8 sync revocation — rotateSyncIdentity re-keys root + clears peers + recovery-pending, removePairedDeviceById security note, DEVICE_KEY_ROTATED notify/alert4 months ago590192651cb2fix: MV-7 vouched-manifest trust requires user confirmation — unknown devices queue in pending-vouched store until CONFIRM/REJECT4 months ago4620e8e0a3acfix: MV-6 import whitelist — sanitizeRestoredEntry routed through normalizeEntry, nested passkey/canary shape sanitizers, peachPayload passkey blob field picker4 months agoa207e6c140c2fix: MV-5 file and string size limits on all import paths — PDF gate before read, raw-string caps in parseImportSource and importEntriesFromPeachJson4 months ago386e53180a98fix: MV-4 decompression bomb caps — declared-length + cumulative section caps in peachPayload, zstd output cap, bounded streaming inflate in Codex generate4 months agob529572d23c6fix: MV-3 sync receive bounds — transport frame cap, coordinator pre-parse cap, adapter entry-count/per-envelope/tombstone limits4 months ago56ea59d6835afix: MV-2 vault inventory lazy-loaded behind userGesture gate; inline popup search loads vault-wide list only on explicit search gesture4 months ago2105d0bf213bfix: MV-1 GET_ENTRY_FOR_FILL re-validates sender origin against entry domain set; explicitSummon flag on cross-domain summons4 months ago1cb25e2b1e38fix: HV-2 clipboard auto-clear via chrome.alarms backstop + offscreen document; offscreen wired into Chrome build, firefox manifest unchanged4 months agofed31ad00996fix: HV-1 clamp future sync timestamps + remote-mutation alert queue (v3.7.1 base)4 months ago1b75540dc84cchore: copy audit-fix new files + clipboard.ts replacement; exclude internal drafts from tsc/vitest (pre-patch — HV-1 test red until HV-1)4 months agofecde68f0c43record audit-fix drafts session outcome4 months agof05963232662add audit-fix drafts README and INTEGRATION-CONTRACT: file map, new deps/permissions, UI work, sequencing, spec deviations, ~60-test estimate4 months ago17cc61a09727add LV-6 to LV-9 audit fix drafts: bun lockfile standardization, ggwave createNamedFunction static rewrite + settings proto-pollution filter, zxcvbn-ts migration, exact-pin crypto deps + WASM-PROVENANCE4 months ago7dc4a6f5f29aadd LV-1 to LV-5 audit fix drafts: NFC chokepoint with legacy fallback, homograph detector, per-key canary debounce, recovery-words password re-auth, onConnect dedup + nonce port4 months agoafaf05013b19add MV-9 audit fix draft: pdf.js getDocument hardened with isEvalSupported:false, disableFontFace/Range/Stream4 months agoc6c9305d6ce7add MV-8 audit fix draft: removePairedDeviceById security note, rotateSyncIdentity root-key rotation in vault.ts, DEVICE_KEY_ROTATED notification, settings UI contract4 months agoc344313d62baadd MV-7 audit fix draft: new vouched devices queue in pending-vouched-devices store until user confirms via CONFIRM/REJECT_VOUCHED_DEVICE handlers4 months ago41dd37002842add MV-6 audit fix draft: sanitizeRestoredEntry routed through normalizeEntry whitelist with passkey/canary shape sanitizers, peachPayload passkey blob picked not spread4 months agob9d695be722dadd MV-5 audit fix draft: import size limits — 25 MiB PDF gate before arrayBuffer, 10 MiB raw-string gate in parseImportSource and importEntriesFromPeachJson, UI error mapping4 months ago7681d8b87d52add MV-4 audit fix draft: decompression bomb caps — import-limits module, declared-length + cumulative checks in peachPayload, zstd output cap, bounded streaming inflate in Codex generate4 months ago5f80f9a47790add MV-3 audit fix draft: sync receive bounds — transport frame cap, coordinator pre-parse cap, adapter entry-count/per-entry/tombstone limits4 months ago7120becb5a8cadd MV-2 audit fix draft: vault-wide includeAll list fetched lazily behind userGesture gate, lazy-load thunk threaded to inline popup search4 months ago227776363daaadd MV-1 audit fix draft: GET_ENTRY_FOR_FILL re-validates entry domain set against browser-attested sender origin, explicitSummon escape hatch4 months ago1d7f5aad32f4add HV-2 audit fix draft: clipboard auto-clear via chrome.alarms backstop + offscreen document, full clipboard.ts replacement, manifest/entry wiring4 months ago0fe9d25fec1aadd HV-1 audit fix draft: clampSyncTimestamp + sync-limits module, sync-alerts queue, merge/tombstone clamp patches, 4 unit tests4 months ago96a378083e97add internal review notes — Fable adversarial static audit; encryption + autofill boundary clean4 months agoc1f231e00063always-show history toggle + empty state in both edit surfaces (v3.7.1); record outcome4 months agoba3bcf1cd545record v3.7.0 password-history outcome4 months agoef5b40237b76bump to v3.7.0 and rebuild Chrome + Firefox + Mobile dists4 months agob695a37f5dd2add vault password-history tests (capture, cap, restore, persistence) and message fill/edit history-stripping test4 months agoe3936c5a967cadd password history reveal/copy/restore to inline edit form with styling and timeSince helper4 months ago24cc275f410fadd password history reveal/copy/restore drawer to main popup edit mode with styling4 months ago

← newerolder →

details

Peach

A free, open source, local-first password manager for Chrome, Firefox, and Android.

Peach encrypts your vault on your device. No hosted vault, subscription, or account is required to use it.

peachpasswords.com


Features

  • Passwords, cards, and secure notes — keep your private data together in one encrypted vault
  • Inline autofill — fill and save credentials without leaving the page
  • TOTP built in — generate two-factor codes without a separate authenticator
  • Password health — find weak, reused, and exposed passwords
  • Portable backups — export and restore with PeachScript or a .peach file

Peach Pro adds:

  • Peach Sync — end-to-end encrypted sync across paired devices
  • Passkeys — save and use passkeys in Chrome and Firefox
  • Peach Codex — print an encrypted, scannable backup of your vault
  • Advanced vault health, Canary Entries, and duress tools

See the Peach website for current availability and Pro details.


Install


Open Source

Peach is released under the GPL v3. This repository contains Peach's Chrome and Firefox browser extensions. Android is maintained separately.

The source is hosted on Kepr, Asha Software's version control platform.


Security

Vault data is encrypted with AES-256-GCM and protected by Argon2id key derivation. Peach Sync authenticates paired devices and encrypts data in transit.

Implementation details live alongside the code:


Building

bun install --frozen-lockfile
bun run build

Builds are written to dist-chrome/ and dist-firefox/.


Built by Asha Software · [email protected]