# Nudeps lets static sites use npm imports without bundling their application code

Released publicly on November 19, Nudeps turns npm-installed browser dependencies into locally hosted modules and a generated import map. It removes a common reason to introduce a bundler, but leaves compatibility, deployment and performance trade-offs with the developer.

A small open-source tool offers a lighter dependency workflow for native HTML and JavaScript projects, without requiring a CDN or rewriting application source.

- Status: Active
- Published: 2026-12-02T06:09:13+13:00
- Updated: 2026-12-02T06:09:13+13:00
- Categories: Web Development, JavaScript, Browsers & Web Standards, Developer Tools
- Tags: dependency management, import maps, npm, Nudeps, open source
- Canonical HTML: https://beyondthe.news/dossiers/nudeps-npm-native-import-maps-static-sites-bundler-free

## What changed

Lea Verou and Dmitry Sharabin publicly launched Nudeps on November 19, 2026, following earlier prototyping and testing. The tool integrates with npm lifecycle scripts and uses JSPM's generator to resolve dependency specifiers to locally deployed files. It creates a versioned dependency directory and an import-map injection script, rather than transforming application source. Programación.net reported version 0.4.4, dated November 17, as the latest it observed on November 24; the December 1 live npm dist-tag could not be independently retrieved. This is a new workflow announcement, not a claim that 0.4.4 is still latest.

## Why it matters

For static websites, PHP-rendered pages and small browser applications already written in native JavaScript, dependency resolution may be the only reason to introduce a full bundler. Nudeps offers a narrower alternative that preserves package-name imports and self-hosting. The relevant choice is between the convenience and production optimisations of a bundler and a simpler deployment model, not between using npm and avoiding all tooling.

## Dependency installation becomes the generation step

The documented setup adds Nudeps as a development dependency and wires npm's dependencies and prepare hooks. When packages change, it copies the required files and their transitive dependencies out of node_modules into client_modules by default, then generates importmap.js. Application modules can continue importing a package by name. There is still a local generation step, but normal application edits do not require a watcher or compilation solely for dependency resolution. CI must run the required hooks or invoke generation explicitly; a server only needs the deployed assets, not necessarily Node.js.

## An injection script bridges a browser limitation

Native import maps resolve bare module specifiers to URLs. MDN documents that the import map must be processed before dependent modules and cannot itself use a src attribute. Nudeps instead loads a regular external JavaScript file that injects the map, rebasing its paths against the script location. This is useful for multi-page sites with varying directory depths. Include it before module scripts and test it under the site's content security policy; do not assume module-script ordering is equivalent. Workers and worklets do not gain document import-map support.

## Self-hosted modules change what must be deployed

Versioned package paths permit long-lived caching of unchanged assets while allowing a changed package version to receive a new URL. This benefit depends on actual cache headers and deployment strategy. Deploy the generated map and modules together, and consider retaining older referenced versions during rolling updates. Non-JavaScript assets may require unversioned aliases or redirects; project documentation describes differing symlink behaviour on static hosting platforms. A local test is not sufficient evidence that aliases will work on the chosen host. Self-hosting avoids runtime reliance on an external CDN for these packages, but not the need to audit npm dependencies and lockfiles.

## A narrower tool is not a universal bundler replacement

The initial release targets npm and browser-compatible ESM. CommonJS support uses a shim and is experimental; packages depending on Node-specific APIs may require stubs or bundling. JSX, TypeScript and Svelte source still require compilation when used. Many small modules can make initial loading slower than a bundle; the maintainers explicitly have no comparative benchmark yet. An independent November 30 article also identifies static sites and prototypes as promising fits but does not supply measured performance data. Test real dependencies, cold and warm loads, and production deployment before removing an established build pipeline.

## Key details

- Public launch: November 19, 2026; previously experimental development.
- Version 0.4.4 was reported on November 24 by Programación.net; current npm dist-tag unverified on December 1.
- Default outputs: client_modules and importmap.js; npm lifecycle hooks regenerate them.
- JSPM Generator handles module resolution; app source remains untransformed.
- npm only at launch; CommonJS support experimental; no comparative benchmarks.

## Builder takeaways

- Consider it when dependency resolution is the only reason for a bundler.
- Pin and review the npm dependency graph; regenerate assets in CI and deploy the map with corresponding versions.
- Verify classic-script ordering, CSP, static-host aliases and real browser compatibility.
- Measure initial load and repeat visits with the actual dependency set before switching.

## What to watch

- Package manager support beyond npm and compatibility with additional packages.
- Published comparative performance measurements and independent production deployments.
- Changes to browser-native external import maps or worker support.
- Confirmed npm release and deployment-adapter changes.

## Uncertainties

- Live npm registry, CDN package metadata and repository package manifest were inaccessible; 0.4.4 is a dated third-party observation, not a verified current release.
- No independent execution or benchmark was performed in this research pass.
- No commercial pricing change is involved; the repository is MIT-licensed, and hosting and npm workflow costs remain project-specific.

## Sources

- [Nudeps: bundler-like imports, none of the baggage](https://lea.verou.me/blog/2026/nudeps/) — Lea Verou · primary · 2026-11-19T00:00:00+13:00. Dated launch, architecture, supported workflows and explicit limitations.
- [How It Works](https://nudeps.dev/how-it-works/) — Nudeps · primary. Local materialisation, JSPM Generator and runtime rebasing.
- [Getting Started](https://nudeps.dev/start/) — Nudeps · primary. Lifecycle hooks and classic script ordering.
- [Configuration](https://nudeps.dev/config/) — Nudeps · primary. Host-specific symlink and alias behaviour, configuration and pruning.
- [Nudeps repository](https://github.com/nudeps/nudeps) — Nudeps · primary. Project README and open-source repository.
- [Nudeps: dependencias de npm en el navegador sin bundler, con import maps y sin tocar tu código](https://programacion.net/articulo/4487) — Programación.net · secondary · 2026-11-30T00:00:00+13:00. Specialist editorial analysis; reports dated package version observation, not independently reproduced here.
- [HTML script type importmap](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script/type/importmap) — MDN · secondary. Browser import map semantics, ordering and worker limitations.

