返回 Skill 列表
extension
分类: 开发与工程无需 API Key

airlock

自托管的Expo OTA更新服务器。Airlock是一个Hono库,您可以将其安装在现有的API上以提供Expo Updates协议v1清单。在处理airlock服务器、CLI、适配器或将airlock集成到Expo应用时使用此技能。

person作者: jakexiaohubgithub

Airlock

Self-hosted Expo OTA update server. Ships as a Hono library (createAirlock) you mount on your existing API.

Reference Files

  • references/cli.md — Full CLI reference: all commands, flags, and config
  • references/integration.md — How to mount airlock on a Hono server and configure an Expo app
  • references/alchemy.md — Deploying with Alchemy (recommended): provisioning KV + R2 + Worker, generating secure tokens, existing vs new resources

Quick Reference

  • Package: @dawsson/airlock
  • CLI entry: airlock <command>
  • Config file: .airlockrc.json (or env vars AIRLOCK_SERVER, AIRLOCK_TOKEN)
  • Public routes: GET /manifest, GET /assets/:hash
  • Admin routes: under /admin/*, all require Authorization: Bearer <token>
  • Built-in adapters: CloudflareAdapter (KV + R2), MemoryAdapter (tests)
  • Channels scoped by: {channel}/{runtimeVersion}/{platform}
  • Default channel: "default"
  • Rollout: deterministic SHA-256 of deviceId + updateId, mod 100