登录 注册

deno (现代 JavaScript 运行时)

去点 Star
其他 denojavascriptrusttypescript
108,867
Stars
7,109
Forks
1,406
Watchers
1,727
Open Issues
MIT
许可证
Rust
语言
2018-05-15
创建时间
2026-10-29
最近更新

项目能做什么

面向 JavaScript 和 TypeScript 的现代化安全运行时环境。
来源:基于仓库元数据 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

项目简介

Deno(发音为 dee-no)是一个现代化的 JavaScript、TypeScript 和 WebAssembly 运行时。它具有默认安全的特性,并提供了极佳的开发体验。Deno 底层基于 V8 引擎、Rust 语言以及 Tokio 异步运行时构建。

核心功能

  • 多语言原生支持:直接支持 JavaScript、TypeScript 以及 WebAssembly。
  • 默认安全(Secure Defaults):默认沙箱环境,访问网络等敏感资源需要显式授权(例如通过 --allow-net 参数)。
  • 内置 HTTP 服务能力:提供内置的 Deno.serve API,开箱即用快速搭建 Web 服务。
  • 高性能底层:基于 Rust、V8 和 Tokio 构建。

适合谁用

  • 需要构建 Web 服务器或各类后端应用程序的 JavaScript / TypeScript 开发者。 (注:更详细的适用场景原文未做进一步展开,请查看原仓库)

安装步骤

你可以通过以下任一命令在系统上安装 Deno:

Shell (macOS, Linux):

curl -fsSL https://deno.land/install.sh | sh

PowerShell (Windows):

irm https://deno.land/install.ps1 | iex

包管理器安装: - macOS (Homebrew): sh brew install deno - Windows (Chocolatey): powershell choco install deno - Windows (WinGet): powershell winget install --id=DenoLand.Deno - Windows (Scoop): powershell scoop install main/deno

(从源码构建方式请参见仓库内的 CONTRIBUTING.md 指南)

运行第一个程序

  1. 创建名为 server.ts 的文件,写入以下 TypeScript 代码:
Deno.serve((_req: Request) => {
  return new Response("Hello, world!");
});
  1. 执行以下命令启动服务(--allow-net 授权网络访问权限):
deno run --allow-net server.ts

启动后即可在浏览器中访问 http://localhost:8000。

配置说明

此部分原文未说明,请查看原仓库及官方文档。

常见问题

此部分原文未说明,请查看原仓库及官方文档。

原始 README 摘录(英文原文,节选前 3000 字符)
# Deno

[![](https://img.shields.io/crates/v/deno.svg)](https://crates.io/crates/deno)
[![Twitter badge][]][Twitter link] [![Bluesky badge][]][Bluesky link]
[![Discord badge][]][Discord link] [![YouTube badge][]][YouTube link]

<img align="right" src="https://deno.land/logo.svg" height="150px" alt="the deno mascot dinosaur standing in the rain">

[Deno](https://deno.com)
([/ˈdiːnoʊ/](https://ipa-reader.com/?text=%CB%88di%CB%90no%CA%8A), pronounced
`dee-no`) is a JavaScript, TypeScript, and WebAssembly runtime with secure
defaults and a great developer experience. It's built on [V8](https://v8.dev/),
[Rust](https://www.rust-lang.org/), and [Tokio](https://tokio.rs/).

Learn more about the Deno runtime
[in the documentation](https://docs.deno.com/runtime/manual).

## Installation

Install the Deno runtime on your system using one of the commands below. Note
that there are a number of ways to install Deno - a comprehensive list of
installation options can be found
[here](https://docs.deno.com/runtime/manual/getting_started/installation).

Shell (Mac, Linux):

```sh
curl -fsSL https://deno.land/install.sh | sh
```

PowerShell (Windows):

```powershell
irm https://deno.land/install.ps1 | iex
```

[Homebrew](https://formulae.brew.sh/formula/deno) (Mac):

```sh
brew install deno
```

[Chocolatey](https://community.chocolatey.org/packages/deno) (Windows):

```powershell
choco install deno
```

[WinGet](https://winstall.app/apps/DenoLand.Deno) (Windows):

```powershell
winget install --id=DenoLand.Deno
```

[Scoop](https://scoop.sh/#/apps?q=deno&id=678d8fb557b611df996989c675b1099630a5bbee)
(Windows):

```powershell
scoop install main/deno
```

### Build and install from source

Complete instructions for building Deno from source can be found
[here](https://github.com/denoland/deno/blob/main/.github/CONTRIBUTING.md#building-from-source).

## Your first Deno program

Deno can be used for many different applications, but is most commonly used to
build web servers. Create a file called `server.ts` and include the following
TypeScript code:

```ts
Deno.serve((_req: Request) => {
  return new Response("Hello, world!");
});
```

Run your server with the following command:

```sh
deno run --allow-net server.ts
```

This should start a local web server on
[http://localhost:8000](http://localhost:8000).

Learn more about writing and running Deno programs
[in the docs](https://docs.deno.com/runtime/manual).

## Additional resources

- **[Deno Docs](https://docs.deno.com)**: official guides and reference docs for
  the Deno runtime, [Deno Deploy](https://deno.com/deploy), and beyond.
- **[Deno Standard Library](https://jsr.io/@std)**: officially supported common
  utilities for Deno programs.
- **[JSR](https://jsr.io/)**: The open-source package registry for modern
  JavaScript and TypeScript
- **[Developer Blog](https://deno.com/blog)**: Product updates, tutorials, and
  more from the Deno team.

## Contributing

We appreciate your help! To contribute, please read o
阅读完整原文

商业机会分析 规则生成(AI 未配置)

综合评分 37.5 分。该项目在“个人可实施性”维度得 35 分,“付费可能性”维度得 20.0 分,差异化空间 40.0 分(评分依据见评分卡)。

面向细分需求的二次开发产品

产品构想基于 deno 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
supabase/supabase 中文介绍暂未生成
The Postgres development platform. Supabase gives you a dedi
114,776 TypeScript
SheetJS/sheetjs 中文介绍暂未生成
📗 SheetJS Spreadsheet Data Toolkit -- New home https://git.s
36,343 -
honojs/hono 中文介绍暂未生成
Web framework built on Web Standards
32,909 TypeScript
sunface/rust-course 中文介绍暂未生成
什么?你敢放心的把后背交给 AI? 我赌你不敢,那就来学学 AI 时代最酷、最安全、最快的语言吧。本书拥有全面且深入的讲
31,115 Rust
kysely-org/kysely 中文介绍暂未生成
A type-safe TypeScript SQL query builder
14,348 TypeScript
yoavbls/pretty-ts-errors 中文介绍暂未生成
🔵 Make TypeScript errors prettier and human-readable in VSCo
14,098 TypeScript
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2018-05-15,近 30 天仍在推送,发布过 100 个 Release
社区活跃Star 108,867 / Fork 7,109 / Issue 1,727(数据支持,可自行核实)
许可证MIT
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

快速开始(以仓库 README 为准)
git clone https://github.com/denoland/deno.git
cd deno
# 请阅读仓库 README 获取确切安装步骤(依赖、配置、启动命令)
阅读原仓库文档
术语说明:Docker=应用容器(把程序和依赖打包运行);API Key=调用外部服务的密钥;Git Clone=把仓库代码下载到本地。常见错误:API Key 未配置 / 端口占用 / 数据库连接失败,多数项目在 README 的 Troubleshooting 章节有说明。