# tarm/serial

Repository: https://github.com/tarm/serial
Canonical: https://ross.abutalabs.com/products/tarm-serial
Language: Go
License: BSD-3-Clause
License Family: permissive
Last push: 2023-10-16T13:33:25+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5528, "days_push": 1052, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1694, forks 460 (observed 2026-08-28T04:05:23.567593+00:00)

## What it is
A Go library for reading and writing to serial ports as a stream of bytes with a consistent cross-platform API. It supports configurable baud rates, blocking and non-blocking reads, and concurrent read/write from multiple goroutines.

## Use cases
- read and write to a serial port in Go
- communicate with an Arduino over USB serial
- talk to a device over a COM port on Windows
- cross-compile serial port code for Windows without cgo
- read data from a bluetooth serial port
- interface with embedded hardware via RS-232

## When to choose
- you need simple serial port I/O in Go with minimal configuration
- you need the same serial API across Linux, macOS, and Windows
- you want to cross-compile for Windows from another platform

## When to avoid
- you need configurable data bits, stop bits, parity, or flow control
- you need advanced serial features like line status signals or RS-485 support
- you need a library under active development with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: file-system, developer-tools
- domain: developer-tools, hardware, embedded-systems
- platform: windows, go, cross-platform
- tags: serial-port, rs232, go-library, hardware-communication, usb-serial, linux, macos

## Member repositories
- tarm/serial (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:23.567593+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:38:10.270157+00:00, confidence not recorded.
  - readme: https://github.com/tarm/serial (fetched 2026-08-28T04:05:23.567593+00:00, sha 66c13c790f3e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
