Introducing JSR - the JavaScript Registry
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. Authors publish TypeScript source directly, and JSR generates API docs, .d.ts files and transpiled JavaScript for Node consumers. A walkthrough publishes a small package with jsr.json, consumes it from an Astro project via `npx jsr add`, and sets up GitHub Actions publishing with OIDC tokens and provenance transparency logs. Packages also get a quality score based on documentation, fast-type-checkable declarations and runtime compatibility.
Related posts
- How we built JSR
Deno mediumAdeptJSR, 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.
- Roll your own JavaScript runtime, pt. 2
Deno mediumAdeptA custom JavaScript runtime built on deno_core gains three capabilities: a fetch op backed by the reqwest crate and registered in the runjs extension, a CLI that takes the script path as its first argument, and TypeScript/TSX support. TypeScript support comes from a custom TsModuleLoader that implements deno_core's ModuleLoader trait. It picks a MediaType from the file extension and uses deno_ast to parse and transpile TS, TSX and JSX into JavaScript before handing the module to JsRuntime. The whole runtime stays around 154 lines of Rust.
- Deno 1.42: Better dependency management with JSR
Deno mediumAdeptDeno 1.42 adds first-class JSR support through new `deno publish` and `deno add` subcommands, which install packages from JSR and npm and write import map entries. It also adds LSP completions for jsr: specifiers and broadens Node compatibility across crypto, worker_threads, fs, http2 and other modules. Further changes include shell improvements in `deno task` (cross-platform shebangs, `$?`, redirects), `deno lint --fix`, and dropping mid-execution type checking under `--check`. Timers were rewritten so creating a million timers takes 1.4s instead of 5.9s with up to 70% less memory, startup is 10% faster on Linux, and `DENO_FUTURE=1` previews Deno 2 removals.
- The Deno Standard Library is now available on JSR
Deno mediumAdeptDeno's Standard Library has moved from deno.land/std to JSR at jsr.io/@std, split into 37 independently versioned packages such as @std/fs and @std/path. Each package can then be stabilized on its own schedule, with @std/bytes and @std/collections the first candidates. Packages install via `deno add`, or into Node.js, Cloudflare Workers and bundlers through `npx jsr add`. About 70% are Node-compatible, and all are ESM-only. deno.land/std stays available but will get only critical fixes, and migration means upgrading to 0.224.0 and then swapping HTTP imports for jsr: specifiers. The repo uses Deno's new workspaces feature for local cross-package dependencies.
- Node just added TypeScript support. What does that mean for Deno?
Deno easyNoviceNode 22.6 added TypeScript execution via type stripping (stable in 23.6), which replaces annotations with whitespace but does no type checking, does not handle JSX/TSX, and still relies on tsc and a manually managed tsconfig.json. Deno instead ships an integrated toolchain: SWC strips types, a bundled TypeScript compiler powers `deno check` and the LSP, and fmt, lint, doc and compile all understand TypeScript with zero-config defaults. Deno also supports TSX/JSX, TypeScript in the REPL and Jupyter, and publishing raw TypeScript to JSR without transpilation or separate .d.ts files.