Skip to content
@Serial-IO

Serial

An Open Source Serial library for Deno written in TypeScript using C++ and Deno FFI

Serial

the serial port standing in the rain

Lint Unit Tests

A serial library written in TypeScript for Deno without any third party modules.

This library provides an interface for the communication with serial devices and doesn't use any third party modules. It uses C++ functions which are compiled to dynamic libraries. These functions are then loaded by Deno to establish a serial connection and talk to the devices.

Note

We are currently migrating from our old repository.

Features

  • Communication with serial devices.
  • Create multiple serial connections at the same time.
  • List available ports and their properties (if available).
  • Set timeouts for both reading and writing.
  • Async functions.
  • Uses no third party modules.
  • Works on multiple different operating systems (check compatibility for mor info).

Compatibility

OS Tested version Current state
Windows Windows 10 (x64) in progress
Linux Ubuntu Server 22.04 LTS in progress
MacOS - planned

Overview

The library consists of:

  • The Serial library (Source Code for TypeScript Serial library)
  • The core C++ Core (Source Code for C++ Core)
  • The higher level C++ bindings (Windows) (Source Code for C++ higher level bindings for Windows platforms)
  • The higher level C++ bindings (Linux) (Source Code for C++ higher level bindings for Linux platforms)
  • The higher level C++ bindings (MacOS) (Source Code for C++ higher level bindings for MacOS platforms)

Documentation/Examples

Community/Discussions

Get in touch with the community here or provide feedback and suggestions for the library.

Credits

  • Big thanks goes out to @Katze719 who wrote most of the C++ files and functions!
  • Thanks to @AapoAlas for the great support and help on the Deno Discord!
  • Thanks to @Dj for the inspiration on how to write such a library!

Licence

Feel free to contribute to this project.

Copyright 2025 © Paul & Max

Pinned Loading

  1. serial serial Public

    Core library for the serial communication.

    TypeScript 1

  2. community community Public

    Provide feedback and suggestions for the serial library.

  3. cpp-core cpp-core Public

    Bindings for low level communication with the OS.

    C++

  4. cpp-bindings-linux cpp-bindings-linux Public

    C++ Linux Bindings for the serial library.

    CMake

  5. cpp-bindings-windows cpp-bindings-windows Public

    C++ Windows Bindings for the serial library.

    C++

  6. cpp-bindings-macos cpp-bindings-macos Public

    C++ MacOS Bindings for the serial library.

Repositories

Showing 7 of 7 repositories

Top languages

Loading…

Most used topics

Loading…