Idiomark - Getting Started Guide
Welcome to Idiomark! This guide will help you get up and running with personality-carrying profiles for AI applications.
What is Idiomark?
Idiomark is a portable file format for capturing and using AI personality profiles. A Idiomark file contains:
- Voice - How someone speaks (tone, style)
- Patterns - Communication habits (emoji use, sentence length, punctuation)
- Domains - Areas of expertise (programming, design, etc.)
- Values - Beliefs and associations
- Knowledge - Frequent topics and mentions
Why Use Idiomark?
| Use Case | Benefit |
|---|---|
| AI Chatbots | Consistent brand voice across all channels |
| Gaming NPCs | Memorable characters with unique dialogue styles |
| Virtual Assistants | Personalized AI that knows your preferences |
| Content Creation | Generate articles, posts, emails in your voice |
Installation
Prerequisites
Before installing Idiomark, ensure you have:
- Node.js 18+ installed (check with
node --version) - pnpm 9+ or npm (check with
pnpm --version) - An OpenAI API key or compatible LLM provider for generation features
Option 1: Using the CLI (Recommended for First Time)
Recommended for Beginners
The CLI is the easiest way to explore Idiomark. It provides interactive commands for extracting, viewing, and using personality profiles without writing any code.
# Install Idiomark CLI globally
npm install -g @idiomark/cli
# Or using pnpm
pnpm add -g @idiomark/cli
# Verify installation
idiomark --version
Option 2: Using in Your Project
# Install core package
npm install @idiomark/core
# Or with pnpm
pnpm add @idiomark/core
Your First Idiomark File
Let's create your first personality profile!
Step 1: Extract a Personality
# Extract from text samples you provide
idiomark extract text --input "your-writing-samples-here" --output your-profile.idiomark
Step 2: View Your Idiomark File
idiomark info your-profile.idiomark
This will display your personality profile in a readable format:
╔═══════════════════════════════════════════════════════════════╗
║ Personality Profile ║
╠═══════════════════════════════════════════════════════════════╣
║ ID: abc-123-def-456 ║
║ Entity: human ║
║ Sources: text-samples ║
║ Sample Size: 150 samples ║
║ Extracted: 2024-01-15T10:30:00Z ║
╠═══════════════════════════════════════════════════════════════╣
║ Voice ║
║ Primary Tone: friendly (confidence: 0.92) ║
║ Secondary: enthusiastic ║
╠═══════════════════════════════════════════════════════════════╣
║ Patterns ║
║ Sentence Length: 14.2 words avg ║
║ Emoji Usage: high (👍, 🎉, 🚀) ║
║ Punctuation: Exclamation frequent ║
╠═══════════════════════════════════════════════════════════════╣
║ Domains (Expertise) ║
║ • TypeScript (0.95) ║
║ • React (0.88) ║
║ • Web Development (0.82) ║
╠═══════════════════════════════════════════════════════════════╣
║ Values ║
║ • open-source (positive, 0.91) ║
║ • innovation (positive, 0.85) ║
║ • clean code (positive, 0.78) ║
╠═══════════════════════════════════════════════════════════════╣
║ Knowledge ║
║ Frequent Terms: typescript, react, component, interface ║
║ Primary Topics: web development, frontend, UI/UX ║
╚═══════════════════════════════════════════════════════════════╝
Using Your Personality
Generate Responses
# Interactive chat mode
idiomark chat your-profile.idiomark
# Single prompt
idiomark respond your-profile.idiomark "What's your opinion on React vs Vue?"
In Your Code
import { loadIdiomarkFile, generateResponse } from '@idiomark/core'
// Load personality
const personality = await loadIdiomarkFile('./your-profile.idiomark')
// Generate response
const response = await generateResponse(personality, {
message: "Hello! How are you today?"
})
console.log(response.content)
Next Steps
Learn More
Explore
Build
- 🔌 Integrations: Add Idiomark to your existing tools
- 🎮 Applications: Build Idiomark-powered apps and games
Common Workflows
Workflow 1: Create and Use a Personality
# 1. Extract personality from your text samples
idiomark extract text --input "your-writing-samples-here" --output user.idiomark
# 2. Use it in the CLI
idiomark respond user.idiomark "Introduce yourself"
Troubleshooting
Common Issues and Solutions
Most installation problems are caused by PATH configuration or missing dependencies. If you encounter errors, try these steps in order:
- Verify Node.js and pnpm are correctly installed
- Use
npx @idiomark/clias an alternative to global installation - Check that your LLM provider API keys are set correctly with
idiomark config get apiKey
"Command not found: idiomark"
# Install CLI globally
npm install -g @idiomark/cli
# Or use npx
npx @idiomark/cli --help
"Invalid API key"
# Set your LLM provider API key (used for generation features)
idiomark config set apiKey YOUR_API_KEY
# Verify
idiomark config get apiKey
Getting Help
Happy personality building! 🎉