Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to OpenStreamGrid are documented in this file.

## [Unreleased]

## [0.7.0] - 2026-10-20

### Added

- A Grafana panel for the tracker's event-loop delay (p50, p99, max), the
Expand Down
25 changes: 13 additions & 12 deletions README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ P2P 전송이 불가능하거나 재생 기한 안에 완료되지 않으면 즉
명령 하나로 Tracker, 테스트 Origin, 피어 2개를 실행할 수 있습니다.

```bash
git clone --branch v0.6.1 --depth 1 https://github.com/mytrashcan/OpenStreamGrid.git
git clone --branch v0.7.0 --depth 1 https://github.com/mytrashcan/OpenStreamGrid.git
cd OpenStreamGrid
docker compose up --build --detach
docker compose ps
Expand All @@ -56,21 +56,22 @@ Origin으로 폴백합니다. 종료할 때는 `docker compose down`을 실행
## 릴리스 상태

현재 안정 릴리스는
[OpenStreamGrid v0.6.1](https://github.com/mytrashcan/OpenStreamGrid/releases/tag/v0.6.1)입니다.
v0.6.0의 재현 가능한 QoE 벤치마크, 교체 가능한 스케줄링 정책, 재생 기한을 고려한
P2P/Origin 헤지 위에 피어 참여와 WebSocket 업그레이드 보안 강화, Node 피어용
WebSocket Origin 허용 목록 수정, Helm 이미지 태그 수정, 멀티 아키텍처 컨테이너
이미지를 더한 패치 릴리스입니다. 검증된 Origin 폴백은 최종 안전 경계로 유지됩니다. 재현 가능한 배포에는 릴리스 태그를 사용하고, 업그레이드
[OpenStreamGrid v0.7.0](https://github.com/mytrashcan/OpenStreamGrid/releases/tag/v0.7.0)입니다.
Tracker 시그널링이 시청자 수에 선형으로 확장되어 Tracker 하나가 한 방송의 피어
4000개를 코어 절반 이하로 처리하고, LL-HLS 시청자가 파트로 조립한 세그먼트를
공유하며, 기존 Origin용 사이드카 작성기와 Node 피어의 멀티 variant 플레이리스트
지원, 악의적인 클라이언트에 대한 Tracker·피어 보안 강화, 운영자용 알림과 보안
지표가 추가되었습니다. 검증된 Origin 폴백은 최종 안전 경계로 유지됩니다. 재현 가능한 배포에는 릴리스 태그를 사용하고, 업그레이드
전에는 [릴리스 노트](RELEASE_NOTES.md)를 확인하세요. 전체 변경 내역은
[변경 이력](CHANGELOG.md)에 정리되어 있습니다.

운영 배포용 컨테이너 이미지는 GHCR에 게시됩니다.

| 구성 요소 | 이미지 |
| --- | --- |
| Tracker | `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.6.1` |
| Origin | `ghcr.io/mytrashcan/openstreamgrid-origin:v0.6.1` |
| Node Peer | `ghcr.io/mytrashcan/openstreamgrid-peer:v0.6.1` |
| Tracker | `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.7.0` |
| Origin | `ghcr.io/mytrashcan/openstreamgrid-origin:v0.7.0` |
| Node Peer | `ghcr.io/mytrashcan/openstreamgrid-peer:v0.7.0` |

이미지는 `linux/amd64`와 `linux/arm64`용으로 빌드되고 `vX.Y.Z`와 `X.Y.Z` 두
형식의 태그로 게시됩니다(v0.6.1부터; 이전 릴리스는 `linux/amd64`, `vX.Y.Z` 태그만 제공).
Expand Down Expand Up @@ -266,9 +267,9 @@ Video.js 10.0.1을 재생합니다.
```bash
# 소스에서 (먼저 npm run build)
node origin/dist/sidecars.js /var/www/hls
# 또는 main이나 v0.6.1 이후 릴리스로 빌드한 Origin 이미지로(v0.6.1에는 작성기가
# 없습니다). 이미지는 root가 아닌 사용자로 실행되므로 --user로 호스트 디렉터리에
# 쓸 수 있게 하세요
# 또는 v0.7.0 이상의 Origin 이미지로(이전 이미지에는 작성기가 없습니다).
# 이미지는 root가 아닌 사용자로 실행되므로 --user로 호스트 디렉터리에 쓸 수 있게
# 하세요
docker run --rm --user "$(id -u):$(id -g)" -v /var/www/hls:/hls \
<origin image> origin/dist/sidecars.js /hls
```
Expand Down
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ With [Docker Compose v2](https://docs.docker.com/compose/) installed, start the
tracker, test origin, and two peers with one command:

```bash
git clone --branch v0.6.1 --depth 1 https://github.com/mytrashcan/OpenStreamGrid.git
git clone --branch v0.7.0 --depth 1 https://github.com/mytrashcan/OpenStreamGrid.git
cd OpenStreamGrid
docker compose up --build --detach
docker compose ps
Expand All @@ -49,12 +49,13 @@ peer is unavailable or too slow. Stop the stack with `docker compose down`.

