Show HN: Mochi.js: bun-native high-fidelity browser automation library

· systems web · Source ↗

TLDR

  • Mochi.js is a Bun-native, raw-CDP browser automation library that replaces fragmented stealth stacks with one coherent, fingerprint-consistent framework.

Key Takeaways

  • Fingerprints derive from a single (profile, seed) pair via a 48-rule DAG covering canvas, WebGL, audio, fonts, MediaDevices, and WebGPU – no mismatched surfaces.
  • session.fetch() routes through Chromium via CDP, so JA4/JA3/H2 signatures are real Chrome by definition – no curl-impersonate or parallel HTTP layer.
  • Behavioral synthesis uses Bezier paths, Fitts-law timing, and lognormal digraph delays; parameterized per profile (hand, tremor, wpm, scrollStyle).
  • A Probe-Manifest CI gate diffs every PR against real-device baselines; Zero-Diff is required, with written rationale for intentional divergences.
  • Replaces the Patchright + fingerprint-injector + Turnstile clicker + curl-impersonate pipeline with one MIT-licensed, Bun-only library.

Hacker News Comment Review

  • No substantive HN discussion yet.

Original | Discuss on HN