✨TypeScript-first persona generation
Generate Realistic Personas
with Statistical Distributions
Create diverse, statistically accurate personas using mathematical distributions, AI-powered insights, and real-world correlations. Perfect for testing, simulations, and user research.
Quick Installation
npm install @jamesaphoenix/persona-sdk
Quick Example
Generate realistic personas with statistical distributions
generate-team.ts
1import { PersonaGroup, NormalDistribution } from '@jamesaphoenix/persona-sdk';2
3// Generate realistic tech workers4const team = await PersonaGroup.generate({5 name: 'Tech Workforce',6 size: 100,7 attributes: {8 age: new NormalDistribution(32, 8),9 salary: new NormalDistribution(95000, 25000),10 experience: new NormalDistribution(6, 3)11 },12 correlations: [13 { attribute1: 'age', attribute2: 'salary', correlation: 0.7 },14 { attribute1: 'experience', attribute2: 'salary', correlation: 0.8 }15 ]16});17
18// Get insights19const insights = team.getStatistics('salary');20console.log(`Average salary: $${insights.mean.toLocaleString()}`);
✅ Realistic Results
- • Age-appropriate experience levels
- • Salary correlates with seniority
- • Statistically valid distributions
- • No impossible combinations
⚡ Developer Friendly
- • TypeScript support included
- • Intuitive API design
- • Reproducible with seeds
- • Comprehensive documentation
Key Features
Everything you need for persona generation
🎲
Statistical Distributions
Normal, Uniform, Exponential, Beta, Poisson, and custom distributions
🤖
AI-Powered Generation
Create personas from text prompts and analyze media content
🔗
Realistic Correlations
Model real-world relationships between attributes
👥
Group Management
Powerful tools for managing persona collections
💬
Focus Groups
Simulate discussions with diverse perspectives
🎯
Real-World Examples
CTR prediction, market research, A/B testing
Ready to Get Started?
Build better applications with realistic persona data