How gokul-github/pathlock works
Pathlock is an interactive, simulated bench for understanding HDCP along a cockpit streaming path. A user opens the bench, selects a streaming service, sink, resolution, and rule, then runs, steps through, or replays a session to inspect its stages, keys, and outcome. The README and sampled UI establish the workflow and its purpose; the model implementation is indexed as read but not excerpted, so its internal stages and dependencies are not expanded here.
Main entry points: __root.tsx App shell · router.tsx Route setup · index.tsx Home route · lab.tsx Interactive lab
Components 8
Bench experience
- App shell
src/routes/__root.tsx - Route setup
src/router.tsx - Home route
src/routes/index.tsx - Interactive lab
src/components/pathlock/lab.tsx - Preview host bridge
src/components/preview-host-bridge.tsx - Bridge messaging
src/lib/preview-host-bridge.ts
HDCP simulation
- HDCP session model
src/lib/hdcp/model.ts
Other components
- Bench user
Connections 7
- Bench user → App shell: opens bench
README.md - App shell → Route setup: renders routes
- Route setup → Home route: loads route tree
src/routeTree.gen.ts - Home route → Interactive lab: renders
src/routes/index.tsx - Interactive lab → HDCP session model: builds session
src/components/pathlock/lab.tsx - App shell → Preview host bridge: mounts bridge
src/routes/__root.tsx - Preview host bridge → Bridge messaging: installs bridge
src/components/preview-host-bridge.tsx