---
created: 2025-07-27T07:40:45.000Z
cosense_id: 6885d7fbf6fb3a7f06d08550
cosense_views: 6
source: cosense
thumbnail: https://wp.baku89.com/wp-content/uploads/2025/08/tethr.svg
tags:
  - tools
  - stub
permanent: true
visibility: public
aliases:
  - Tethr
modified: 2026-01-08T14:50:52.751Z
content_id: MJFfQFhsNpq-2ADK9D6Ww
---

# Tethr

[GitHub - baku89/tethr](https://github.com/baku89/tethr){.button}

::ja
ブラウザからUSB接続のデジタルカメラやWebカメラ直接制御するために設計されたJavaScript/TypeScriptライブラリ。

> [[koma|Koma]]に組み込むために開発。今のところSigma, Panasonic Lumix, Ricoh Thetaなど、いくつかのメーカーしか対応してません。

内部では[[PTP|Picture Transfer Protocol (PTP)]] を利用しており、シャッター操作、絞り値の調整、ISO感度の変更など、USBやTCP/IP接続を通じてカメラの各種機能にアクセス可能。しかし、各メーカーや機種ごとに異なる独自拡張が使われているため、互換性を保つことは長らく課題となってきた。

Tethrはこの問題を解決するためのブリッジとして機能し、開発者に統一的で現代的なインターフェースを提供する。開発者はTethrを使うことで、メーカーや機種ごとの違いや複雑さを意識することなく、カメラをシームレスに操作できる。このプロジェクトは、包括的なカメラ制御ソリューションを目指した [libgphoto2](https://github.com/gphoto/libgphoto2) から着想を得ている。

### 特徴

- 📸 シャッター、絞り、ISOなど、カメラの各種機能を制御可能
- ⚡️ PTP（Picture Transfer Protocol）標準を使ってUSB経由でアクセス
- 🌎 各カメラモデルの機能をフル活用するためのベンダー固有サポート
- 🤳 WebUSBが無効な場合やUSBカメラが接続されていない場合は、Webカメラに自動フォールバック

::

::en

A JavaScript/TypeScript library designed to control USB-connected digital cameras directly from browsers.

It is built on top of the [WebUSB API](https://developer.mozilla.org/en-US/docs/Web/API/USB) and aims to provide support for cameras by various vendors. The library utilizes the Picture Transfer Protocol (PTP), which offers a means to access camera functionalities such as shutter control, aperture adjustment, ISO settings, and more via USB or TCP/IP connections. However, due to the varying vendor-specific extensions employed by different camera models, acheving compatibility among them has been challenging.

Tethr addreses this issue by acting as a bridge and offering a standarized and contemporary interface for developers. With Tethr, developers can interact with cameras seamlessly, abstracting away the underlying differences and complexities. The project takes inspiration from [libgphoto2](https://github.com/gphoto/libgphoto2) in its pursuit of providing a comprehensive camera control solution.

### Features

- 📸 Control camera functionalities such as shutter, aperture, ISO, and more.
- ⚡️ Access cameras via USB using the PTP (Picture Transfer Protocol) standard.
- 🌎 Vendor-specific support to fully access all features of each camera model.
- 🤳 Automatic fallback to web cameras when WebUSB is disabled or no USB camera is connected.

::