

737: JSR: The New TypeScript Package Registry (NPM Killer)
12 snips Mar 1, 2024
In this discussion, Luca Casonato, a software engineer at Deno and contributor to the JSR package registry, shares insights on the innovative features of JSR. He explains why another package registry is necessary and how it enhances developer experience. Topics include the integration of auto-documentation, flexibility in publishing various file types like CSS and WASM, and the challenges of TypeScript performance. Casonato also teases some secret features and discusses community moderation strategies to keep the JSR secure and decentralized.
AI Snips
Chapters
Transcript
Episode notes
JSR's Purpose
- NPM's evolution has stagnated, hindering JavaScript's dynamic progress.
- JSR aims to simplify package publishing and consumption, addressing NPM's limitations.
ESM Only
- JSR is ESM-only to facilitate better static analysis and simplify package creation.
- ESM's statically analyzable nature enables features like documentation generation and linting.
JSR Installation
- Install JSR packages with existing managers (npm, pnpm, yarn) by creating an .npmrc file.
- This file redirects JSR-scoped packages to the JSR registry, enabling coexistence with NPM.