more refactor

This commit is contained in:
LiBr
2026-04-10 20:34:14 +08:00
parent 8d31144741
commit 72123cc922
47 changed files with 868 additions and 365 deletions

View File

@@ -1,30 +1,13 @@
# sideload.js
# Sideload.js
This repository is organized as a Bun workspace with four top-level areas:
- `frontend/`: browser signing UI
- `backend/`: Cloudflare Workers Wisp proxy demo
- `dependencies/webmuxd/`: the publishable `webmuxd` package consumed by the frontend
- `wasm/openssl/`: the Rust/WASM OpenSSL bridge whose build artifacts are copied into `dependencies/webmuxd/lib/openssl-wasm`
A pure frontend signing infrastructure.
## Install
```bash
bun install
```
## Validate
<!-- TODO: deploy to cf flow -->
Deploy to Cloudflare worker.
```bash
bun run build
bun run lint
bun run test
cd frontend && bun run build
cd backend && bun run check
```
## Technology
## Workspace Notes
- `frontend/src/main.ts` must consume `webmuxd` package exports instead of duplicating usbmux/lockdown/AFC/InstProxy logic.
- Changes to device communication, pairing, or TLS behavior belong in `dependencies/webmuxd/src/` first.
- `wasm/openssl/pkg` is treated as a build artifact source for the package copy step.
1. when signing