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

288 files
32a9f43d7d6b
back to HEAD
icons/6.4 KB · 5 months ago
public/619.7 KB · 4 months ago
scripts/57.4 KB · 4 months ago
src/2.6 MB · 4 months ago
background/734.8 KB · 4 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.test.ts2.7 KB · 4 months agochirp-identity.tsLocal-device identity helpers for the chirp-sync architecture.6.0 KB · 4 months agochirp-sync-coordinator.test.ts12.1 KB · 5 months agochirp-sync-coordinator.tsChirp Sync — Phase 2 manifest-diff coordinator.12.2 KB · 4 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.6.2 KB · 4 months agochirp-sync-static.test.tsIV.7 — Static safety assertions for Chirp Sync.4.5 KB · 5 months agochirp-sync-vault-adapter.test.ts24.6 KB · 4 months agochirp-sync-vault-adapter.tsProduction adapter that backs runChirpSyncInitiator with the live vault.15.5 KB · 4 months agoclipboard.test.ts9.0 KB · 4 months agoclipboard.tsClipboard write + reliable auto-clear — audit fix HV-2.6.7 KB · 4 months agocodex-handlers.test.tsTests for src/background/codex-handlers.ts.8.1 KB · 4 months agocodex-handlers.tscodex-handlers.ts — message handlers that back the Peach Codex flow.11.3 KB · 4 months agocommands.tsKeyboard command handler — routing for summon-inline: 1.2.5 KB · 6 months agoentry.lock-port.test.tsLV-5: the lock-on-close onConnect listener accepts only our popup port (legacy bare "popup" or nonce'd "popup-<uuid>") and ignores anything else.4.3 KB · 4 months agoentry.ts3.6 KB · 4 months agohealth.test.ts4.2 KB · 5 months agohealth.tshealth.ts — Pro advanced vault health analysis.5.1 KB · 5 months agolicense.ts4.9 KB · 5 months agomessages.adversarial.test.tsmessages.adversarial.test.ts — Layer 3 §3.3 adversarial message handler tests.40.0 KB · 4 months agomessages.test.ts37.3 KB · 4 months agomessages.tsmessages.ts — the only background message handler.65.1 KB · 4 months agoml.ts6.0 KB · 5 months agonotes.test.ts9.3 KB · 5 months agooffscreen.html310 B · 4 months agooffscreen.tsOffscreen document script — audit fix HV-2c.1.8 KB · 4 months agopaired-devices.test.ts5.9 KB · 5 months agopaired-devices.tsPaired-device registry — v3 chirp-sync.6.9 KB · 4 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.3 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.17.2 KB · 5 months agopasskey.ts48.6 KB · 5 months agopending-vouched-devices.tsPending vouched devices — audit fix MV-7.3.0 KB · 4 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.ts20.2 KB · 4 months agorecovery.adversarial.test.tsrecovery.adversarial.test.ts — Layer 3 §3.2 adversarial recovery words tests.19.5 KB · 4 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-alerts.tsPending sync alerts — audit fix HV-1b.2.6 KB · 4 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.9.7 KB · 5 months agovault.adversarial.test.tsvault.adversarial.test.ts — Layer 3 §3.1 adversarial vault tests.34.2 KB · 4 months agovault.session-escrow.test.ts2.9 KB · 4 months agovault.sync-clamp.test.tsUnit tests for HV-1 — sync timestamp clamp + remote-mutation alerts.6.8 KB · 4 months agovault.test.ts52.1 KB · 4 months agovault.tsvault.ts — sole owner of vault state and chrome.storage vault keys.105.6 KB · 4 months ago
content/350.0 KB · 4 months ago
crypto/72.0 KB · 4 months ago
popup/1.2 MB · 4 months ago
codex/207.2 KB · 4 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.24.5 KB · 4 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.16.9 KB · 4 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.clamp.test.ts2.5 KB · 4 months agopdf-import.test.tspdf-import.test.ts — coverage for the testable surface of the PDF import path.13.7 KB · 4 months agopdf-import.tspdf-import.ts — restore from a Codex PDF instead of a camera scan.25.2 KB · 4 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).12.1 KB · 4 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/274.1 KB · 4 months ago
views/521.8 KB · 4 months ago
Add.tsx32.0 KB · 5 months agoChirpSync.tsxChirpSync — the v3 Settings → Sync surface.19.8 KB · 5 months agoCodexGenerateView.test.tsx@vitest-environment jsdom2.1 KB · 5 months agoCodexGenerateView.tsxPeach Codex — generation view.21.8 KB · 5 months agoCodexRestoreView.tsxPeach Codex — restoration view.23.9 KB · 4 months agocontracts.test.tsx@vitest-environment jsdom36.8 KB · 4 months agoEntry.tsx81.3 KB · 4 months agoExport.csv.test.ts@vitest-environment jsdom1002 B · 5 months agoExport.tsxSignal-conditioned views in this file must use <Show>, never a signal-conditioned early return (if (signal()) return <X/>).19.9 KB · 5 months agoHealth.test.tsx@vitest-environment jsdom2.5 KB · 5 months agoHealth.tsx20.6 KB · 5 months agoImport.tsxSignal-conditioned views in this file must use <Show>, never a signal-conditioned early return — see Projects.md §4.1.32.5 KB · 4 months agoLock.tsx40.0 KB · 4 months agoNoteEditor.toHtml.test.ts@vitest-environment jsdom3.6 KB · 5 months agoNoteEditor.tsx7.6 KB · 5 months agoNotesEditor.tsx8.3 KB · 5 months agoNotesMode.tsx2.9 KB · 5 months agoNotesTOC.tsx4.5 KB · 5 months agoOnboarding.tsx4.6 KB · 5 months agoPanic.tsx6.0 KB · 6 months agoPasskeyApproval.tsx2.1 KB · 6 months agoProCelebration.tsx646 B · 5 months agoRecoveryWordDisplay.tsx8.9 KB · 5 months agoRecoveryWordEntry.tsx10.9 KB · 5 months agoSettings.tsx85.2 KB · 4 months agoTrashView.tsx5.7 KB · 6 months agovault-search.test.ts3.3 KB · 4 months agovault-search.ts4.8 KB · 4 months agoVault.tsx26.3 KB · 4 months agoview-test-utils.tsx1.0 KB · 6 months agozxcvbn-strength.test.tsLV-8: the @zxcvbn-ts replacement must score the master-password strength meter on the same 0-4 scale as the old zxcvbn, with dictionaries loaded (language-common is what keeps weak passwords from scoring optimistically).1.2 KB · 4 months ago
App.tsx70.2 KB · 4 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.5 KB · 5 months agochirp-pair.tsPopup-side orchestrator for Phase-1 chirp pairing.13.3 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.html1.1 KB · 5 months agoindex.tsx610 B · 5 months ago
shared/275.5 KB · 4 months ago
backup.test.ts3.1 KB · 4 months agobackup.ts8.6 KB · 4 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.ts6.4 KB · 5 months agochirp-handshake.tsPost-chirp pairing handshake.11.0 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.9.4 KB · 4 months agocodex-types.tscodex-types.ts — shared shapes for the Peach Codex.10.8 KB · 4 months agoconfig.tsWeb3Forms access key for the in-app feedback form (Settings → feedback).827 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.homograph.test.tsLV-2: homograph detector tests.906 B · 4 months agodomain.ts1.4 KB · 4 months agofavicon.test.ts1.2 KB · 6 months agofavicon.tsResolves a favicon URL for a given domain.3.4 KB · 5 months agogenerate.test.ts2.6 KB · 5 months agogenerate.ts2.6 KB · 5 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-limits.tsImport-path resource bounds — audit fixes MV-4 (decompression bomb) and MV-5 (unbounded file/string allocation).1.2 KB · 4 months agoimport.test.ts13.7 KB · 4 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.5 KB · 4 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.9.7 KB · 4 months agonoise-js.tsNoise NK initiator for Android / Capacitor.13.7 KB · 4 months agonoise-xx.test.ts5.6 KB · 4 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.8 KB · 4 months agopasskey-flags.tspasskey-flags.ts — single switch for the Firefox passkey content-script proxy.2.1 KB · 6 months agopasskey-utils.test.ts1.2 KB · 5 months agopasskey-utils.tspasskey-utils.ts — WebAuthn relying-party-id validation.2.2 KB · 5 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.5 KB · 4 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-limits.tsSync trust + resource bounds — audit fixes HV-1 (timestamp clamp) and MV-3 (receive-path size bounds).1.9 KB · 4 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.17.3 KB · 4 months ago
tests/445.0 KB · 5 months ago
.amoignore1.2 KB · 5 months ago.gitignore124 B · 6 months ago.nvmrc8 B · 5 months agobun.lock133.1 KB · 4 months agomanifest.firefox.json2.5 KB · 4 months agomanifest.json1.6 KB · 4 months agopackage.json2.8 KB · 4 months agoplaywright.config.ts808 B · 6 months agotsconfig.background.json490 B · 5 months agotsconfig.json550 B · 4 months agotsconfig.tests.json122 B · 6 months agovite.config.mobile.ts1.2 KB · 5 months agovite.config.ts3.1 KB · 4 months agovitest.config.ts493 B · 4 months agoWASM-PROVENANCE.mdThe following packages ship prebuilt .wasm blobs that have not been byte-verified against a reproducible build:1.8 KB · 4 months ago
517bf896d7f1mark Q0 code-complete, carry the website copy sweep forward, and open the phone-to-phone initiator gap the relay-only model creates3 months agoc3f426a6fc8cdrop 'pair with a code, keep in step' from the sync card lede — the code half is no longer true and 'in step' reads oddly (v4.2.1)3 months ago839586785c0arecord the browser LAN removal, the checkpoint recovery of the relay dialler, and the phone-to-phone initiator gap the restructure opens3 months ago3f06919b90edrestructure browser sync around public/private/off relay modes and delete the LAN transport: pairing codes, subnet probing, the address cache and the local-network module all go, leaving one relay path (v4.2.0)3 months ago74a005e256a7record the LAN-retirement decision in docs/ and open a consolidated queue covering it, the blocked-on-June verifications, the security items with their real verified status, this session's unfixed findings, and the cleanup list3 months agofc721b3898a8show the topbar sync button unconditionally, and shrink the bird stage and QR on the invitation screen so the bird is no longer clipped to its legs (v4.1.13)3 months ago33473d579a29pin the shared recovery-word vector and the 2048-unique-list invariant on the browser side, so a future divergence fails a test instead of surfacing when someone tries to restore (v4.1.12)3 months ago236066499ad0add a topbar sync button that only appears once a device is paired, and drop the manual invitation textarea the QR already carries (v4.1.11)3 months agoefce56bed4e5note that the phone was two wire contracts behind at 2.3.68 and is now on 2.4.10, so browser and Android are finally in lockstep for the pairing retest3 months agoafecc4c62698supersede the Mayan-code terminology item: the format was deprecated months ago, so the pairing screen's QR copy is correct and there is no open copy fix3 months agof820f0e64e33record the MV3 dynamic-import root cause, the double masking that hid it, the live browser proof, and the stale Playwright setupVault helper found on the way3 months ago43458142142aload sync and pairing through static imports: runtime import() throws in an MV3 service worker, and Vite's preload helper reported it as "window is not defined", so the whole sync surface failed silently (v4.1.10)3 months ago06089c871dd2record the relay deploy, the live 429 that proves the limiter is enforcing, and the two probing traps that hide non-101 responses3 months agob59a3a2d340brecord the v0x02 manifest and padding wire contracts, the two real gaps found on Android, and why E6 and E4 do not fit this architecture3 months agoba39b05bd7e8pad sync frames to size buckets before encryption so the relay cannot read vault size or operation type off traffic shape (v4.1.9)3 months agoc62fe9f5c847pin that each reconnect derives fresh session keys, and record why intra-session rekeying buys nothing on a one-shot session (v4.1.8)3 months ago22016a5dbc67pin that the duress vault derives no root key, so every sync operation fails closed and no second vault id exists (v4.1.7)3 months ago158d6d9fe504say plainly at the point of removal that revocation stops future changes but recovery words survive it (v4.1.6)3 months ago0dcc53fd9e7frecord which peer timestamp each bound covers, and clamp revocation timestamps for display (v4.1.5)3 months ago1ef99bf947b0propagate device revocation as terminal signed records in manifest v0x02, so removing a device survives a peer vouching it back (v4.1.4)3 months agof9fa8bc4f93aname a rotating device from local state instead of the vouching peer's manifest claim, and stop a third-party issuer renaming a paired record (v4.1.3)3 months ago28e4cc72b69crecord the 8-digit SAS wire contract, its cross-platform KATs, the stale assertions the handoff left behind, and the relay redeploy still owed3 months agod37e6a6763d5test: pin official cryptographic vectors (v4.1.1)3 months ago9dde66e57d3dfeat: share Noise through Rust WASM and JNI core (v4.1.0)3 months ago924fa824995dfeat: add safe inverse vault adoption (v4.0.48)3 months agob6a62bdc472efeat: add relay-first vault adoption (v4.0.47)3 months ago61a600251c9bfix: gate vault adoption on both confirmations (v4.0.46)3 months ago91e964e65906fix: propagate mesh relay settings (v4.0.45)3 months agoc6c9978bbb7cfeat: add secure relay sync fallback (v4.0.44)3 months ago9c0983a25210feat: require mutual KK reconnect auth (v4.0.43)3 months ago7229580119fbfeat: require pairing key proof (v4.0.42)3 months ago4d35c2a90536feat: add rotating relay rendezvous state (v4.0.41)3 months ago3901ccee1835refactor: remove retired sync transport paths (v4.0.40)3 months agoefefabc50cb3fix: enforce relay-safe sync frame limits (v4.0.39)3 months ago157f3326d8f1fix: bind sync manifests to authenticated peer identity (v4.0.38)3 months agof92006bbfad8mark the XX-vs-NK ongoing-sync blocker in CONTINUITY.md resolved, pointing at HANDSHAKE_STANDARDIZE_ON_NK.md and this session's saves3 months agoc730b3f3bfe8reconcile stale Noise-XX comments with the NK reconnect path, default PairedDevice.wsPort to the real 49142 listener, and add the real 7-frame RelayMessage contract from Android's RelayFrames.kt (targetDeviceId is the NK static pubkey hex, not a device-id string)3 months ago66a788d0df33dial Android's Noise NK reconnect listener (49142) for ongoing sync, replacing the Noise XX/8765 path that could never complete against it3 months ago2d111c938645queue the relay and adoption-device-id items with the real Android frame contract, the browser framing convention, and the XX-vs-NK sync handshake divergence that actually blocks relay3 months ago2639f70867darecord that the kepr lockfile flag needs no fix and that the chirp rename verification is mechanical rather than visual3 months agoed5d1c0e57ebreconcile the last chirp-era names: peach-chirp-* CSS classes become peach-pair-*, the three CHIRP_-prefixed device messages drop the prefix, stale comments stop pointing at deleted files, and the dead peach-pair-pro-chirp rule goes (v4.0.37)3 months agoba8d30d4cb70record the queue sweep: the three fixes, the adoption sync bug and its untested status, and the correction to the sync-static.test.ts claim on line 2693 months ago35602e4a18c2seed the reconnect address cache when a vault is adopted, so an adopted browser can reach its first sync instead of failing subnet_unknown forever in the MV3 service worker (v4.0.36)3 months agofacf0df18c16raise recovery-words.test.ts testTimeout to 30s so real Argon2id derivations survive full-suite CPU contention instead of failing at the 5s default (v4.0.35)3 months ago888f1652d895rename the persisted device-identity keys to peach_device_id / peach_device_name now that no paired devices exist to orphan (v4.0.34)3 months ago8f9ae6790be4record the length fix, the new golden vector, and what the rename deliberately left alone (v4.0.33)3 months agob82564183743rename the sync layer off the chirp name: sync-coordinator/runner/transport/vault-adapter, device-identity, pairing-handshake, vault-adopt, and drop the orphaned audio-frame types (v4.0.32)3 months ago1672cc400bcerename the pairing surface to say what it is: code-pairing modules, PairDevice view, PairingBirds, PAIR_WITH_CODE/CODE_PAIR_* messages (v4.0.31)3 months agoab3f2d5e6a51pin the pairing token at 4 bytes so a code is 16 characters in 4 groups, refuse any other size at encode, and keep decode lenient for older 8-byte peers (v4.0.30)3 months agof4dd1094715dflag chirp-handshake's listener-side helpers as unusable from a browser and close out the session record (v4.0.29)3 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]