Overview of jsr.io Architecture
mainjsr.io is a JavaScript registry composed of four primary components:
- API: A Rust-based backend handling all business logic and write operations.
- Frontend: A server-rendered web application built with Fresh (Deno + Preact), deployed as a Cloudflare Worker.
- Load Balancer: A Cloudflare Worker that acts as the entry point and routes traffic to the appropriate backend.
- Database: PostgreSQL used for storing metadata and user data (not for serving registry requests).
Artifacts such as module source code, generated documentation, and npm compatibility tarballs are stored in Cloudflare R2 (S3-compatible object storage).