API ציבורי
פיד התקדמות בזמן אמת.
curl https://shawnos.ai/api/statusהתחלה מהירה
cURL
curl https://shawnos.ai/api/statusJavaScript (fetch)
fetch('https://shawnos.ai/api/status')
.then(res => res.json())
.then(data => {
console.log(`Level ${data.level}: ${data.title}`)
console.log(`XP: ${data.xp_total} / ${data.xp_next_level}`)
})Python
import requests
response = requests.get('https://shawnos.ai/api/status')
data = response.json()
print(f"Level {data['level']}: {data['title']}")
print(f"XP: {data['xp_total']} / {data['xp_next_level']}")סכמת תגובה
{
"name": "Operator",
"title": "Prompt Apprentice",
"level": 9,
"xp_total": 1882,
"xp_next_level": 2000,
"class": "Polymath",
"avatar_tier": 1,
"milestones": [
{
"id": "first_100xp",
"title": "Spark Plug",
"description": "Earned 100 XP",
"unlocked_at": "2026-02-15T05:51:44Z"
}
],
"updated_at": "2026-02-15T05:51:44Z",
"meta": {
"api_version": "1.0",
"docs": "https://shawnos.ai/api"
}
}namestringCharacter display name
titlestringCurrent RPG title (e.g., 'Terminal Initiate', 'Repo Architect')
levelnumberCurrent level (1-based)
xp_totalnumberTotal accumulated XP
xp_next_levelnumberXP required to reach the next level
classstringPrimary RPG class: Builder, Scribe, Strategist, Alchemist, or Polymath
avatar_tiernumberAvatar visual tier (1-6)
milestonesarrayList of unlocked milestone achievements
updated_atstringISO-8601 timestamp of last profile update
metaobjectAPI metadata including version and documentation URL
מקרי שימוש
הטמע סטטיסטיקות חיות
הצג XP ורמה בזמן אמת בפורטפוליו שלך
בוט Discord
בנה בוט שעוקב אחרי התקדמות
אוטומציית Twitter
ציוץ אוטומטי כשמושגות אבני דרך
למד את הארכיטקטורה
בחן איך מערכת RPG בזמן אמת בנויה
איך המערכת הזו עובדת
The RPG system tracks daily output across multiple dimensions: commits, content, GTM deliverables, and more. Each activity type contributes to XP based on weighted scoring.
Data flows from gitignored Python scripts → public JSON → API endpoint. The progression engine scans my work, calculates XP, checks for level-ups, and unlocks milestones based on cumulative stats.
The API endpoint reads from data/progression/profile.json (a public file) and serves it with CORS headers and CDN caching.
Type definitions are available in the rpg.ts file. The core scoring algorithms remain proprietary.
בנה משלך
Want to build a similar system? Here's the architecture:
1. צנרת נתונים
סרוק את מקורות העבודה שלך וחשב ציונים
2. שכבת שמירה
כתוב סטטיסטיקות לקובץ JSON ציבורי
3. API Endpoint
חשוף דרך API ציבורי עם CORS וקאשינג
4. תצוגת Frontend
בנה רכיבי UI שמציגים את הנתונים
סטאק כלים
- ▸Frontend: Next.js, React, Tailwind CSS
- ▸Backend: Python (progression engine), TypeScript (API routes)
- ▸Deployment: Vercel (auto-deploy from GitHub)
- ▸Development: Cursor IDE, Claude Code, MCP servers
- ▸Monorepo: Turborepo with shared packages
I built this using Claude Code and Cursor IDE. The full repo is on GitHub.
על ShawnOS
This API is part of ShawnOS — an AI-powered operating system for GTM engineering and content operations.
Built with MCP servers connecting Cursor IDE, Claude Code, and 15+ automation tools, the system gamifies vibe coding and live building in public.
Every commit, post, and deliverable feeds the progression engine. The RPG system provides real-time feedback and unlocks visual rewards as the work compounds.