web-serial-rxjs API Documentation
    Preparing search index...

    English Guide

    Hand-written Markdown Guide for using @gurezo/web-serial-rxjs. For exhaustive public API types, parameters, and return values, see the English TypeDoc API Reference.

    The canonical documentation layout is defined in ARCHITECTURE.md.

    This page is the only full index. Start with Getting Started, then open a How-to, Reference, or Project page for the task at hand.

    Read these first.

    Document Use it for
    Overview Public surface quick reference, feature summary, minimal sample
    Quick Start Basic flow from installation through disconnect
    Framework session lifecycle disconnect$ / dispose$ timing and subscription cleanup by framework

    Find a page by the serial task you need to finish.

    Document Use it for
    Choosing receive$ / lines$ / terminalText$ Decision guide for the three receive streams
    Communication pattern Recipes Pattern → Guide / Recipe index (not device compatibility)
    Advanced Usage Application patterns and RxJS recipes
    Request / Response Command + matching reply on lines$ / receive$ (no core request$)
    Timeout / cancel / retry Timeouts, cancel on teardown, limited retry (no core auto-retry)
    Troubleshooting Common problems, check steps, Recovery Matrix, and what to report
    Hardware-free testing Controllable Fake SerialSession, Vitest / Angular / React examples (npm: not bundled)

    Generated API docs and the hand-written design notes that sit beside them.

    Document Use it for
    English TypeDoc API Reference Exhaustive public API types, parameters, and return values
    API concepts and design notes Options, error codes, type tables, swappable SerialSession contract, supported data
    Binary receive API — design decision Design review: defer receiveBytes$; go / no-go criteria

    Support policy, release policy, and migration guides.

    Document Use it for
    Browser support and support policy API availability vs official support / untested
    Version support and release policy SemVer, deprecations, support window (no LTS)
    Bundler and framework compatibility CI vs Examples; ESM / RxJS / types (no full bundler matrix)
    Bundle size and tree-shaking Library-only size snapshot and reproducible measurement
    Verified environment listing criteria Minimum verification fields for hardware results (no device catalog)
    v3 → v4 Migration Unified Phase 1+2 public API cleanup
    v2 → v3 Migration Steps to adopt v3 canonical API
    v1 → v2 Migration Replacements for removed v1 APIs
    Phase 5 (archive) Legacy v1 documentation reference
    • state$ — canonical lifecycle source. Branch on state.status with SerialSessionStatus; use state.portInfo when connected
    • errors$ — canonical fatal / non-fatal error event channel. Branch with SerialError.is(SerialErrorCode.*)
    • dispose$() — sole session teardown API (subscribe to run it)
    • isWebSerialSupported() — top-level sync feature detection (not a session method; not a support guarantee) — see Browser support
    • Phase 1+2 removals (destroy$, isConnected$, portInfo$, getPortInfo(), getCurrentPort(), receiveReplay$, isBrowserSupported()) are documented in Migrating to v4