Deno by Example
A collection of annotated Deno examples, to be used as a reference for how to build with Deno, or as a guide to learn about many of Deno's features.Commit an example and we'll send you some stickers!
Basics
Encoding
CLI
Network
- HTTP server: Streaming
- TCP connector: Ping
- HTTP server: Routing
- HTTP Server: Hello world
- TCP Echo Server
- Piping streams
- HTTP requests
- HTTP server: Performing CRUD operations using SQLite3
- Hono HTTP server
- TCP listener: Ping
- TCP/TLS connector: Ping
- Running DNS queries
- HTTP server: WebSockets
- Outbound WebSockets
- TCP/TLS listener: Ping
- HTTP server: Serving files
System
File System
- Path operations
- Reading files
- Moving/Renaming files
- Watching the filesystem
- Subprocess Spawning: running other files using subprocesses
- Creating & removing directories
- Unix cat
- Checking for file existence
- Creating & resolving symlinks
- Temporary files & directories
- Walking directories
- Streaming file operations
- Unzip gzipped file
- Deleting files
- Writing files
Databases
Cryptography
Advanced
Unstable APIs
testing
authentication
data processing
Need an example that isn't here? Or want to add one of your own?
We welcome contributions!
You can request more examples, or add your own at our GitHub repository