Skip to content
Examples and demos for nvk
Branch: master
Clone or download
Latest commit 4dc7797 Jul 5, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
cube Update Jul 2, 2019
live-shaders Fix typo Apr 3, 2019
rtx Update utils.mjs Jun 24, 2019
triangle Remove strict BigInt type changes Apr 16, 2019
typescript Fix imports Jul 5, 2019
webcam Update Jul 2, 2019
window Update index.mjs Mar 20, 2019
.gitattributes Initial commit Jan 9, 2019
.gitignore Adding files Jan 9, 2019
LICENSE Initial commit Jan 9, 2019 Update Apr 25, 2019
package.json Fix imports Jul 5, 2019

Running examples

This repository contains examples and demos for nvk - a Vulkan rendering API for node.js

Some examples use libraries such as gl-matrix or the WebAssembly port of tinyobjloader

To compile shaders at runtime, nvk-essentials is used


  1. Clone this repository
  2. Run npm install
  3. Navigate into an example folder and run npm run start



  • Compute shader rendering the mandelbrot set


  • A spinning cube, demonstrating buffer and texture upload

Live Shaders:

  • Demonstrates hot reloading of shaders based on file changes


  • VK_NV_raytracing example


  • The most basic example - A good starting point


  • Example on how to setup and use nvk in TypeScript


  • A spinning webcam model using a PBR shader
  • Demonstrates .obj file uploading, uniform buffer objects and window events


  • Demonstrates usage of the window interface
You can’t perform that action at this time.