{"name":"@deckyard/frigate","description":"Frigate NVR REST API: events, review items, recordings, clips and snapshots, exports, camera switches, config and stats","versions":{"0.1.0":{"version":"0.1.0","kind":"git","url":"https://github.com/deckyard/deck-frigate.git","ref":"0.1.0","commit":"d6bb8f254f35ed258eceb8d909c1b471d117aff0","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.26.0"},"capabilities":["net"],"keywords":["frigate","nvr","cctv","camera","object-detection"],"description":"Frigate NVR REST API: events, review items, recordings, clips and snapshots, exports, camera switches, config and stats","publishedAt":"1794674402","repoId":1457951295,"repoOwnerId":346943577,"repoOwner":"deckyard"},"0.2.0":{"version":"0.2.0","kind":"git","url":"https://github.com/deckyard/deck-frigate.git","ref":"0.2.0","commit":"2ca1121f44033be56779a65310255c7e88e2b4fd","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.26.0"},"capabilities":["net"],"keywords":["frigate","nvr","cctv","camera","object-detection"],"description":"Frigate NVR REST API: events, review items, recordings, clips and snapshots, exports, camera switches, config and stats","publishedAt":"1794676372","repoId":1457951295,"repoOwnerId":346943577,"repoOwner":"deckyard"},"0.3.0":{"version":"0.3.0","kind":"git","url":"https://github.com/deckyard/deck-frigate.git","ref":"0.3.0","commit":"f11f98661f89b3281bf533b1332aa59be69ee117","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.26.0"},"capabilities":["net"],"keywords":["frigate","nvr","cctv","camera","object-detection"],"description":"Frigate NVR REST API: events, review items, recordings, clips and snapshots, exports, camera switches, config and stats","publishedAt":"1794683141","repoId":1457951295,"repoOwnerId":346943577,"repoOwner":"deckyard"},"0.4.0":{"version":"0.4.0","kind":"git","url":"https://github.com/deckyard/deck-frigate.git","ref":"0.4.0","commit":"1ee53bbac5713ff910b176ad8f4cf463efcdebf3","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.26.0"},"capabilities":["net"],"keywords":["frigate","nvr","cctv","camera","object-detection"],"description":"Frigate NVR REST API: events, review items, recordings, clips and snapshots, exports, camera switches, config and stats","publishedAt":"1794777332","repoId":1457951295,"repoOwnerId":346943577,"repoOwner":"deckyard"},"0.5.0":{"version":"0.5.0","kind":"git","url":"https://github.com/deckyard/deck-frigate.git","ref":"0.5.0","commit":"a0a26ab9a87167e2f8190389bd789112fbc8af37","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.27.0"},"capabilities":["net"],"keywords":["frigate","nvr","cctv","camera","object-detection"],"description":"Frigate NVR REST API: events, review items, recordings, clips and snapshots, exports, camera switches, config and stats","publishedAt":"1795716901","repoId":1457951295,"repoOwnerId":346943577,"repoOwner":"deckyard"}},"readme":"# @deckyard/frigate\n\n[![test](https://github.com/deckyard/deck-frigate/actions/workflows/test.yml/badge.svg)](https://github.com/deckyard/deck-frigate/actions/workflows/test.yml)\n[![Documentation](https://img.shields.io/badge/docs-github%20pages-blue)](https://deckyard.github.io/deck-frigate/)\n[![release](https://img.shields.io/github/v/release/deckyard/deck-frigate)](https://github.com/deckyard/deck-frigate/releases/latest)\n\nA client for the HTTP API of [Frigate](https://frigate.video/), the\nself-hosted network video recorder with object detection, for\n[Jennifer](https://jennifer-lang.dev/) programs: sign in, list and filter\nevents and review items, fetch snapshots and clips, create events by hand,\nread recordings and cut clips and frames from them, export and download\nstretches of recording, and look after the cameras (configuration, live\nstats, the latest frame, features switched on and off).\n\n**[Documentation](https://deckyard.github.io/deck-frigate/)**\n\n## Install\n\n```sh\njvc add @deckyard/frigate\n```\n\nThis vendors the deck to `vendor/\u003cscope\u003e/frigate/`. Without `jvc`, unpack the\n`src/` subtree of a release archive (`\u003cscope\u003e-frigate-\u003cversion\u003e.tar.gz`) there.\n\n## Usage\n\n```jennifer\nimport \"@deckyard/frigate/\" as frigate;\nimport \"http.j\" as http;\n\ndef c as frigate.Client init frigate.withTls(\n    frigate.client(\"https://nvr.example.org:8971\"),\n    http.TlsOptions{caCert: fs.readBytes(\"ca.pem\")});\n$c = frigate.login($c, \"admin\", os.getEnv(\"FRIGATE_PASSWORD\"));\nfor (def e in frigate.events($c, [\"labels=person\", \"has_snapshot=1\", \"limit=5\"])) {\n    fs.writeBytes($e.id + \".jpg\", frigate.eventSnapshot($c, $e.id));\n}\n```\n\n`ca.pem` is the CA that signed the certificate installed on port 8971.\nFrigate's own default certificate there (`CN=*`, no subject alternative\nnames) names no host, so no CA verifies it: it only works with\n`http.TlsOptions{skipVerify: true}`, which turns the check off.\n\n`examples/` has three programs: `events.j` (open alerts and the last\nevents), `export.j` (export and download the last minutes of a camera) and\n`status.j` (frame rates and disk use per camera, over the unauthenticated\nport 5000; `FRIGATE_PLAIN=1` allows plain http to a LAN host). `events.j`\nand `export.j` take `FRIGATE_CA=ca.pem` or `FRIGATE_INSECURE=1`.\n\n## Requirements\n\nJennifer 0.27.0 or newer, with the `net` capability: the deck talks HTTP(S)\nto a Frigate server. Checked against Frigate 0.18.2.\n\n## Development\n\n```sh\ntools/check-all.sh                   # the full gate, as CI runs it\njennifer test src/frigate_test.j      # the test overlay\ntools/check-docs.sh                  # docs against the code\ntools/pack.sh dist                   # build the release archive\n```\n\n## Licence\n\nLGPL-3.0-only, see [LICENSE](LICENSE). Copyright (C) 2026 mplx \u0026lt;mplx@jennifer-lang.dev\u0026gt;.\n\n`tools/check-headers.sh` checks every source file's SPDX header against\n`deck.toml`.\n"}