---
title: "What we got wrong about HTTP imports"
description: "Deno's original module system of direct HTTP URL imports didn't scale."
url: "https://swe.quest/articles/what-we-got-wrong-about-http-imports-313ba3cefc7f7089"
canonical: "https://deno.com/blog/http-imports"
source: "Deno"
published: "2024-07-29"
difficulty: "easy"
kind: "Opinion"
reading_minutes: 6
tags: ["javascript","build-systems","typescript"]
---

# What we got wrong about HTTP imports

A post on [Deno](https://swe.quest/sources/deno.md), published 2024-07-29, 6 min read, Opinion. Original: [https://deno.com/blog/http-imports](https://deno.com/blog/http-imports)

## Summary

Deno's original module system of direct HTTP URL imports didn't scale. Long URLs cluttered code, \`deps.ts\` files were clumsy, exact version pinning in URLs led to duplicate copies of the same library, and builds depended on the uptime of every host in the dependency graph. Deno is keeping HTTP imports but now recommends import maps for short specifiers and central version management, plus JSR, a semver-aware registry that resolves \`jsr:\` specifiers to immutable HTTP URLs. That design keeps granular file downloads and fixes deduplication and reliability. These changes are a core part of Deno 2.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)

## Prerequisites

- ES modules
- semantic versioning
- npm package management ([easy posts on Engineering management](https://swe.quest/tags/engineering-management.md?difficulty=easy))

## Keywords

Deno, JSR, HTTP imports, import maps, deno.land/x, npm, Deno 2

## Related posts

- [Why We Added package.json Support to Deno](https://swe.quest/articles/why-we-added-package-json-support-to-deno-0e46f636e0588f6e.md): Deno · 2023-03-20 · Easy · 6 min read · JavaScript, Build systems, Runtimes & VMs
  Deno added package.json support because its HTTP-import module system, though decentralized and manifest-free, suffers from the Duplicate Dependency Problem, the clunky deps.ts pattern, non-composable import maps, and the limits of transpile servers like esm.sh.
- [Announcing Deno 2](https://swe.quest/articles/announcing-deno-2-5e607a5c7027789d.md): Deno · 2024-10-09 · Easy · 12 min read · JavaScript, TypeScript, Runtimes & VMs, Developer tools, Build systems
  Deno 2 adds backwards compatibility with Node.js and npm, so it runs existing Node projects using package.json, node\_modules and npm workspaces, and supports npm: import specifiers without a manifest.
- [If you're not using npm specifiers, you're doing it wrong](https://swe.quest/articles/if-you-re-not-using-npm-specifiers-you-re-doing-it-wrong-1ef0f76947ddfda3.md): Deno · 2025-02-13 · Medium · 7 min read · JavaScript, TypeScript, Build systems, Supply chain security
  Deno now recommends importing npm packages with native \`npm:\` specifiers instead of HTTP transpile services like esm.sh or unpkg.
- [The Deno Standard Library is now available on JSR](https://swe.quest/articles/the-deno-standard-library-is-now-available-on-jsr-0d315a153fa1a8b9.md): Deno · 2024-05-14 · Medium · 5 min read · TypeScript, JavaScript, Build systems, Open source
  Deno'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.
- [Deno 1.19 Release Notes](https://swe.quest/articles/deno-1-19-release-notes-b48f272d5ea2fcdb.md): Deno · 2022-02-17 · Medium · 14 min read · JavaScript, Runtimes & VMs, Developer tools, Testing
  Deno 1.19 adds \`deno vendor\`, which builds a module graph from entrypoints, writes remote dependencies into a \`vendor/\` folder with readable paths, and generates an import map so programs can run with \`--no-remote\`.

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)
