example-canvas

example-canvas is a skill for Claude Code, Codex from BintzGavin/helios. It costs 29 tokens per session (434 once invoked), scanned A, original, Apache-2.0.

A set of patterns for using the Helios library with the browser’s Canvas API, which draws 2D and 3D graphics. It targets animations made without a larger UI framework.

In plain words
What is it for?
It is for creating fast 2D or 3D animations with Vanilla Canvas and Helios.
Why use it?
It helps you build canvas animations without having to work out the integration patterns yourself.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for creating fast 2D or 3D animations with Vanilla Canvas and Helios.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bintzgavin/helios/canvas
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add BintzGavin/helios --skill canvas
Clone the repo
git clone --depth 1 https://github.com/BintzGavin/helios

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for example-canvas

README.md
[![agentmods](https://agentmods.dev/badge/skills/bintzgavin/helios/canvas/github.svg)](https://agentmods.dev/skills/bintzgavin/helios/canvas)
Your own site
<a href="https://agentmods.dev/skills/bintzgavin/helios/canvas"><img src="https://agentmods.dev/badge/skills/bintzgavin/helios/canvas/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for example-canvas

Your own site · 80×15
<a href="https://agentmods.dev/skills/bintzgavin/helios/canvas"><img src="https://agentmods.dev/badge/skills/bintzgavin/helios/canvas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 434 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00434
Opus 5.5 $0.00012 $0.00174
Sonnet 5.5 $0.00006 $0.00087
Haiku 4.5 $0.00003 $0.00043

Measured 3mo ago against content hash 809f8557ecc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

example-canvas scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/examples/canvas/SKILL.md · 76 lines

What it actually says

Vanilla Canvas Patterns

Use Helios directly with the HTML5 Canvas API. This provides the lowest overhead and highest performance.

Quick Start

1. HTML Setup

<!-- composition.html -->
<canvas id="canvas"></canvas>
<script type="module" src="./main.js"></script>

2. Logic Setup

// main.js
import { Helios } from '@helios-project/core';

// Setup
const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');
const width = 1920;
const height = 1080;

canvas.width = width;
canvas.height = height;

// Initialize Helios
const helios = new Helios({
  duration: 5,
  fps: 60
});
helios.bindToDocumentTimeline();
window.helios = helios;

// Draw Function
function draw(frame) {
  // Clear
  ctx.clearRect(0, 0, width, height);

  // Calculate state
  const time = frame / helios.fps;
  const t = time / helios.duration; // 0..1

  // Draw
  const x = t * (width - 100);
  ctx.fillStyle = 'tomato';
  ctx.fillRect(x, height / 2 - 50, 100, 100);
}

// Subscribe
helios.subscribe((state) => {
  draw(state.currentFrame);
});

// Initial Render
draw(0);

Performance Tips

  • Pre-calculate values: Do heavy math (like sine tables or physics simulations) upfront if possible.
  • OffscreenCanvas: For very complex scenes, consider rendering in a Web Worker using OffscreenCanvas to keep the main thread free.
  • Batch Draw Calls: Minimize context state changes (fillStyle, strokeStyle, etc).

Source Files

  • Example: examples/simple-canvas-animation/
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 76 lines · 29 tokens per session scan A 809f8557ecc7

Subscribe to this mod's changes

example-canvas is a skill published in the GitHub repository BintzGavin/helios (138 stars, last pushed 22d ago), licensed Apache-2.0. It adds 29 tokens to every session and 434 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

example-canvas compared with skills from other repositories

example-canvas next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
example-canvasBintzGavin/heliosSkill13822d agoApache-2.0A29Claude Code, Codex
frost-sequence-camera-orbitheygen-com/hyperframesSkill95ktodayApache-2.0A51Claude Code
cuboid-carouselheygen-com/hyperframesSkill95ktodayApache-2.0A45Claude Code
media-useheygen-com/hyperframesSkill95ktodayApache-2.0A75Claude Code
slideshowheygen-com/hyperframesSkill95ktodayApache-2.0A57Claude Code
code-slice-heroheygen-com/hyperframesSkill95ktodayApache-2.0A44Claude Code
glass-shard-titleheygen-com/hyperframesSkill95ktodayApache-2.0A39Claude Code