Local dev tools for engineers

Five zero-dependency tools in 324 KB. Profile WebGL2 shaders, merge moved AST blocks, search SQLite graphs, and replay HTTP.

Drawplate local tools workbench

Switch tools below to inspect real code from our packages, or launch the full interactive browser workbench.

Drawplate / Subpass / pbr_sphere.glsl
Open full tool
ArtifactMeasured
Subpasspbr_sphere.glsl0.61 ms
Subpassbloom_extract.glslKaris FBO
Subpasstonemap_aces.glslACES
Cleavecadastre/store.mjs1.47 ms
Cleavecleave/merge.mjs0.30 ms
Cadastresym: diffAst0.23 ms
Cadastresym: traceCallers0.007 ms
Slewboxslewbox-worklet.js48 kHz
Tapelinecassette-v2.json0.08 ms
Subpass · WebGL2 GLSL ES 3.00 3 passes active RGBA16F FBO · 0.61 ms check
01 geometry FBO 02 bloom Karis 03 tonemap ACES
@@ bloom_extract.glsl @@ Karis-weighted luminance threshold
11#version 300 es
22precision highp float;
33uniform sampler2D u_sceneTex;
4uniform float u_bloomThreshold = 0.85;
4uniform float u_bloomThreshold = 0.68;
55float karisWeight(vec3 c) {
66 return 1.0 / (1.0 + dot(c, vec3(0.2126, 0.7152, 0.0722)));
77}
88void main() {
9 vec3 t0 = softThreshold(texture(u_sceneTex, vUv).rgb, u_bloomThreshold);
910 fragColor = vec4(t0 * karisWeight(t0), 1.0);
1011}

Four more tools on disk. Each solves one narrow job.

Merge local code diffs

Cleave matches relocated functions across five language families at 0.65 similarity. Three-way AST merges resolve moved edits in 0.30 ms.

cleave · ast node main
~/drawplate$cleave diff a.mjs b.mjs
3 presets
store.mjs70 saved1.47ms
jsMoveAndEdit8 saved0.11ms
merge30 conflicts0.30ms
myers_line480 LOC0.07ms
Moved ASTsim >= 0.65(AST)
Mergedin 0.30ms
~/drawplate$

Search local code graphs

Cadastre indexes symbols and call edges into an 808 KB SQLite database with int8 vectors. Hybrid queries return in 0.23 ms over CLI or MCP.

Run local audio DSP

Slewbox pairs a zero-alloc 48 kHz AudioWorklet synth with a 39.4 KB C++20 CLI. Render 1.5 s stereo WAV files in 1.21 ms.

Slewbox · AudioWorklet
4 of 5 on
  • 48 kHz / 128-frame worklet0 main-thread allocations
  • Granular Hann window68 ms grain · 26 Hz density
  • WebMIDI CC74 filter2x Chamberlin SVF + tanh
  • C++20 native WAV CLI39.4 KB binary · 1.21 ms
  • 16-bit PCM WAV export72,000 stereo frames

Replay local API cassettes

Tapeline proxies localhost HTTP into sorted JSON cassettes for offline replay at 10,552 req/s. Catch breaking JSON schema drift automatically.

JSONcassette-v2.json 6 drifts
cassette: tapeline-cassette-v2.json
replay: 10,552 req/s (0.08ms p50)
POST /v1/shaders/compile 422
GET  /v1/index/search 200 +214.9%
DEL  /v1/legacy/token removed
ADD  /v1/replay/health 200
schema_drifts: 6 (4 breaking)
p95_replay: 0.20ms
Offline replay matched 300 of 300 hits.

Local tools run offline

Every Drawplate package runs in Node.js 26 ESM, browser WebGL2, or Web AudioWorklet with zero npm dependencies. All indexes and cassettes live on disk.

Source footprint
323.9 KB (10.4k LOC)
Runtime packages
0 npm dependencies
Storage formats
SQLite, JSON, WAV
Test coverage
33 / 33 passing
drawplate bench (arm64)
runs=15
$ node bin/drawplate.mjs bench
Tool Size Median Measured result
subpass72 KB0.61 ms6 GLSL shaders
cleave80 KB0.11 ms1.47 ms (480 LOC)
cadastre76 KB0.23 ms808 KB · 282 syms
slewbox39.4 KB1.21 ms1.5s 48 kHz WAV
tapeline40 KB0.08 ms10,552 req/s
Total packages + bin: 323.9 KB · 24 files · 0 external deps

Daily workflows across five tools

Select a stage below to inspect the real Drawplate CLI command and measured output.

Subpass WebGL2 shader profiler

Run a 3-pass WebGL2 FBO pipeline in browser and analyze GLSL/WGSL files via CLI.

  • Static check0.61 ms (6 shaders)
  • FBO pipelineGeometry, Bloom, ACES
  • Browser presets3 GLSL ES 3.00
subpass · analyzer
GLSL 300 es
$node bin/drawplate.mjs subpass check pbr_sphere
Stage: fragment | Precision: highp | 3 uniforms
Pass 01 geometryRGBA16FPBR raymarch
Pass 02 bloom_extractHalf-resKaris + blur
Pass 03 tonemap_acesCompositeACES + sRGB
Analyzed 6 built-in shaders (630 lines)
0 syntax errors · 0.61 ms total static check

Shared local runtime architecture

All five packages share isomorphic ESM cores that run identically in Node.js 26 and the browser, paired with a native C++20 DSP binary.

  • Zero runtime npm dependencies, using built-in node:sqlite, node:http, and node:test.
  • Browser-native WebGL2 FBO rendering and lock-free 48 kHz Web AudioWorklet DSP.
  • Plain JSON cassettes, SQLite snapshots, and 16-bit PCM WAV files stored on disk.
Node 26 C++20 SQLite AST Git MCP JSON Linux macOS

Build and license questions

drawplate v1.0.0
Repo Manifest
packages/subpass72 KB0.61 ms check
packages/cleave80 KB0.11 ms AST
packages/cadastre76 KB0.23 ms query
slewbox-cli (C++20)39.4 KB1.21 ms WAV
packages/tapeline40 KB0.08 ms replay
data/cadastre-snapshot.json886 KB282 symbols
tests/*.test.mjs6 suites33 / 33 pass
LICENSE1.1 KBMIT
node --test tests/*.test.mjs · 33 of 33 passing

What license covers Drawplate tools?

All Drawplate packages, the CLI, and the C++20 renderer ship under the MIT license.

Which runtimes are supported?

The workbench runs in browsers with WebGL2 and Web Audio. The CLI runs on Node.js 22.13 or newer.

Do these tools run offline?

Every tool runs strictly offline on localhost with all state kept on local disk.

How do I build local Drawplate tools?

There are no npm packages to install. Run npm run build:native before npm test and npm run bench.