Skip to main content

Abstract

Idiomark-Fun (PEP-0) is a lightweight, stateless web application that generates personality profiles from public GitHub and Twitter data. Designed as a viral on-ramp to the Idiomark ecosystem, it provides immediate value through Silly Tavern-compatible character card exports while showcasing the power of the underlying Idiomark infrastructure.

Key characteristics:

  • Minting tool, not platform (no accounts, no persistence)
  • Public data only (ethical extraction from publicly available sources)
  • Multi-format export (Silly Tavern cards, Idiomark files, system prompts, markdown)
  • Fun layer (playful "roast me" insights drive engagement)
  • Stateless architecture (no database, ephemeral rate limiting, serverless deployment)

Motivation

The Challenge​

Idiomark represents a powerful, extensible format for capturing and sharing personality profiles. However, several barriers exist to mainstream adoption:

  1. Complexity perception - Technical protocols feel intimidating to casual users
  2. Lack of immediate value - "Install this CLI tool" has weak virality
  3. No social proof - Users can't easily show results to friends
  4. Missing fun factor - Serious documentation doesn't drive organic sharing

The Opportunity​

AI enthusiasts and techies enjoy personality analysis tools (e.g., "roast me" trends, viral Twitter threads). A lightweight, fun experience that:

  • Completes in <30 seconds
  • Delivers immediately shareable results
  • Integrates with existing AI tools (Silly Tavern, Cursor, VS Code)
  • Requires zero setup or account creation

...serves as an ideal gateway to the broader Idiomark ecosystem.

Specification

Design Philosophy​

Core Principles​

1. Mint, Don't Hoard

Idiomark-Fun is not a platform. It's a minting machine for Idiomark files. Users arrive, generate a profile, download the file, and leave. No persistence, no social features, no reason to return except to mint another profile.

2. Public Data Only

All personality extraction comes from publicly available data:

  • GitHub: Public repositories, commits, issues, pull requests, discussions
  • Twitter: Public tweets and replies

No private data is accessed. No API keys required from users. Clear disclosure at all times.

3. Stateless by Default

The application has no concept of user accounts:

  • No database of profiles
  • No authentication beyond rate limiting
  • No session management
  • Share URLs expire after 24 hours (ephemeral storage only)

4. Fun First, Technical Second

The "fun" layer isn't an afterthought - it's the primary product:

  • Roasts are pattern-based but feel personalized
  • Fun facts derive from real statistical anomalies
  • "Spiciness meter" provides instant personality assessment
  • Visuals are playful (animations, emoji, gradients)

5. Export Portability

Users shouldn't be locked into our format. Every export format is designed to work elsewhere:

  • Silly Tavern cards - Full V2/V3 spec compliance with extensions.idiomark namespace
  • System prompts - Paste into Cursor, VS Code, any LLM interface
  • Idiomark files - Standard protocol format for future tools
  • Markdown - GitHub README compatible, shareable anywhere

Technical Architecture​

System Overview​

┌─────────────────────────────────────────────────────────────────┐
│ User Browser │
├─────────────────────────────────────────────────────────────────┤
│ │
│ ┌──────────────┐ POST /api/mint │
│ │ Mint Form │ ──────────────────────────────────────────┐ │
│ └──────────────┘ │ │
│ │ │
│ ┌─────────────────────────────────────────────┘ │
│ │ Serverless Edge Function │
│ │ │
│ │ ┌──────────────────────────┐ │
│ │ │ Idiomark Core & Adapters │ │
│ │ └──────────────────────────┘ │
│ │ │
│ └─────────────┬──────────────────────────────┐ │
│ │ │ │
└───────────────────────────────┼──────────────────────────────┘ │
▼ │
┌─────────────────────────────────┐ │
│ Idiomark File + Exports │ │
└─────────────────────────────────┘ │
│ │
┌───────────────┼───────────────┐ │
│ │ │ │
┌──────▼──────┐ ┌─────▼──────┐ ┌─────▼──────┐ │
│ Silly Tavern│ │ AI Tools │ │ Social │ │
└─────────────┘ └────────────┘ └────────────┘ │

API Endpoint: POST /api/mint​

Request Schema:

{
source: "github" | "twitter",
query: string,
options?: {
limit?: number, // Default: 100
includeReplies?: boolean
}
}

Response Schema:

{
success: boolean,
data?: {
personality: IdiomarkFile, // Full Idiomark personality object
metadata: {
samples_analyzed: number,
sources: string[],
generated_at: ISO8601,
confidence: number
},
fun: {
roast: string, // Playful insult
facts: string[], // Fun insights
spiciness: number // 0-100 scale
},
exports: {
tavern_card: TavernCardV2, // Primary format
idiomark_file: IdiomarkFile, // Protocol format
system_prompt: string, // For Cursor/etc.
markdown: string // README format
}
},
error?: {
code: "RATE_LIMITED" | "INVALID_REQUEST" | "EXTRACTION_FAILED",
message: string,
retry_after?: number // Seconds until retry
}
}

Export Formats​

Silly Tavern Card​

{
spec: "chara_card_v2",
spec_version: "2.0",
data: {
name: "username",
description: "Uses 🔥 way too much • Idiomark profile",
personality: "casual coder",
first_mes: "Hey! I'm username, ready to pair program.",
extensions: {
idiomark: { // ← Idiomark namespace
idiomark: "1.0.0",
personality: { /* Full Idiomark object */ },
metadata: {
generated_at: "2026-02-14T...",
source: "github",
fun_version: "0.1.0"
}
}
}
}
}

