English | 日本語
Deterministic molecular-style identicons.
Structicon is a zero-dependency, offline-first library that generates unique, molecular-like identity icons from strings. Inspired by chemical structures, it produces abstract, premium-looking SVGs that are deterministic—the same input always produces the identical icon.
- Deterministic: Same input string → Same structure & color.
- Abstract Aesthetics: No more boring faces or pixels. Structured nodes and bonds.
- Offline-first: Zero server calls. All computation happens locally.
- Tiny & Fast: Zero dependencies. Lightweight analytical layout.
- Framework Ready: Includes a React component wrapper.
npm install @monorka/structiconimport { generateIdenticon } from '@monorka/structicon';
const svg = generateIdenticon('user-123', { size: 64 });
// Returns: <svg ...>...</svg>const dataUrl = generateIdenticon('user-123', { format: 'dataurl' });
// Returns: data:image/svg+xml;base64,...import { Structicon } from '@monorka/structicon/react';
function Profile() {
// You can specify themes like 'dark', 'neon', or 'organic'
return <Structicon input="monorka" theme="neon" size={80} />;
}Structicon comes with curated color palettes optimized for different environments:
Generate icons directly from your terminal:
npx structicon "my-identity" my-icon.svginput(string): The identity string (username, email, etc.)options(object):size(number): SVG width/height (default: 64)strokeWidth(number): Thickness of bonds (default: 2)color(string): Custom CSS color (default: derived from hash)theme('light' | 'dark' | 'neon' | 'organic'): Predefined color palette (default: 'light')format('svg' | 'dataurl'): Output format (default: 'svg')
# Install dependencies
npm install
# Run tests
npm test
# Build library
npm run build
# Run demo page
npm run demoMIT © Monorka Co., Ltd.