Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
709cdbc
fix(stream/transport): count a datagram as dropped only when given up
enricobuehler Nov 5, 2026
1430eb5
fix(stream/abr): discard the window a host pipeline rebuild straddles
enricobuehler Nov 5, 2026
a57bd7f
fix(stream/abr): count the page's own keyframe asks as starved
enricobuehler Nov 5, 2026
905aeeb
fix(web/console): keep the web shell out when a launch hold ends
enricobuehler Nov 5, 2026
c038f8d
fix(web/console): let the page's settings sheet show in console mode
enricobuehler Nov 5, 2026
7ba979f
fix(web/console): drop pending steps when a connect ends
enricobuehler Nov 5, 2026
27403ef
fix(web/console): tell apart listed hosts the page gives no plane
enricobuehler Nov 5, 2026
1900877
fix(web/console): take the wake card down when no wake went out
enricobuehler Nov 5, 2026
c5b4c10
fix(web/console): clear the cover scratch before each cover
enricobuehler Nov 5, 2026
cd8716b
fix(web/console): open the full keyboard for text fields on a TV
enricobuehler Nov 5, 2026
054f7f2
fix(stream/input): release a held key wherever its keyup lands
enricobuehler Nov 5, 2026
4d3bd5e
fix(stream/input): capture the mouse on press outside pointer lock
enricobuehler Nov 5, 2026
f25718d
fix(stream/input): let go of the pads on blur or a hidden tab
enricobuehler Nov 5, 2026
90061cb
fix(stream/mic): close a capture that a later toggle overtook
enricobuehler Nov 5, 2026
a9aaeb4
fix(stream/mic): capture at the device rate, resampled to 48 kHz
enricobuehler Nov 5, 2026
e2317ac
fix(stream/audio): play through an iPhone's silent switch
enricobuehler Nov 5, 2026
25c5ee1
fix(stream/video): rebuild the plane after a lost GPU context
enricobuehler Nov 5, 2026
3715cc5
fix(stream/video): offer HDR only to a canvas that can show it
enricobuehler Nov 5, 2026
8598636
fix(stream/engine): drop the keyboard lock when a stream ends
enricobuehler Nov 5, 2026
a7e3439
fix(stream/cursor): set the host cursor only when it changes
enricobuehler Nov 5, 2026
6907ab6
fix(stream/video): claim a WebGL2 loss for the canvas's whole life
enricobuehler Nov 5, 2026
9752d87
docs(stream/mic): reflow the header comment to the file's width
enricobuehler Nov 5, 2026
28d53f0
fix(stream/mic): record in a play-and-record audio session
enricobuehler Nov 5, 2026
283c446
fix(stream/mic): give playback back when the prompt is denied
enricobuehler Nov 5, 2026
434c690
fix(web): say when the page server turns config.json away
enricobuehler Nov 5, 2026
d0907d0
fix(web): hold a link's host to its fingerprint across retries
enricobuehler Nov 5, 2026
dd21c2f
fix(web): decide a dropped stream from the engine, not the screen
enricobuehler Nov 5, 2026
ef85f83
fix(web): keep a mistyped address's sentence through redraws
enricobuehler Nov 5, 2026
86c42b4
fix(web): clear the End game notice when a stream starts
enricobuehler Nov 5, 2026
fcdfecf
fix(web): read the library again after a version mismatch
enricobuehler Nov 5, 2026
5051c88
fix(web): let the sidebar leave the profile gate
enricobuehler Nov 5, 2026
ceb3d0b
fix(web): keep side-edge controls clear of a notch
enricobuehler Nov 5, 2026
dc374b6
fix(web): say when a stream's sound waits for a click
enricobuehler Nov 5, 2026
1c13c6d
fix(stream/engine): read only a 401 sign-in refusal as forgotten
enricobuehler Nov 5, 2026
d8428ec
fix(stream/connect): never read the page's own server as blocked
enricobuehler Nov 5, 2026
bd64d39
fix(stream/engine): name the page's server when the bridge never opens
enricobuehler Nov 5, 2026
3cbd9d3
fix(stream/engine): drop device-key callbacks from an earlier connect
enricobuehler Nov 5, 2026
b32e865
fix(stream/pass): ask again for a pass the server did not give
enricobuehler Nov 5, 2026
2bb70c8
fix(stream/ws): end a bridge whose pongs stop
enricobuehler Nov 5, 2026
de914b1
fix(web): measure the stream size without resizing the UI canvas
enricobuehler Nov 5, 2026
8e8185a
fix(stream/engine): resume any dial a pass renewal held
enricobuehler Nov 5, 2026
a2aa870
fix(server): close a connection that stays silent
enricobuehler Nov 5, 2026
c6bf233
fix(server): believe a plane's expiry for 14 days at most
enricobuehler Nov 5, 2026
c256da4
fix(server): hold at most 64 hosts found over mDNS
enricobuehler Nov 5, 2026
89f8ba1
fix(deploy): run the tailnet sidecar on kernel networking
enricobuehler Nov 5, 2026
d15ba9d
docs(deploy): tell nginx to pass Host with its port
enricobuehler Nov 5, 2026
8e865fa
fix(ci): build manifests from this run's digests only
enricobuehler Nov 5, 2026
1bf8a8f
fix(server): wait 60 s before closing a silent connection
enricobuehler Nov 5, 2026
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
76 changes: 56 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,8 @@ jobs:
- run: cargo test --locked

# The real artefacts: the library and the app, release wasm. Skia comes prebuilt (build.sh).
# A `v*` tag also publishes the app as a tarball on the GitHub release.
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v7
with:
Expand Down Expand Up @@ -112,18 +109,30 @@ jobs:
with:
name: punktfunk-web
path: apps/web/dist/
- name: Release
if: startsWith(github.ref, 'refs/tags/v')
env:

