Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

rpi-cam-lib

ABPD2001559MIT1.1.0TypeScript support: included

A lightweight library to control CSI-2 camera modules via any raspberry pi can read camera module but is dependent to shell.

rpi-cam, camera, rpi, raspberry, pi, raspberry-pi, raspberry-pi-cam, cam, rpicam, rpicamera, rpi-cam-lib, rpi-cam-library, raspberry-cam, raspberry-pi-cam-library, raspberry-cam-library

readme

Raspberry pi camera library for node.js

A simple and lightweight library to control the Raspberry Pi Camera with Node (JS/TS).

Table of contents

Introduction

rpicam-apps-lite is a linux package rpi-cam npm library dependent to it and used for controlling Raspberry Pi Camera series connects via CSI-2 socket and other ports.

Warning: This library only test on these Linux distros and not recommended to use windows or other OS not supported for rpicam-apps-lite package, also is not fast as a C/C++ custom drivers and use shell tools!

  • Debian
  • Ubuntu
  • Raspbian

Installation

First you need to setup dependent packages, so run this command to check already installed or not:

apt list --installed rpicam-apps-lite  # for Debian based distros.
# or
yum list --installed rpicam-apps-lite  # for REHL based distros (not recommended).

Note: if already downloaded, skip downloading, else continue.

then download package by this command:

sudo apt install rpicam-apps-lite  # for Debian based distros.
# or
sudo yum install rpicam-apps-lite  # for REHL based distros (not recommended).

at last, install library on your node.js project:

npm install rpi-cam-lib

Features

Is lightweight, user friendly and professionals also can use this as a advanced library access them to every options like zooming or adding effects and capturing method and mores supported in rpicam-apps-lite.

Some advatage of using this library:

  • its user-friendly and has advanced tools for professionals.
  • its lightweight.
  • all tools in rpicam-apps-lite is usable on this library.
  • can wait and reserve camera to avoid race-condition bugs.
  • also can do advanced method of capturing videos and photos like burst shots, capturing last 30 minutes or live streaming and others...

Technicals

Technical things documentioned in docs/technichals.md.

License

MIT License

Copyright (c) 2025 abpd2001: Abolfazl pouretemadi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Contact Us

You can help us, report bugs and recommend features to us via email, `a.p.i.2001.company@gmail.com`.


by @ABPD2001 in github -> @abpd2001 in npm.

thanks @fmohtadi99 for helps. Check Github Page