Commit 0058743
feat(pds): make pds into a library and add a cli (#18)
* feat: add deployment architecture and demo PDS
- Document zero-code re-export deployment pattern
- Create demo PDS deployment using re-export pattern
- Add interactive setup script for key generation and configuration
- Include comprehensive deployment documentation
## Architecture
Uses a zero-code re-export pattern where users simply re-export the main package:
```typescript
export { default, AccountDurableObject } from '@ascorbic/pds-worker';
```
## Setup Script
Interactive script (`scripts/setup-pds.js`) that:
- Prompts for hostname and handle
- Generates secp256k1 keypair
- Creates DID (did:web based on hostname)
- Generates random auth token
- Writes configuration to .dev.vars
## Demo Structure
- `demos/pds/src/index.ts` - Simple re-export
- `demos/pds/wrangler.jsonc` - Worker configuration
- `demos/pds/.env.example` - Environment template
- `demos/pds/README.md` - Setup and deployment guide
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* feat(pds): setup cli
* feat: split library from worker
* Add a CLI!
* Remove unused arch doc
* chore: update config
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 9b7bd8e commit 0058743
54 files changed
Lines changed: 2402 additions & 11914 deletions
File tree
- demos/pds
- src
- packages/pds
- scripts
- src
- cli
- commands
- secret
- utils
- middleware
- xrpc
- test
- cli
- fixtures/pds-worker
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
0 commit comments