Universal, deterministic 6-layer Comic-Bust SVG Avatar Generator, Compact String/ID Attribute Codec (pfp1-...), Procedural Name Generator, and Backend Persistence Server for Autonomous Agents, Cyber Creatures/Mascots, and Human Operators.
Click to create & customize new PFPs across 6 SVG layers + custom palettes.
Save your own custom presets and export as SVG, PNG, or WebP in any resolution.
| Agents | Humans | Creatures |
|---|---|---|
![]() |
![]() |
![]() |
Generate deterministic Agents, Humans, and Creatures/Mascots from any seed or compact string ID.
-
Authentic Hand-Crafted Comic-Bust SVG Geometry (Zero Slopmocks)
- Built directly from the canonical
public/pfp/*.svgvector pack (coding_agent.svg,lila_agent.svg,ninja_agent.svg,orchestrator_agent.svg,browser_agent.svg,red_team_agent.svg,figma_agent.svg,voice_agent.svg,happy_agent.svg,founder.svg,ops.svg,product.svg,analyst.svg,qa.svg) plus 7 distinct Creature/Mascot species (Dragon, Dire Wolf, Grizzly Bear, Night Owl, Kraken/Cthulhu, Minotaur Bull, Kitsune Fox). - Features bold
#000000/#0a0a0fcomic ink outlines, Ben-Day halftone dot clusters, 3D isometric extruded JiMesh cubes, fluttering ninja headbands & katanas, orchestrator conductor batons, dual toxic/sensor horn beacons, and comic nameplate banners.
- Built directly from the canonical
-
Compact String / ID Attribute Codec (
pfp1-...— Zero-DB-Column Mode)- Encode all 6 SVG layers + palette + optional persona callsign into a single URL-safe string ID:
pfp1-ag-c1-b4-ch6-e2-h8-a5-p2~Nexus-42 - Store this single string in any existing
id,name, oravatarfield — no extra JSON columns required in your database schema! - Pass that string to
PFP.renderPfpSvg(id)or<img src="/api/v1/pfp/pfp1-ag-c1-b4-ch6-e2-h8-a5-p2~Nexus-42.svg" />to deterministically reconstruct the full 6-layer SVG in$O(1)$ time.
- Encode all 6 SVG layers + palette + optional persona callsign into a single URL-safe string ID:
-
Feature #2: Optional Procedural Name & Callsign Generator (
generatePersonaName)- Deterministically generates Agent, Creature/Mascot, and Human Operator names, callsigns, role titles, and comic banner labels from any seed or trait combination without polluting the core schema.
-
100% Responsive Fluid ViewBox + Level-of-Detail (LOD) Scaling
-
viewBox="0 0 400 400"withwidth="100%" height="100%"andResizeObserverLOD switching:-
micro(< 36px): High-contrast bust + visor for tiny chat/table badges. -
compact(36px – 95px): Bust + headwear + chest emblem + halftone background. -
full(>= 96px): Full detail + comic sparkles + bottom nameplate banner.
-
-
PFP-Generator/
├── index.html # Standalone interactive HTML Preview, Studio & Decoder
├── start.sh # One-click Linux/macOS server + browser launcher
├── start-windows.bat # One-click Windows server + browser launcher
├── PFP-Generator.desktop # Linux Desktop double-click launcher
├── package.json # Importable NPM package (@jimesh/pfp-generator)
├── dist/
│ ├── pfp-generator.js # Universal UMD / CJS / Browser bundle (window.PFP)
│ ├── pfp-generator.mjs # ES Module bundle
│ └── index.d.ts # TypeScript declarations
├── src/
│ └── index.ts # TypeScript package entry point
├── schemas/
│ ├── pfp-ontology.ts # Pure SSOT TypeScript schema for PFP Generator
│ └── pfp-ontology.schema.json # JSON Schema (Draft 2020-12)
├── backend/
│ ├── server.js # Standalone HTTP server + Express/Connect router
│ └── data/pfp-store.json # Persistent JSON store for saved PFP profiles
├── public/pfp/ # All 61 canonical static SVG assets & manifest.json
└── scripts/
└── test.mjs # Automated determinism, codec, and LOD test suite
Zero external dependencies are required (node >= 18):
./start.sh
# or: node backend/server.js -> http://127.0.0.1:4180Or open index.html directly in any browser!
import PFP, {
resolvePfpSpec,
encodePfpId,
decodePfpId,
generatePersonaName,
renderPfpSvg,
openExportModal
} from '@jimesh/pfp-generator';
// A) Render directly from any seed or preset name
const svg = renderPfpSvg('ninja_agent', { fluid: true });
// B) Encode all PFP attributes into a single compact string ID (no JSON column needed!)
const spec = resolvePfpSpec('ses_alpha_01', 'agent', {
headwear: 'crown',
eyes: 'cyber_optic',
chest: 'mesh_emblem'
});
const compactId = encodePfpId(spec, 'CyberKing_01');
// -> "pfp1-ag-c4-b4-ch6-e2-h5-a2-p1~CyberKing_01"
// C) Reconstruct & render the exact SVG anywhere from just that string
const decodedSpec = decodePfpId(compactId);
const reconstructedSvg = renderPfpSvg(compactId);
// D) Feature #2: Procedural Name + Compact ID Generator
const persona = generatePersonaName('kitsune-seed-99', { entityKind: 'creature' });
console.log(persona.name); // e.g. "Kitsune-42 // Cyber Fox"
console.log(persona.compactId); // e.g. "pfp1-cr-c5-b5-ch6-e2-h6-a6-p6~Kitsune-42"
console.log(persona.svgUrl); // e.g. "/api/v1/pfp/pfp1-cr-c5-b5-ch6-e2-h6-a6-p6~Kitsune-42.svg"Mount in Express (app.use(createPfpRouter())) or run standalone (node backend/server.js):
| Method | Endpoint | Description |
|---|---|---|
GET |
/api/v1/pfp/:idOrCompactSlug.svg |
Renders any saved ID, compact pfp1-... string, or preset (ninja_agent.svg) directly as image/svg+xml. |
GET |
/api/v1/pfp/svg?seed=...&kind=agent |
Renders dynamic SVG with optional query overrides (headwear, eyes, body, chest, background, size). |
GET |
/api/v1/pfp/generate-name?seed=... |
Runs Feature #2 (Name + Callsign + Compact ID generator). |
GET |
/api/v1/pfp |
Lists all persisted PFP profiles and available presets. |
PUT |
/api/v1/pfp/:id |
Persists a PFP specification + compactId to backend/data/pfp-store.json and writes public/pfp/custom_<id>.svg. |
DELETE |
/api/v1/pfp/:id |
Deletes a persisted PFP profile. |
npm test

