A minimal AT Protocol Personal Data Server written in JavaScript.

docs: fix incorrect API examples in README

- Node.js: createPDS → createServer, add await, move port to options
- Cloudflare: remove non-existent createCloudflareHandler, use re-export
- Deno: add await, port option, and listen() call

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

+10 -8
+10 -8
README.md
··· 194 194 195 195 **Node.js usage:** 196 196 ```javascript 197 - import { createPDS } from '@pds/node' 197 + import { createServer } from '@pds/node' 198 198 199 - const pds = createPDS({ 199 + const { listen } = await createServer({ 200 200 dbPath: './pds.db', 201 201 blobsDir: './blobs', 202 202 jwtSecret: process.env.JWT_SECRET, 203 + port: 3000, 203 204 }) 204 205 205 - pds.listen(3000) 206 + await listen() 206 207 ``` 207 208 208 209 **Cloudflare usage:** 209 210 ```javascript 210 - import { createCloudflareHandler } from '@pds/cloudflare' 211 - 212 - export default createCloudflareHandler() 213 - export { PDSDurableObject } from '@pds/cloudflare' 211 + // Re-export from @pds/cloudflare (or point wrangler.toml directly at it) 212 + export { default, PDSDurableObject } from '@pds/cloudflare' 214 213 ``` 215 214 216 215 **Deno usage:** 217 216 ```typescript 218 217 import { createServer } from '@pds/deno' 219 218 220 - const server = createServer({ 219 + const { listen } = await createServer({ 221 220 dbPath: './pds.db', 222 221 blobsDir: './blobs', 223 222 jwtSecret: Deno.env.get('JWT_SECRET'), 223 + port: 3000, 224 224 }) 225 + 226 + await listen() 225 227 ``` 226 228 227 229 ## Contributing