Skip to content

Commit 0058743

Browse files
ascorbicclaude
andauthored
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
link-workspace-packages=true

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
package.json
22
CHANGELOG.md
33
pnpm-lock.yaml
4+
packages/pds/src/lexicons
5+
**/*.jsonc

0 commit comments

Comments
 (0)