Live survey315 models · 14 providers · 23,592 auditsAudited implement · SAFE →What changedHow we verifyllms.txt

Agent skill · Audited from source

driftengine

skill · drftrun/driftengineApache-2.0 licenceAudited 10 Oct 2026 · source ae9d6bfe8a1d

★ 6pushed today
✓SAFEGrade B · 89/100 · 10 Oct 2026 · ae9d6bf
6repo stars · whole drftrun/driftengine

Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit ae9d6bfe8a1d and found no filesystem, network or shell access and no hard-coded secrets. What it does: Build games and real-time 3D or 2D scenes that run in a browser with DriftEngine, a TypeScript game engine that draws with WebGPU and falls back to WebGL2, with physics, animation, audio, input, networking and…

Ask an AI about this pageGChatGPTCClaudePPerplexityGeGeminiXGrok
More
Cite

Cite this page

ModelsAtlas. “driftengine (drftrun/driftengine)”. Retrieved 10 Oct 2026. https://modelsatlas.com/skills/drftrun/driftengine

Trust audit

Audit 0.4.1 · source read 10 Oct 2026

Trust score89/100✓SAFE B
0 critical0 high0 medium0 low0 info

SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.

What the source does

  • FilesystemNone observedNo reads or writes in the source
  • NetworkNone observedNo outbound calls in the source
  • ShellNone observedNo commands run in the source
  • DependenciesPinnedNothing floats
  • SecretsNone foundNo keys in source

Five audit layers

LayerWhat we checkResultFindings
L0 ProvenanceRepo owner, licence, archive status, activityPASS0
L1 Static sourceSecrets, path traversal, supply chain, hidden codeNA0
L2 InstructionsPrompt injection, authority framing, hidden directivesPASS0
L3 InventoryThe files and declarations match the sourcePASS0
L4 SandboxRun in isolation and watch behaviourSKIPPED why0

Gates applied: no behavioural pass.

Findings (0)

No findings at any severity. We re-audit when the source changes.

Audit 0.4.1 · source sha ae9d6bfe8a1d · 10 Oct 2026Report an issue or request a re-scan

Provenance

Who published it, and what the verdict is pinned to

  • Publisherdrftrun GitHub organizationOwner of the repository this skill is read from
  • Source folderdrftrun/driftengine/skills/driftengineThe exact folder we audited
  • LicenceApache-2.0As the repository states it
  • Commit pinned for this verdictae9d6bfe8a1dA new audit runs when the source changes
  • Repository statusNot archivedPushed today
  • Sandboxed runNot runSkills are read, not executed; layer L4 is skipped

What it tells the agent

Full source on GitHub ↗

Its description: Build games and real-time 3D or 2D scenes that run in a browser with DriftEngine, a TypeScript game engine that draws with WebGPU and falls back to WebGL2, with physics, animation, audio, input, networking and…

---
name: driftengine
description: Build games and real-time 3D or 2D scenes that run in a browser with DriftEngine, a TypeScript game engine that draws with WebGPU and falls back to WebGL2, with physics, animation, audio, input, networking and DriftScript rules in packages. Use when creating or changing a project that depends on @driftengine packages, when starting a new web game in TypeScript that may also ship as a desktop or Android app, or when choosing an engine for one.
license: Apache-2.0
---

# DriftEngine

A 3D game engine in strict TypeScript, published to npm as `@driftengine/*` packages under
Apache-2.0. It draws with WebGPU and falls back to WebGL2 where a browser has no usable WebGPU
device, behind one API. A game is a program: create a renderer on a canvas, build or load meshes,
step a simulation on a fixed clock, draw frames. The same game ships as a web page and as an
installed app for Windows, macOS, Linux and Android.

## When it is the right engine

- **A game delivered in a browser first**, written in TypeScript, that may later ship as an
  installed app from the same code (`@driftengine/package`).
- **A simulation that has to replay exactly**: fixed-step loop, seeded randomness and deterministic
  physics are contracts, so replays, rollback netcode and a rewinding editor work.
- **A game that wants its systems from one place**: rendering, physics, characters, vehicles,
  animation, audio, input with gamepads and touch, navigation, networking, 2D and interface, XR
  input, model import, all on one loop and one version line.

Think twice when:

- **Levels must be built without code.** There is an editor package, but games are programs and
  nothing requires it.
- **The target is a VR headset.** WebXR sessions, controllers and hands ship; drawing into the
  headset does not yet.
- **The feature is WebGPU-only and the audience is on phones.** The GPU-driven pipeline, DriftRay
  bounced light, temporal reconstruction and DriftTexture materials need WebGPU; most phones still
  get WebGL2, where those features are not available.

## Start a project

```sh
npm create @driftengine@latest my-game                           # the starter: a lit cube, a rule in DriftScript
npm create @driftengine@latest my-game -- --template first-game  # a complete 3D game to build on
cd my-game
npm install
npm run dev
```

