frehner/modern-guide-to-packaging-js-library resource
A guide to help ensure your JavaScript library is the most compatible, fast, and efficient library you can make. observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 1470
- days_rel: n/a
- days_push: 974
- n_releases_24m: 0
Adoption not part of the score
1482 stars · 41 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A community guide with at-a-glance best-practice suggestions for packaging JavaScript libraries for npm, covering module formats (esm, cjs, umd), package. settings, and TypeScript types. It is bundler-agnostic and aimed at library authors rather than application developers.
Use cases
- how to package a javascript library for npm
- should my library output esm or cjs
- configure package. exports for a js library
- make my npm library tree-shakeable
- set up typescript types correctly for a library
- what module formats should a js library ship
- best practices for publishing an npm package
When to choose
- you are authoring a JavaScript/TypeScript library to publish on npm
- you want bundler-agnostic packaging advice with explanations of the reasoning
- you need to decide between esm, cjs, and umd outputs
- you want to validate package. and type settings with tools like publint and arethetypeswrong
When to avoid
- you are packaging an application rather than a library
- you need step-by-step configuration for a specific bundler like webpack, rollup, or vite
- you need a definitive standard rather than suggestions you may deviate from
Facets
learning-resource · maturity active
developer-tools build-tool package-manager documentation web-development frontend developer-tools documentation tutorials cross-platform javascript-library-packaging npm esm cjs umd package- guide best-practices nodejs web-server
1 source
- readme: https://github.com/frehner/modern-guide-to-packaging-js-library · fetched 2026-08-28 · 1de5c3a9a714
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| frehner/modern-guide-to-packaging-js-library | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="frehner/modern-guide-to-packaging-js-library")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem