Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Example Components

Most (if not all) individual example projects are standard Javascript projects commonplace ecosystem tooling, whether for server side (NodeJS, etc) or the browser.

A brief description of the examples contained in this folder:

Example Component Description
add exports basic functionality with simple types with a bare function export (deprectaed)
adder exports basic functionality with simple types with an interface (recommended)
browser-p2-shims Interactive browser demo for WASI Preview 2 shims and per-instance customization
builtin-bundle-ts Componentizes a multi-file TypeScript project with Jco's built-in bundler
fs-write-file Example of using wasi:filesystem (p2) to write a file to disk
host-logging Showcases the use of the wasi:logging interface with a custom embedder ("host") function
http-hello-world HTTP server using the wasi:http/incoming-handler, the hard way.
http-server-fetch-handler HTTP server using standards-forward fetch() event handling built into StarlingMonkey
http-server-hono HTTP server using the standards-forward Hono framework
node-fetch Performs a HTTP request using fetch()
node-grpc-server Buf-generated gRPC server: the same source runs in Node.js and as a component using jco-std
native-messaging Runs a Jco-built WASI command as a Firefox and Chromium native-messaging host
node-mcp-server MCP 2026-07-28 stateless server: the same source runs in Node.js and as a component using jco-std
p3-stream-echo-qjs Echoes a Preview 3 stream through a JavaScript component built with the QuickJS backend
node-sveltekit-server SvelteKit TODO app: the Node adapter output runs in Node.js and as a component using jco-std
string-reverse-upper imports functionality to build more advanced computation to export
string-reverse exports basic functionality with a slightly more involved WIT interface and more complex types
typegen-async-export Showcases how to build that uses an async export, with types provided
ts-resource-export Showcases an embedder ("host") using a resource defined in a component ("guest")
ts-resource-import Showcases using a component ("guest") that imports a Resource defined by an embedder ("host")
webidl-book-library Showcases WebIDL support using webidl2wit
wintertc Exercises portable Web APIs provided by StarlingMonkey and verifies them as a regression test