~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/pds.js

An atproto PDS in JavaScript, for Cloudflare Workers and Node

0
0
main
37 lines · 1.0 KB Raw History

Deno PDS Example

Minimal PDS server running on Deno.

Requirements

  • Deno 2.2+ (for node:sqlite support)

Quick Start

cd examples/deno
deno run --allow-net --allow-read --allow-write --allow-env main.ts

Environment Variables

VariableDescriptionDefault
PDS_DB_PATHSQLite database path./pds.db
PDS_BLOBS_DIRBlob storage directory./blobs
JWT_SECRETJWT signing secretdevelopment-secret
PORTServer port3000
HOSTNAMEPDS hostname-
APPVIEW_URLAppView URL for proxying-
APPVIEW_DIDAppView DID for service auth-
RELAY_URLRelay URL for firehose-
PDS_PASSWORDPassword for createSession-

Permissions

The server requires these Deno permissions:

  • --allow-net - HTTP server and outbound requests
  • --allow-read - Read database and blob files
  • --allow-write - Write database and blob files
  • --allow-env - Read environment variables