WebGL bridge API for hybrid TypeScript & WASM (Zig) applications
npm install @thi.ng/wasm-api-webgl
!npm downloads

> [!NOTE]
> This is one of 214 standalone projects, maintained as part
> of the @thi.ng/umbrella monorepo
> and anti-framework.
>
> 🚀 Please help me to work full-time on these projects by sponsoring me on
> GitHub. Thank you! ❤️
- About
- Status
- Related packages
- Installation
- Dependencies
- Usage examples
- API
- Authors
- License
WebGL bridge API for hybrid TypeScript & WASM (Zig) applications. This is a support package for @thi.ng/wasm-api. It's also closely aligned with and directly interacts with
@thi.ng/webgl.
ALPHA - bleeding edge / work-in-progress
Search or submit any issues for this package
- @thi.ng/wasm-api-canvas - HTML Canvas2D bridge API for hybrid TypeScript & WASM (Zig) applications
- @thi.ng/webgl - WebGL & GLSL abstraction layer
``bash`
yarn add @thi.ng/wasm-api-webgl
ESM import:
`ts`
import * as waw from "@thi.ng/wasm-api-webgl";
Browser ESM import:
`html`
Package sizes (brotli'd, pre-treeshake): ESM: 2.29 KB
- @thi.ng/api
- @thi.ng/errors
- @thi.ng/wasm-api
- @thi.ng/wasm-api-dom
- @thi.ng/webgl
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
One project in this repo's
/examples
directory is using this package:
| Screenshot | Description | Live demo | Source |
|:------------------------------------------------------------------------------------------------------------------|:---------------------------------|:------------------------------------------------|:-----------------------------------------------------------------------------|
|
| Basic Zig/WebAssembly WebGL demo | Demo | Source |
TODO
If this project contributes to an academic publication, please cite it as:
`bibtex``
@misc{thing-wasm-api-webgl,
title = "@thi.ng/wasm-api-webgl",
author = "Karsten Schmidt",
note = "https://thi.ng/wasm-api-webgl",
year = 2024
}
© 2024 - 2026 Karsten Schmidt // Apache License 2.0