# A `v*` tag publishes the app as a tarball on the GitHub release, once every check has passed.
release:
needs: [build, web, check, server]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/download-artifact@v8
with:
name: punktfunk-web
path: dist
- env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
run: |
tarball="punktfunk-client-web-${GITHUB_REF_NAME}.tar.gz"
tar -czf "$tarball" -C apps/web/dist .
tar -czf "$tarball" -C dist .
gh release create "$GITHUB_REF_NAME" "$tarball" --verify-tag --generate-notes

# The container: the server compiled natively on each architecture's runner, the client from the
# build job. Pushed to git.unom.io from main (`edge`) and from v* tags (`X.Y.Z` and `latest`);
# pull requests build it without pushing. Pushing needs the UNOM_REGISTRY_USER and
# build job. Each architecture is pushed by digest, with no tag, and `manifest` names this run's
# two. Pull requests build it without pushing. Pushing needs the UNOM_REGISTRY_USER and
# UNOM_REGISTRY_TOKEN secrets, a Gitea token with package write.
image:
# Every check, not only the build: an image is what people run.
Expand All @@ -143,27 +152,38 @@ jobs:
with:
name: punktfunk-web
path: apps/web/dist
- name: Channel
run: |
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then echo "CHANNEL=${GITHUB_REF_NAME#v}" >> "$GITHUB_ENV"
else echo "CHANNEL=edge" >> "$GITHUB_ENV"; fi
- uses: docker/setup-buildx-action@v4
- if: env.PUSH == 'true'
uses: docker/login-action@v4
with:
registry: git.unom.io
username: ${{ secrets.UNOM_REGISTRY_USER }}
password: ${{ secrets.UNOM_REGISTRY_TOKEN }}
- uses: docker/build-push-action@v7
# No tag: another run could move a shared one before `manifest` reads it.
- id: build
uses: docker/build-push-action@v7
with:
context: .
platforms: linux/${{ matrix.arch }}
push: ${{ env.PUSH == 'true' }}
tags: ${{ env.IMAGE }}:${{ env.CHANNEL }}-${{ matrix.arch }}
outputs: type=image,name=${{ env.IMAGE }},push-by-digest=true,name-canonical=true,push=${{ env.PUSH }}
cache-from: type=gha,scope=server-${{ matrix.arch }}
cache-to: type=gha,mode=max,scope=server-${{ matrix.arch }}
- if: env.PUSH == 'true'
env:
DIGEST: ${{ steps.build.outputs.digest }}
ARCH: ${{ matrix.arch }}
run: mkdir -p digest && echo "$DIGEST" > "digest/$ARCH"
- if: env.PUSH == 'true'
uses: actions/upload-artifact@v7
with:
name: digest-${{ matrix.arch }}
path: digest/
if-no-files-found: error
retention-days: 1

# One tag for both architectures.
# One tag over this run's two digests. `edge` moves only while this commit is still main's
# head, so an older run that finishes last leaves it alone. A tag `vX.Y.Z` gets `X.Y.Z`, and
# `latest` too unless it is a prerelease (`-` in the version).
manifest:
needs: image
if: github.event_name == 'push'
Expand All @@ -172,6 +192,12 @@ jobs:
IMAGE: git.unom.io/unom/punktfunk-client-web
TOKEN: ${{ secrets.UNOM_REGISTRY_TOKEN }}
steps:
- if: env.TOKEN != ''
uses: actions/download-artifact@v8
with:
pattern: digest-*
path: digest
merge-multiple: true
- if: env.TOKEN != ''
uses: docker/login-action@v4
with:
Expand All @@ -180,10 +206,20 @@ jobs:
password: ${{ secrets.UNOM_REGISTRY_TOKEN }}
- uses: docker/setup-buildx-action@v4
- if: env.TOKEN != ''
env:
GH_TOKEN: ${{ github.token }}
run: |
images=("$IMAGE@$(cat digest/amd64)" "$IMAGE@$(cat digest/arm64)")
if [[ "$GITHUB_REF" == refs/tags/v* ]]; then
channel="${GITHUB_REF_NAME#v}"; tags=(-t "$IMAGE:$channel" -t "$IMAGE:latest")
version="${GITHUB_REF_NAME#v}"
tags=(-t "$IMAGE:$version")
[[ "$version" == *-* ]] || tags+=(-t "$IMAGE:latest")
else
channel=edge; tags=(-t "$IMAGE:edge")
head="$(gh api "repos/$GITHUB_REPOSITORY/git/ref/heads/main" --jq .object.sha)"
if [[ "$head" != "$GITHUB_SHA" ]]; then
echo "main is at $head now; its own run moves edge"
exit 0
fi
tags=(-t "$IMAGE:edge")
fi
docker buildx imagetools create "${tags[@]}" "$IMAGE:$channel-amd64" "$IMAGE:$channel-arm64"
docker buildx imagetools create "${tags[@]}" "${images[@]}"
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ Rust owns the protocol; TypeScript owns the browser. The library owns everything

**`server`** — `punktfunk-client-web-server`: the built client, `/config.json`, `/h/<host>/…`
proxied to each host's management API, pinned, and `/w/<host>`, which carries a session over a
WebSocket where the network blocks UDP. Behind a reverse proxy, keep the Host header; the bridge
sees only the proxy's address. `Dockerfile` and `deploy/` package it.
WebSocket where the network blocks UDP. Behind a reverse proxy, pass the Host header through with
its port (nginx: `proxy_set_header Host $http_host;`) and send `X-Forwarded-For`, which names the
visitor to each host. `Dockerfile` and `deploy/` package it.

**`apps/web`**

Expand Down
Loading
Loading