Key design decision: The extensions field is mandatory in V2/V3 spec and explicitly designed for app-specific data. By namespacing under idiomark, we prevent conflicts while ensuring full Idiomark data travels with the card.

System Prompt​

LLM-formatted personality injection:

You are an AI coding assistant with the following personality profile:

VOICE & TONE
- Primary tone: casual
- Formality: 0.2/1.0 (casual)
- Humor: 0.6/1.0 (humorous)
- Sarcasm: 0.3/1.0
- Enthusiasm: 0.7/1.0
- Directness: 0.5/1.0

COMMUNICATION PATTERNS
- Sentence length: 8 words (avg)
- Emoji usage: high
- Punctuation: 0.4 exclamations per sentence

[... domains, values, knowledge base ...]

When generating code:
1. Match tone and personality described above
2. Use similar sentence structures and emoji usage
3. Reflect values and communication style
4. Draw from domains and knowledge areas listed

This enables users to paste into Cursor, VS Code extensions, or any LLM interface to get "themselves as an AI pair programmer."

Privacy & Security​

Privacy Guarantees​

We DO NOT store:

  • ❌ Generated personality profiles
  • ❌ User queries (what usernames were searched)
  • ❌ IP addresses beyond rate limit window (5 min TTL)
  • ❌ Any correlation between requests

We DO store:

  • ✅ Rate limit counters (ephemeral, IP-based only)
  • ✅ Share URL payloads (encrypted, 24-hour expiry)

Rate Limiting​

Limits:

  • 10 requests per minute per IP
  • Rate limit error includes retry_after seconds
  • No burst allowance (prevents abuse)

Implementation:

  • Development: In-memory Map
  • Production: Upstash Redis with 5-minute TTL

Rationale

Why "Fun First"?​

Traditional protocol documentation focuses on technical correctness, which is essential but doesn't drive adoption. By leading with a fun, viral experience, we:

  1. Lower the barrier to entry - No CLI installation, no configuration
  2. Create immediate value - Shareable results in 30 seconds
  3. Demonstrate capabilities - Show what Idiomark can do, not just explain it
  4. Build social proof - "Roast me" threads create organic marketing

Why Stateless?​

A stateless architecture:

  • Reduces complexity - No database, no user management
  • Improves privacy - Can't leak what we don't store
  • Scales infinitely - Serverless edge functions
  • Focuses on the file - The Idiomark file is the product, not the service

Why Multiple Export Formats?​

Different users have different needs:

  • Silly Tavern users want character cards
  • Developers want system prompts for AI tools
  • Future-focused users want Idiomark files for upcoming tools
  • Social sharers want markdown for GitHub/Twitter

By supporting all formats, we maximize utility and reach.

Backwards Compatibility

Idiomark-Fun is fully compatible with Idiomark v1.0. It:

  • Generates valid Idiomark v1.0 files
  • Uses the standard personality schema
  • Adds no breaking changes to the core protocol
  • Namespaces extensions under idiomark in Silly Tavern cards

Tools that don't support Idiomark-Fun can:

  • Read the core Idiomark file normally
  • Ignore the fun metadata
  • Skip the Silly Tavern extensions.idiomark field

Reference Implementation

Repository: idiomark/idiomark-fun
Live Demo: fun.idiomark.org
Status: V0.1.0 (Production)

Tech Stack:

  • Next.js 14 (App Router)
  • Tailwind CSS + shadcn/ui
  • Framer Motion (animations)
  • Vercel Edge Functions

Security Considerations

Rate Limiting​

Without rate limiting, the API could be abused for:

  • DDoS attacks
  • Scraping public data at scale
  • Exhausting third-party API quotas

Mitigation: 10 requests/minute per IP with Redis-backed tracking.

Data Privacy​

Extracting personality from public data raises privacy concerns:

  • Users may not expect their public data to be analyzed
  • Roasts could be perceived as offensive

Mitigation:

  • Clear disclosure on home page ("Public data only")
  • Opt-out instructions (contact us to exclude your username)
  • Playful but not mean-spirited roasts

Third-Party API Abuse​

GitHub/Twitter APIs have rate limits and terms of service.

Mitigation:

  • Respect API rate limits
  • Cache results where appropriate
  • Use official SDKs with proper authentication

Test Cases

Valid Examples​

GitHub User:

{
"source": "github",
"query": "torvalds"
}

Twitter User:

{
"source": "twitter",
"query": "@elonmusk"
}

Invalid Examples​

Missing source:

{
"query": "username"
}
// Error: "source" is required

Invalid source:

{
"source": "linkedin",
"query": "username"
}
// Error: source must be "github" or "twitter"

Edge Cases​

User with no public data:

{
"source": "github",
"query": "brand-new-user-with-no-commits"
}
// Error: "Not enough data to generate personality"

Rate limit exceeded:

// 11th request in 1 minute
// Error: { code: "RATE_LIMITED", retry_after: 45 }

Open Issues

  • Twitter API v2 migration (current: v1.1)
  • PNG export with embedded metadata
  • Comparison feature ("my personality vs yours")
  • Leaderboards (most sarcastic, most formal, etc.)

Changelog

  • 2026-02-14: Initial PEP-0 specification
  • 2026-02-14: V0.1.0 production release

Copyright

This PEP is licensed under MIT License.


Authors: Idiomark Contributors
Status: Final
Type: Informational
Full Whitepaper: Idiomark-Fun V0 White Paper