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 →Secure form toolkit · Canvas 2D · zero dependencies
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.
Type something, then search the page source for it. It isn't there.
Security, accessibility and integration features you'd otherwise assemble from a dozen packages.
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 →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 →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 →A hidden outline gives screen readers headings, groups, roles and linked errors. Follows high contrast, forced colors, reduced motion and zoom.
Accessibility →Describe a palette (theme, text and accent colours) and every token is derived, with contrast checks. Six presets, light and dark.
Theming →Funnels, drop-off fields and error codes for GA4, Tag Manager, Segment, PostHog or your endpoint. Events never contain values.
Analytics →An MCP server lets assistants validate and prefill a registration. The person sets the password themselves via a single-use link.
MCP →Native keyboards, SMS code autofill, touch scrolling with momentum, and fields that stay visible above the on-screen keyboard.
Mobile →A <pixi-form> web component for plain HTML, wrappers for React and Angular, and a config-only API for everything else.
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.
Uint32Array buffer.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>
import { PixiForm } from './PixiForm'; // thin wrapper, StrictMode-safe
export function Signup() {
return (
<PixiForm
theme="indigo"
config={{
fields: [
{ type: 'email', name: 'email', label: 'Email', required: true },
{ type: 'phone', name: 'mobile', label: 'Mobile', defaultCountry: 'IN' },
{ type: 'date', name: 'dob', label: 'Date of birth', max: 'today' },
],
onSubmit: async (values, form) => {
const body = await form.serialize({ encryptionKey: session.encryption });
const res = await secureSubmit('/api/register', body, { csrfToken: session.csrfToken });
return res.json(); // { ok, message, fieldErrors }
},
}}
/>
);
}
@Component({
imports: [PixiFormComponent],
template: `<pixi-form [config]="config" [theme]="accent()" (success)="saved($event)" />`,
})
export class SignupComponent {
readonly accent = signal<'indigo' | 'teal'>('indigo');
readonly config: PixiFormConfig = {
fields: [{ type: 'otp', name: 'code', label: 'Verification code', length: 6 }],
action: '/api/verify',
session: '/api/session',
};
}
// claude_desktop_config.json, .mcp.json, Cursor…
{
"mcpServers": {
"pixiform": {
"command": "node",
"args": ["--experimental-strip-types", "server/mcp.ts"],
"env": { "PIXIFORM_URL": "https://your-site.example" }
}
}
}
// The assistant calls start_registration({ fullName, email, country, … })
// → returns https://your-site.example/#draft=… (30 min, single use)
// The person opens it, the form is prefilled, and THEY set the password.
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.
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.
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.
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.
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.
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.
The guide covers setup, every control, theming, the server, encryption, accessibility, analytics and MCP.
Questions, integration help, or interested in using PixiFormUI in your product? Reach out by email or connect on LinkedIn.