---
title: "How we built JSR"
description: "JSR, the JavaScript Registry, splits into components with different reliability targets: a highly available Postgres cluster behind a Rust/Hyper API on Google Cloud Run targeting 99.9%, and a global CDN for package source and npm tarballs targeting 100% uptime."
url: "https://swe.quest/articles/how-we-built-jsr-b17e975077f4123a"
canonical: "https://deno.com/blog/how-we-built-jsr"
source: "Deno"
published: "2024-04-12"
difficulty: "medium"
kind: "Case study"
reading_minutes: 18
tags: ["system-design","javascript","web-performance","rust","postgres"]
---

# How we built JSR

A post on [Deno](https://swe.quest/sources/deno.md), published 2024-04-12, 18 min read, Case study. Original: [https://deno.com/blog/how-we-built-jsr](https://deno.com/blog/how-we-built-jsr)

## Summary

JSR, the JavaScript Registry, splits into components with different reliability targets: a highly available Postgres cluster behind a Rust/Hyper API on Google Cloud Run targeting 99.9%, and a global CDN for package source and npm tarballs targeting 100% uptime. The jsr.io site uses Fresh's server-side rendering with island hydration and plain HTML forms. TTFB for users far from the US region was cut by eliminating request waterfalls, so no route needs more than one roundtrip between the render server and the API. At publish time, diverse module resolution styles are normalized into an explicit ESM format so consumers never depend on probing.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)

## Prerequisites

- npm package ecosystem
- ES modules
- server-side rendering

## Keywords

JSR, Fresh, Deno, npm, Sigstore, sqlx, Google Cloud Run, Terraform

## Related posts

- [Introducing JSR - the JavaScript Registry](https://swe.quest/articles/introducing-jsr-the-javascript-registry-68b9a9f287a6887b.md): Deno · 2024-03-01 · Medium · 10 min read · JavaScript, TypeScript, Build systems, Supply chain security, Open source
  JSR, the JavaScript Registry, is in public beta as a free, MIT-licensed, ESM-only registry built for TypeScript that works with Deno and npm-based runtimes like Node, Bun and Cloudflare Workers.
- [Server rendering benchmarks: Railway vs Cloudflare vs Vercel](https://swe.quest/articles/server-rendering-benchmarks-railway-vs-cloudflare-vs-vercel-d854a3e98b5ee41e.md): Railway · 2025-10-20 · Medium · 10 min read · Performance engineering, Serverless, JavaScript, Cloud platforms
  Running Theo Browne's SSR benchmark suite (400 requests, 20 concurrent connections, from an EC2 client in us-west-1) against Railway with 10 replicas, Cloudflare Workers and Vercel Functions gave mixed results.
- [The Future (and the Past) of the Web is Server Side Rendering](https://swe.quest/articles/the-future-and-the-past-of-the-web-is-server-side-rendering-8de1b9934a1b9dca.md): Deno · 2023-02-01 · Medium · 12 min read · Frontend, Web performance, JavaScript
  Server-side rendering is presented as the answer to bloated client-side apps, with median page weight up 388% on desktop and 1288% on mobile over ten years.
- [A Whole Website in a Single JavaScript File](https://swe.quest/articles/a-whole-website-in-a-single-javascript-file-71d46431d0988f5b.md): Deno · 2022-04-05 · Medium · 2 min read · JavaScript, Serverless, CDN & edge, Frontend, TypeScript
  A demo multi-page website fits entirely in one JavaScript file and is server-rendered on demand at the edge with Deno.
- [Bun 1.3](https://swe.quest/articles/bun-1-3-14b383a02cc8854f.md): Bun · 2025-10-10 · Medium · 63 min read · JavaScript, Runtimes & VMs, Databases, Frontend, Developer tools
  Bun 1.3 turns Bun into a full-stack JavaScript runtime. Bun.serve() now includes a built-in frontend dev server with HMR and React Fast Refresh, parameterized routing, and standalone executables for full-stack apps.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
