How denoland/deno works
Deno is a secure-by-default JavaScript, TypeScript, and WebAssembly runtime, with a CLI and substantial developer tooling. The primary workflow is a user running a program through the CLI, which executes it in the runtime; the README’s web-server example adds HTTP serving as a product capability. The graph also preserves language-server testing, Node compatibility, storage, telemetry, and WebGPU. Relationships are limited to README statements and SOURCE INDEX references; unsampled implementation links are omitted or marked unverified.
Main entry points: compute_pipeline.rs Compute pipelines · render_pipeline.rs Render pipelines · http_next.rs HTTP processing · server.rs LSP test service
Components 25
CLI and tooling
- Deno CLI
cli/main.rs - Run commands
cli/tools/run/mod.rs
Runtime and security
- JavaScript runtime
runtime/worker.rs - Permission checks
runtime/permissions/lib.rs
Web platform
- Fetch and DNS
ext/fetch/lib.rs - HTTP serving
ext/http/lib.rs - HTTP processing
ext/http/http_next.rs - Response compression
ext/http/compressible.rs - Request bodies
ext/http/request_body.rs - Response bodies
ext/http/response_body.rs - Compute pipelines
ext/webgpu/compute_pipeline.rs - Render pipelines
ext/webgpu/render_pipeline.rs - Bind group layouts
ext/webgpu/bind_group_layout.rs - Shader modules
ext/webgpu/shader.rs - GPU errors
ext/webgpu/error.rs - WebGPU conversions
ext/webgpu/webidl.rs
Compatibility and storage
- Node compatibility
ext/node/lib.rs - Node SQLite
ext/node_sqlite/database.rs - Runtime cache
ext/cache/lib.rs
Developer services
- Language server
cli/lsp/language_server.rs - Test discovery
cli/lsp/testing/definitions.rs - Test execution
cli/lsp/testing/execution.rs - LSP test service
cli/lsp/testing/server.rs - OpenTelemetry
ext/telemetry/lib.rs
Other components
- Program author
Connections 22
- Program author → Deno CLI: runs program
- Deno CLI → Run commands: invokes command
- Run commands → JavaScript runtime: executes program
- JavaScript runtime → Permission checks: checks access
- Program author → HTTP serving: defines server
- HTTP serving → HTTP processing: dispatches requests
ext/http/lib.rs - HTTP processing → Response compression: uses compression
ext/http/http_next.rs - HTTP processing → Request bodies: uses request bodies
ext/http/http_next.rs - HTTP processing → Response bodies: uses response bodies
ext/http/http_next.rs - Test execution → Test discovery: uses definitions
cli/lsp/testing/execution.rs - Test execution → LSP test service: uses server
cli/lsp/testing/execution.rs - LSP test service → Test execution: runs tests
cli/lsp/testing/server.rs - LSP test service → Test discovery: collects tests
cli/lsp/testing/server.rs - Node compatibility → Node SQLite: provides SQLite API
- Compute pipelines → Bind group layouts: retrieves layout
ext/webgpu/compute_pipeline.rs - Compute pipelines → Shader modules: uses shader module
ext/webgpu/compute_pipeline.rs - Compute pipelines → WebGPU conversions: converts descriptors
ext/webgpu/compute_pipeline.rs - Compute pipelines → GPU errors: reports errors
ext/webgpu/compute_pipeline.rs - Render pipelines → Bind group layouts: uses layout
ext/webgpu/render_pipeline.rs - Render pipelines → Shader modules: uses shader module
ext/webgpu/render_pipeline.rs - Render pipelines → WebGPU conversions: converts descriptors
ext/webgpu/render_pipeline.rs - Render pipelines → GPU errors: reports errors
ext/webgpu/render_pipeline.rs