## Release Status

[OpenStreamGrid v0.6.1](https://github.com/mytrashcan/OpenStreamGrid/releases/tag/v0.6.1)
is the current stable release. It is a patch release on top of v0.6.0's
reproducible QoE benchmarks, pluggable scheduling policies, and deadline-aware
P2P/Origin hedging: it hardens peer joins and WebSocket upgrades, fixes the
WebSocket Origin allowlist for Node peers, corrects Helm image tags, and ships
multi-architecture container images.
[OpenStreamGrid v0.7.0](https://github.com/mytrashcan/OpenStreamGrid/releases/tag/v0.7.0)
is the current stable release. It makes tracker signaling scale linearly with
the audience (one tracker serves 4000 peers in a broadcast at under half a
core), lets LL-HLS viewers share segments they assemble from parts, adds a
sidecar writer for existing origins and multivariant playlists for Node peers,
hardens the tracker and peers against abusive clients, and adds alerts and
security metrics for operators.
Use the release tag for reproducible deployments and review the
[release notes](RELEASE_NOTES.md) before upgrading. See the
[changelog](CHANGELOG.md) for the complete history.
Expand All @@ -63,9 +64,9 @@ Tagged container images are published to GHCR for production deployment:

| Component | Image |
| --- | --- |
| Tracker | `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.6.1` |
| Origin | `ghcr.io/mytrashcan/openstreamgrid-origin:v0.6.1` |
| Node peer | `ghcr.io/mytrashcan/openstreamgrid-peer:v0.6.1` |
| Tracker | `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.7.0` |
| Origin | `ghcr.io/mytrashcan/openstreamgrid-origin:v0.7.0` |
| Node peer | `ghcr.io/mytrashcan/openstreamgrid-peer:v0.7.0` |

Images are built for `linux/amd64` and `linux/arm64` and tagged both `vX.Y.Z`
and `X.Y.Z` (from v0.6.1; earlier releases are `linux/amd64` with `vX.Y.Z` only).
Expand Down Expand Up @@ -275,9 +276,8 @@ output directory:
```bash
# From a checkout (npm run build first)
node origin/dist/sidecars.js /var/www/hls
# Or from an origin image built from main or a release after v0.6.1 (v0.6.1
# predates the writer); it runs as a non-root user, so let it write to the
# host directory with --user
# Or from an origin image v0.7.0 or later (earlier images predate the writer);
# it runs as a non-root user, so let it write to the host directory with --user
docker run --rm --user "$(id -u):$(id -g)" -v /var/www/hls:/hls \
<origin image> origin/dist/sidecars.js /hls
```
Expand Down
61 changes: 61 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,64 @@
# OpenStreamGrid 0.7.0 Release Notes

OpenStreamGrid 0.7.0 makes tracker signaling scale with the audience, brings
P2P offload to LL-HLS viewers and existing origins, and hardens the tracker
and peers against abusive clients. The full list is in the
[changelog](CHANGELOG.md#070---2026-10-20).

## Highlights

- **Signaling that scales linearly.** Clients negotiate `inventory_batch` and
`neighbor_view`: inventory updates are batched every 250 ms and each viewer
sees a bounded set of neighbors (`TRACKER_NEIGHBOR_VIEW_SIZE`, default 64).
One tracker serves 4000 peers in one broadcast at under half a core
([Tracker capacity](docs/tracker-capacity.md)).
- **LL-HLS.** Partial segments load from the origin, and with
`assembleLowLatencySegments` viewers at the live edge join a segment's parts,
verify it, and share it ([ADR 0002](docs/adr/0002-llhls-part-sharing.md)).
- **Existing origins.** `origin/dist/sidecars.js` writes the SHA-256 sidecars
peers verify against for any packager's output. Node peers follow a
multivariant playlist to one rendition (`RENDITION`) and skip peers on other
renditions.
- **Players.** `hlsJsConfig()` supports players that create hls.js themselves,
such as Video.js 10.
- **Operations.** Metrics for signaling traffic, event-loop delay, and refused
requests; a Security row and event-loop panel in Grafana; an optional
`PrometheusRule`; `LOG_LEVEL`; and `--help` for the peer and sidecar CLIs.

## Security

- Peer addresses that are loopback, unspecified, or link-local are rejected,
including IPv4-mapped IPv6 literals, and Node peers refuse host names that
resolve to them.
- The tracker bounds what one peer can make it relay: peer IDs (128
characters), addresses (2048), metadata (32 entries, 4096 characters),
inventories (2000 segments, 128 KiB of IDs), and reported segment IDs per
second across REST and WebSocket.
- Node peers drop HTTP uploads to clients that stop reading for 10 s.
- Tracker reconnects are jittered so an audience does not return in lockstep.

## Upgrade notes

- Joins with peer IDs over 128 characters or containing whitespace, addresses
over 2048 characters, or metadata beyond the new limits now get `400`.
- REST segment reports are limited to 512 IDs of up to 512 characters, and a
peer reporting more than 16 K ID characters per second gets `429` (REST) or
has its WebSocket closed with `1008`.
- SQLite writes from heartbeats and reports are committed once per event-loop
turn; a crash can lose that turn's writes.
- In the SDK package, `hls.js` is an optional peer dependency, and the type
declarations no longer import the unpublished `@openstreamgrid/common`.

## Validation

- `npm run build`, `npm run typecheck`, `npm run lint`
- `npm test` across all workspaces and the SDK
- Browser E2E for hls.js (MPEG-TS, fMP4, LL-HLS parts), Shaka, and Video.js 10
- Docker multi-peer test, with one peer following the master playlist
- `helm lint` with the optional templates enabled

---

# OpenStreamGrid 0.6.1 Release Notes

OpenStreamGrid 0.6.1 is a patch release for 0.6.0. It hardens tracker
Expand Down
2 changes: 1 addition & 1 deletion common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openstreamgrid/common",
"version": "0.6.1",
"version": "0.7.0",
"license": "MIT",
"private": true,
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions deploy/k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ policies. Ingress and tracker autoscaling are disabled by default.

The container images must be available to the cluster:

- `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.6.1`
- `ghcr.io/mytrashcan/openstreamgrid-origin:v0.6.1`
- `ghcr.io/mytrashcan/openstreamgrid-tracker:v0.7.0`
- `ghcr.io/mytrashcan/openstreamgrid-origin:v0.7.0`

The chart derives both image tags from its `appVersion` as `v<appVersion>`,
matching the published release tags. Set `tracker.image.tag` or
Expand Down
3 changes: 1 addition & 2 deletions docs/ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The three implementation phases in the original plan are complete:
- **Phase 3, hardening:** WebRTC DataChannel transport, SQLite store, load and
capacity benchmarks, Helm chart, CI, and linting.

Since v0.6.1 (unreleased, see the changelog):
Released in v0.7.0 (see the changelog):

- Tracker signaling scales linearly with the audience (`inventory_batch` and
`neighbor_view`); one tracker serves 4000 peers in one broadcast at under
Expand All @@ -38,7 +38,6 @@ Since v0.6.1 (unreleased, see the changelog):

## Next

- **Release 0.7.0** with the unreleased changes above.
- **Publish the browser SDK to npm.** It is build- and publish-dry-run checked
in CI but not yet on the registry.
- **Refresh the performance baseline** (`scripts/benchmark.sh`) on a machine
Expand Down
2 changes: 1 addition & 1 deletion examples/react-integration/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions helm/openstreamgrid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: openstreamgrid
description: Hybrid P2P-CDN live streaming middleware
type: application
version: 0.6.1
appVersion: "0.6.1"
version: 0.7.0
appVersion: "0.7.0"
4 changes: 2 additions & 2 deletions origin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openstreamgrid/origin",
"version": "0.6.1",
"version": "0.7.0",
"license": "MIT",
"private": true,
"type": "module",
Expand All @@ -13,6 +13,6 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
"@openstreamgrid/common": "0.6.1"
"@openstreamgrid/common": "0.7.0"
}
}
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openstreamgrid",
"version": "0.6.1",
"version": "0.7.0",
"license": "MIT",
"private": true,
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions peer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openstreamgrid/peer",
"version": "0.6.1",
"version": "0.7.0",
"license": "MIT",
"private": true,
"type": "module",
Expand All @@ -16,7 +16,7 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
"@openstreamgrid/common": "0.6.1",
"@openstreamgrid/common": "0.7.0",
"@roamhq/wrtc": "^0.10.0",
"ws": "^8.22.0"
},
Expand Down
6 changes: 3 additions & 3 deletions sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openstreamgrid/sdk",
"version": "0.6.1",
"version": "0.7.0",
"description": "OpenStreamGrid Browser SDK — hybrid P2P-CDN live streaming middleware for Hls.js",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions tracker/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openstreamgrid/tracker",
"version": "0.6.1",
"version": "0.7.0",
"license": "MIT",
"private": true,
"type": "module",
Expand All @@ -13,7 +13,7 @@
"typecheck": "tsc -p tsconfig.json --noEmit"
},
"dependencies": {
"@openstreamgrid/common": "0.6.1",
"@openstreamgrid/common": "0.7.0",
"better-sqlite3": "^12.11.1",
"ws": "^8.22.0"
},
Expand Down
Loading