kasvillage-procedural-sdk
v2.0.0
Published
KasVillage Procedural Generation SDK - Constrained avatar and background generation with no realistic faces
Maintainers
Readme
kasvillage-procedural-sdk
Constrained procedural generation SDK for KasVillage DApps and Games.
Features
- No realistic human faces - Enforces stylized proportions
- No image uploads - Blocks photo/camera bypass attempts
- User Avatar Plugin - Bring your L1-verified avatar to any DApp
- 26 fantasy races - Human, Elf, Orc, Vampire, Alien, etc.
Install
npm install kasvillage-procedural-sdk @noble/hashesUsage
import { generateCharacter, initAvatarContext, getAvatar, scanCode } from 'kasvillage-procedural-sdk';
// Generate NPC
const npc = generateCharacter('elf', 'female', 'seed');
// Load user's avatar
const ctx = await initAvatarContext('elf', 'neutral');
const avatar = getAvatar(ctx);
// Scan DApp code
const result = scanCode(code);
if (!result.isValid) console.error(result.violations);License
MIT
