Secure form toolkit · Canvas 2D · zero dependencies

Forms that keep secrets, even from the page they live on.

PixiFormUI draws every field on a canvas. What people type lives in wipeable memory, not in the DOM, so browser extensions, session-replay scripts and injected code can't read it with querySelector. Passwords leave the browser encrypted.

  • 57 KBgzipped, everything included
  • 0runtime dependencies
  • 7server languages decrypt it
sign-in · rendered on canvas

Type something, then search the page source for it. It isn't there.

Everything a sensitive form needs

Security, accessibility and integration features you'd otherwise assemble from a dozen packages.

Values never touch the DOM

Controls are painted on a canvas. A single hidden input relays keystrokes and is reset after every one, and only trusted events are accepted.

Security model →

End-to-end encrypted passwords

ECDH P-256, HKDF and AES-256-GCM, bound to a single-use challenge and the field name. Decryptors for Node, Python, Go, C#, Ruby, PHP and Java.

Encryption spec →

One set of rules

The same rule file validates in the browser, on your server and in AI-agent tools, with JSON Schema generated from it. No drift.

Shared rules →

Accessible by design

A hidden outline gives screen readers headings, groups, roles and linked errors. Follows high contrast, forced colors, reduced motion and zoom.

Accessibility →

Fully themeable

Describe a palette (theme, text and accent colours) and every token is derived, with contrast checks. Six presets, light and dark.

Theming →

Privacy-safe analytics

Funnels, drop-off fields and error codes for GA4, Tag Manager, Segment, PostHog or your endpoint. Events never contain values.

Analytics →

Ready for AI agents

An MCP server lets assistants validate and prefill a registration. The person sets the password themselves via a single-use link.

MCP →

Mobile first

Native keyboards, SMS code autofill, touch scrolling with momentum, and fields that stay visible above the on-screen keyboard.

Mobile →

Works anywhere

A <pixi-form> web component for plain HTML, wrappers for React and Angular, and a config-only API for everything else.

Embedding guide →

Try it

A full sign-up form built from a config object. Nothing is sent anywhere: the password is encrypted with a key generated in your browser, and the panel shows exactly what your server would receive.

How it works

  1. PaintEach control draws itself on a Canvas 2D scene graph. The DOM holds only a hidden accessibility outline: labels and states, no values.
  2. TypeKeystrokes pass through one hidden input that's emptied after every event, then go into a wipeable Uint32Array buffer.
  3. ValidateShared rules check the value as the person types, the same rules your server will apply.
  4. SealOn submit, password bytes are encrypted for your server's public key, bound to a one-time challenge, and wiped from memory.
  5. VerifyYour server decrypts with the bundled helper for your language, re-validates with the same rules and stores a peppered scrypt hash.

Drop it into any stack

Describe the fields as data. PixiFormUI builds the controls, layout, validation and submission.

<script type="module" src="/vendor/pixiform.standalone.js"></script>
<pixi-form id="signup"></pixi-form>

<script type="module">
  document.getElementById('signup').config = {
    title: 'Create account',
    theme: 'teal',
    action: '/api/register',      // POST JSON, passwords encrypted
    session: '/api/session',      // CSRF token + encryption key
    fields: [
      { type: 'group', title: 'Account', fields: [
        { type: 'text', name: 'name', label: 'Name', required: true },
        { type: 'email', name: 'email', label: 'Email', required: true },
        { type: 'password', name: 'password', label: 'Password', required: true, strengthMeter: true },
      ] },
      { type: 'checkbox', name: 'terms', label: 'I accept the terms', required: true },
    ],
  };
</script>

Frequently asked questions

What is PixiFormUI?

PixiFormUI is a JavaScript and TypeScript form library that draws every field on an HTML canvas. Typed values live in wipeable memory instead of the page DOM, so browser extensions, session-replay tools and injected scripts can't read them.

How does it protect passwords?

Password fields never become JavaScript strings. On submit they are encrypted in the browser for your server's public key (ECDH P-256, HKDF-SHA256 and AES-256-GCM), bound to a single-use challenge, then wiped from memory. Decryptors are included for Node.js, Python, Go, C#, Ruby, PHP and Java.

Is a canvas form accessible?

Yes. A hidden accessibility outline gives screen readers headings, labelled groups, roles, states and linked error messages, and the forms follow high contrast, forced colors, reduced motion and browser zoom.

Does it work with React, Angular or plain HTML?

Yes. Use the <pixi-form> web component in plain HTML, the provided React and Angular wrappers, or the framework-agnostic mountPixiForm() function in Vue, Svelte or anything else.

How big is it, and what does it depend on?

The complete standalone bundle is about 57 KB gzipped and has no runtime dependencies. It needs no WebGL, no workers and no unsafe-eval, so it runs under a strict Content Security Policy.

Can AI assistants fill in the forms?

Through the included MCP server, an assistant can validate and prefill a registration with non-secret details. The person then opens a single-use link and enters the password themselves, so secrets never pass through the AI.

Build your first secure form

The guide covers setup, every control, theming, the server, encryption, accessibility, analytics and MCP.

Get in touch

Questions, integration help, or interested in using PixiFormUI in your product? Reach out by email or connect on LinkedIn.