Build Apps in Deno with Frameworks such as React, Vue, Express, and more.
Deno 1.28's npm support lets you use npm-distributed frameworks like Express, React and Vue directly via `npm:` specifiers. You don't need package.json, node_modules or a separate install step, and Deno's built-in toolchain is available throughout. Step-by-step examples build a dinosaur API with Express. They then build the same dinosaur list/detail app in React (Vite scaffold via create-vite-extra, an Oak backend with CORS, react-router-dom) and in Vue (reactive store, Suspense, vue-router).
Related posts
- Deno 1.34: deno compile supports npm packages
Deno mediumAdeptDeno 1.34 lets `deno compile` bundle npm packages and their dependencies into a single self-contained executable. That makes tools like vite and eslint shippable as binaries with pinned dependencies, and they tend to start faster than running from a local cache. The release also adds cross-platform glob support in deno.json, deno task and CLI flags, and TLS certificates with IP addresses via rustls. Smaller changes include a top-level `exclude` and `nodeModulesDir` in config, configurable language-server limits, a `Deno.serve()` signature change that returns a `Deno.Server`, new `createHttpClient` pool options, more Node.js polyfills, and upgrades to V8 11.5 and TypeScript 5.0.4.
- Build a REST API with Express, TypeScript, and Deno
Deno mediumAdeptDeno runs Express with TypeScript without any TypeScript build configuration: Express is imported through an npm: specifier and its types are pulled in with a @deno-types comment. The walkthrough sets up a server that reads its port from the environment and starts it with explicit Deno permissions (--allow-read, --allow-net, --allow-env), which limits what third-party code can access. It also defines dev and start tasks in deno.jsonc, adds a request-logging middleware, and serves mock user data imported as JSON through /users and /users/:id routes, giving a REST API starting point in under 30 lines.
- Build an Astro site with Deno
Deno mediumAdeptDeno 2's Node and npm compatibility lets you scaffold and run an Astro project entirely with Deno tooling: `deno -A npm:create-astro@latest` to scaffold, `deno install --allow-scripts` for dependencies, and `deno task dev` to run package.json scripts. The walkthrough builds a small dinosaur site with an index page generated from a JSON file and a dynamic SSR route (`[dinosaur].astro`) that reads `Astro.params` and redirects to 404 for unknown entries. One caveat: the Deno language server doesn't yet support `.astro` files, so editors may show false errors.
- How to publish Deno modules to NPM
Deno mediumAdeptThe oak HTTP middleware framework was ported from Deno to npm using dnt, a build pipeline that rewrites module specifiers, injects shims for Deno and web globals, type checks with tsc, emits ESM/CommonJS plus type declarations, and runs Deno.test suites under Node.js. Porting required shimming web streams, Web Crypto, Blob, fetch/Headers via undici, and a custom ErrorEvent. It also meant removing top-level await so CommonJS output works, and using dnt's mapping feature to swap in a Node.js "http" server abstraction (about 220 lines versus 160 for Deno). Remaining rough edges include differing custom-inspect symbols, undici Headers behaviour around Set-Cookie, and a few platform-branched tests.
- Build a SolidJS app with Deno
Deno mediumAdeptA dinosaur catalog app built with SolidJS on the frontend and a Hono API on Deno, scaffolded with Vite via `deno init --npm` and dependencies added from JSR and npm with `deno add`. The walkthrough covers `deno.json` tasks (including Deno 2.1's object-form tasks with descriptions and dependencies), JSX compiler options for Solid, a Vite dev proxy to the API, and two routed pages. It highlights how SolidJS differs from React: signals read as function calls, `For` instead of map, `A` links, and `@solidjs/router` for dynamic routes.