Skip to content
timmo001Public

About

One app for your cameras and recorders: live view, recordings, events and health, through a small server on your own network

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

493 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kestrel

Kestrel: your cameras and recorders, watched over in one app

One app for your cameras and recorders: live view, recordings, events and each one's health, from any browser or as an app on your phone. It talks to each system directly, through a small server on your own network, so nothing goes through a vendor's cloud and old hardware stays useful after its own apps stop working.

What it works with

  • Raysharp-made recorders, such as the Swann DVR8-4575, which are sold under several brands. Their own apps and browser plugins no longer work in modern browsers.
  • Any camera with a stream address, such as RTSP, or a still picture.
  • Reolink cameras, hubs and recorders: live view, stills, motion and person, vehicle and animal detections, cameras that pan, tilt and zoom, and a hub or recorder's recordings.
  • The camera in a Bambu Lab P1 or A1 printer, as a picture every few seconds, with what it records during prints and its timelapses.
  • Live streams on web pages, such as a Twitch channel or a YouTube live stream, through yt-dlp: live view only.

The server records any of them to your own disk, and copies each source's own recordings in beside them.

What it does

  • Live: every camera at once, or any number fewer at a time, with smart tiling, zoom, moving cameras that pan and tilt, picture settings and their sound.
  • Recordings: a day's timeline, with several channels played together on one clock, playback up to 32 times, clips, stills and MP4 downloads.
  • Events: motion, PIR, detections and alarms as they happen.
  • Health: whether each system is reachable, its disks and each camera's signal, with problems pushed to your phone.
  • For agents: the kestrel CLI, with Code Mode and MCP.

The server runs go2rtc for the video, and the pages are built on Groundwork.

Running it

Kestrel comes for Arch, Debian, Ubuntu, Fedora and Windows, as a Home Assistant app and as a container image. See Install for each, and Running it to set up a server and pair your devices with it.

To run it from a checkout, you need mise:

mise install
mise run build
mise run serve:server

Open https://server.kestrel.localhost. The docs in docs/ cover the settings, the API and the protocol.

Parts

  • packages/core: what every source shares: how sources and cameras are named, what they report and the interface each kind implements, in TypeScript with Effect
  • packages/protocol-raysharp: the Raysharp recorders' control protocol
  • packages/source-raysharp: Raysharp recorders as a source, over that protocol and their RTSP streams
  • packages/source-stream: cameras you list by their stream addresses, such as RTSP, or a still picture, for live view
  • packages/source-reolink: Reolink cameras, hubs and recorders, over their HTTP API and RTSP streams
  • packages/protocol-baichuan: Reolink's own protocol on port 9000, for replaying recorded files
  • packages/source-bambu: the camera in a Bambu Lab P1 or A1 printer, over its own picture feed
  • packages/source-web: live streams from web pages, such as Twitch or YouTube, through yt-dlp, for live view
  • packages/protocol-ftp: an upload-only FTP receiver, for cameras that send their clips to the server
  • packages/format-mp4: recorded video as MP4, written for the browser and read back as frames
  • packages/nvr: records cameras' streams to disk with ffmpeg, in short files by day, clears out old recordings by age and disk space, and reads the folder back
  • packages/server: the server, with the API, go2rtc and recording
  • packages/web: the web client, installable on a phone
  • packages/desktop: the desktop app, which runs the server and keeps it running in the tray
  • packages/cli: the kestrel CLI, with Code Mode and MCP for agents, and its skill
  • docs: the docs site

Developing

mise run check   # lint, types, formatting and the docs
mise run test

Where it's heading is in timmo001/kestrel#11.

About

One app for your cameras and recorders: live view, recordings, events and health, through a small server on your own network

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages