docs: add examples for uncovered runtime APIs and remaining stragglers#3238
Open
bartlomieju wants to merge 1 commit into
Open
docs: add examples for uncovered runtime APIs and remaining stragglers#3238bartlomieju wants to merge 1 commit into
bartlomieju wants to merge 1 commit into
Conversation
bartlomieju
added a commit
that referenced
this pull request
Jun 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A coverage analysis of the Deno namespace against the examples catalog
showed that after the recent expansion, the remaining holes cluster in a
few areas: FFI had no example at all, and neither did Deno.bundle, the
Deno.jupyter display API, or the newer networking APIs (startTls, QUIC,
WebTransport). This PR fills those gaps and picks up the remaining small,
locally verifiable items from the examples backlog, taking the catalog
from 316 to 330 items.
New examples: Call C functions with FFI (dlopen plus UnsafeCallback via
qsort), Bundle code with Deno.bundle, Rich output in Jupyter notebooks,
Upgrade a TCP connection to TLS (STARTTLS), Communicate over QUIC,
Connect two peers with WebTransport, Two-way streaming with
WebSocketStream, Atomic transactions in Deno KV, Run a compute shader
with WebGPU, Extract front matter from markdown, Generate seeded random
numbers, Parse and generate XML, and Distribute work across a worker
pool. One new tutorial: Publish a package to JSR, a step-by-step guide
including dry runs and OIDC-based publishing from GitHub Actions.
Every script was run and its output captured rather than invented: the
STARTTLS example performs a real SMTP upgrade handshake, the QUIC and
WebTransport examples run a server and client in one process against a
self-signed certificate, the WebGPU shader was executed on a real
adapter, and the publish tutorial's dry run output comes from an actual
deno publish --dry-run. Unstable APIs carry the standard warning banner
and the matching --unstable-* flags in their run lines.
Two backlog items were intentionally dropped rather than written: custom
OpenTelemetry spans and metrics are already covered by the basic
OpenTelemetry setup tutorial, so separate examples would have duplicated
it. The KV atomic transactions example goes deeper than the existing KV
intro (transfer with retry on conflict, sum mutations, failed checks)
and cross-links it.