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 (Personality-Carrying Protocol) is a universal standard for storing, syncing, 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 |
| Digital Twins | Preserve and interact with personality profiles |
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 Twitter/X
idiomark extract twitter --handle @yourhandle --output your-profile.idiomark
# Extract from GitHub
idiomark extract github --username yourusername --output your-profile.idiomark
# Extract from raw text
idiomark extract text --input "your-text-here" --output your-profile.idiomark
Step 2: View Your Idiomark File
idiomark view your-profile.idiomark
This will display your personality profile in a readable format:
╔═══════════════════════════════════════════════════════════════╗
║ Personality Profile ║
╠═══════════════════════════════════════════════════════════════╣
║ ID: abc-123-def-456 ║
║ Entity: human ║
║ Sources: twitter, github ║
║ Sample Size: 150 posts ║
║ 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 ask 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)
Cloud Storage & Sync
Store in the Cloud
# Configure API
idiomark config set apiKey your-api-key
idiomark config set baseURL https://api.idiomark.protocol
# Upload your personality
idiomark push your-profile.idiomark
Sync Across Devices
# Enable sync
idiomark sync enable
# Pull latest changes
idiomark pull
# Push your changes
idiomark push
Mobile Integration
iOS App
import IdiomarkSDK
// Load personality
let file = try await IdiomarkSDK.shared.load(id: "your-profile-id")
// Generate response
let response = try await IdiomarkSDK.shared.respond(
message: "Hello!",
personalityId: "your-profile-id"
)
Android App
import xyz.idiomark.sdk.IdiomarkSDK
// Load personality
val file = IdiomarkSDK.load("your-profile-id")
// Generate response
val response = IdiomarkSDK.respond(
message = "Hello!",
personalityId = "your-profile-id"
)
Next Steps
Learn More
Explore
- 🔗 Examples: Browse examples/ directory
- 🌐 Community: Join our Discord
- 🐦 Twitter: Follow @idiomark_protocol
Build
- 🏗️ Platform Adapters: Create adapters for your favorite platforms
- 🔌 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
idiomark extract twitter --handle @user --output user.idiomark
# 2. Upload to cloud
idiomark push user.idiomark
# 3. Use in your app
idiomark ask user.idiomark "Introduce yourself"
Workflow 2: Team Collaboration
# 1. Create a team
idiomark teams create "My Team" --tier pro
# 2. Invite members
idiomark teams invite user@example.com --role admin
# 3. Share personality
idiomark teams share user.idiomark --scope team
# 4. Members can now use it
idiomark ask user.idiomark "Hello!" --as-team "My Team"
Workflow 3: Verify Identity
# 1. Generate identity keys
idiomark identity generate
# 2. Issue ownership claim
idiomark identity claim twitter --handle @user
# 3. Verify claim
idiomark identity verify claim-id
# 4. Check trust score
idiomark identity trust your-did
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 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 API key
idiomark config set apiKey YOUR_API_KEY
# Verify
idiomark config get apiKey
"Personality not found"
# Check available personalities
idiomark list
# Make sure you're using the correct ID
idiomark view personality-id
Getting Help
Happy personality building! 🎉