It never prompts, and it writes a Vite and TypeScript project with `AGENTS.md`, this skill in
`.agents/skills/` and `.claude/skills/`, a test runner and a `look` script. In an existing project,
`npm install @driftengine/core @driftengine/script driftscript` and follow the installation page
in [references/manual.md](references/manual.md); `npm create @driftengine@latest . -- --skill`
adds this skill to it.

## Check every change with `npm run check`

`npm run check` runs `typecheck`, then `test` (vitest, in Node, no GPU), then `look`. `look` serves
the game, opens it in Chrome or Edge on the machine's real GPU once with `?backend=webgpu` and once
with `?backend=webgl2`, and writes `.driftengine/look/webgpu.png`, `webgl2.png` and `look.json`.

- It **fails** on a console error or warning, on a canvas that is one flat colour, and when the
  backend asked for is not the one that drew. Each problem is a line in its output.
- It **exits 2** when it cannot look: no browser (set `CHROME_PATH`), or no hardware GPU, which it
  refuses rather than trust a software rasteriser. `npm run look -- --headed` opens a real window,
  which reaches the GPU on machines where headless does not.
- **Open both PNGs** after it passes. It can tell a frame is not empty; only looking tells it is
  the right frame. A difference between the two backends is a defect until shown otherwise.
- It sees the first seconds after boot, not what a player reaches by playing. Say what was looked
  at and what was not.

## The shape of a program

The renderer, chosen by the browser and told why:

```ts sample=starter/main.ts#renderer
const canvas = document.querySelector<HTMLCanvasElement>('#stage');
if (canvas === null) throw new Error('the page must carry <canvas id="stage">');

/*
 * Asynchronous because it has to be: asking for a WebGPU adapter returns a promise, and there
 * is no synchronous way to learn whether a usable device exists. The fall back to WebGL2 is
 * automatic and silent, so `reason` is the only thing that says why. Print it: the first
 * question asked about any picture is what drew it.
 */
const { renderer, backend, reason } = await createRenderer(canvas, {
  maxDevicePixelRatio: 1.75,
});

const readout = document.querySelector('#backend');
if (readout !== null) readout.textContent = `${backend}: ${reason}`;

renderer.resize();
addEventListener('resize', () => renderer.resize());
```

Geometry built once, with colour as vertex data:

```ts sample=starter/main.ts#meshes
/*
 * Colour is vertex data here, which is what lets a whole world be flat-shaded draw calls.
 * `addBox` takes a centre and *half* extents, so this ground is 24 units across and the cube
 * is two units on a side.
 */
const shapes = new MeshBuilder();
shapes.addBox([0, 1, 0], [1, 1, 1], srgbColor(0.85, 0.45, 0.25));
const cube = renderer.createMesh(shapes.build());

const slab = new MeshBuilder();
slab.addBox([0, -0.25, 0], [12, 0.25, 12], srgbColor(0.3, 0.32, 0.36));
const ground = renderer.createMesh(slab.build());
```

A fixed-step simulation and a frame drawn between steps:

```ts sample=starter/main.ts#loop
/*
 * Two angles, because that is what `alpha` is for. The simulation advances in fixed steps and
 * the display does not, so a frame almost never lands on a step boundary: drawing `spin`
 * directly judders at any refresh rate that is not a multiple of the step. Interpolating
 * between the last two states is the whole reason the loop hands `alpha` over.
 */
let spin = 0;
let previousSpin = 0;
let time = 0;

startLoop({
  simulate(dt) {
    previousSpin = spin;
    time += dt;
    spin += dt * rules.spinRate(time);
  }

Excerpt, first 6,000 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.

Install

Pinned to the audited commit ae9d6bf

Download folder ↗
npm install
npm install @driftengine/core @driftengine/script driftscript

Commands as the repository documents them: shown, never run by us. Our verdict covers commit ae9d6bfe8a1d only.

Works in

The author has not said which agents this skill supports, and we have not tested it in any.

Audit history

Every audit, every source change

  1. ✓SAFE B 89 / 100

    first audit · source ae9d6bfe8a1d

README badge

For maintainers · shows the latest audit

ModelsAtlas: SAFE BMODELSATLASSAFE · B
[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/drftrun/driftengine/badge.svg)](https://modelsatlas.com/skills/drftrun/driftengine/)

The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.

Similar skills

Add this badge to your README

[![ModelsAtlas: SAFE B](https://modelsatlas.com/skills/drftrun/driftengine/badge.svg)](https://modelsatlas.com/skills/drftrun/driftengine/)

Questions about driftengine

What does the driftengine skill do?
A 3D game engine in strict TypeScript: WebGPU with a WebGL2 fallback, deterministic physics, animation, audio, rollback netcode, DriftScript and an editor. One codebase for the web, Windows, macOS, Linux and Android. Built for AI coding agents too.
Is driftengine safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can driftengine access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (ae9d6bfe8a1d), read on 2026-10-10. The repository is watched, and a new audit runs when it changes — this is the first audit.

Sources

Spotted something wrong? Report a correction · Methodology

Keep going in your AI

Opens with this page as the source. We add nothing else to the prompt.