openmat.json schema reference
Every OpenMat export is one JSON file with a documented shape. Use this reference to read, validate or convert your training data.
File basics #
- Full backup
openmat-YYYY-MM-DD.json, from Settings › Data Management › Export openmat.json- Monthly log
openmat-<mon><yyyy>.json(for exampleopenmat-mar2026.json), from Training History- Encoding
- UTF-8 JSON. One top-level object.
- Schema version
_meta.version. The current app (5.5) writes"5.3.0".- Dates
- ISO 8601 strings. Weight entries use
YYYY-MM-DD. - Units
- Durations in minutes, timer values in seconds, weight in pounds, mat time in hours.
Parse defensively. Check _meta.version first, ignore keys you don't recognize, and don't assume optional fields are present. New keys may be added in later versions.
Top-level keys #
| Key | Type | Contents |
|---|---|---|
_meta | object | File metadata: version, timestamps, save counter |
currentUser | object | The signed-in user's profile, progress, roles and settings |
users | object keyed by handle | Profiles known to the app (includes sample community profiles) |
conversations | object keyed by the other user's handle | Message threads |
groups | array | Group chats |
academies | array | Academy profiles |
communityPosts | array | Posts on The Mat |
sessionLogs | array | Logged training sessions |
assessments | array | Rank assessment records |
partnerRatings | array | Ratings you gave training partners |
weightLog | array | Weigh-ins |
weightGoal | number | Target weight in lbs (for example 170) |
gearItems | array | Tracked gear |
tournaments | array | Reserved. Usually empty. |
photoLibrary | array | Training photos stored as image data |
cart | array | Rewards shop cart. Usually empty. |
taskTracking | object | Task completion and streak data |
isLoggedIn | boolean | Whether a user is signed in on the device |
Record shapes #
_meta #
| Field | Type | Notes |
|---|---|---|
version | string | Schema version, for example "5.3.0" |
created | ISO date | When the store was first created |
lastModified | ISO date | Last save |
lastExported | ISO date or null | Last export |
sessionCount | integer | Number of saves, not training sessions |
currentUser #
| Field | Type | Notes |
|---|---|---|
id, name, fullName, handle, email, bio, avatar | string | Identity. handle matches ^[a-z0-9_]{3,20}$. |
rank | string | For example "Blue Belt" |
stripes | integer | 0–4 |
xp, xpToNext | integer | New users start at 0 and 5000 |
streak, points, totalSessions, monthsTraining | integer | points is the Mat Points balance |
matTimeHours | number | Total hours on the mat |
isPro, rankVerified | boolean | |
roles | string[] | Any of student, coach, admin (Academy Owner) |
activeRole | string | The role currently in use |
coachSubscription | object | { active: bool, plan: "trial" | "monthly" | null, startDate, studentsManaged: int } |
adminVerification | object | { status: "none" | "pending", method, submittedDate } |
disciplines | object | Keyed by discipline. See below. |
gamePlan | array | [{ position, action, note }] |
lineage | array | [{ id, name, handle, discipline, rank, period, students }] |
settings | object | { theme: "light" | "dark", notifications: { push, trainingReminders, streakAlerts, communityUpdates }, timer: { roundTime, restTime, rounds, warningTime, soundEnabled } }. Timer values are in seconds. |
currentUser.disciplines #
Keys include bjj, muaythai, mma, strength and mobility, plus keys such as boxing or wrestling created at sign-up. Only BJJ uses belts. Every other discipline uses a numeric level.
"bjj": { "belt": "Blue", "stripes": 2, "sessions": 140, "matHours": 190.5 }
"muaythai": { "level": 3, "sessions": 22, "matHours": 24 }
sessionLogs #
| Field | Type | Notes |
|---|---|---|
id | string | |
date | ISO date | |
discipline | string | BJJ, Muay Thai, MMA, Strength, Mobility or Cardio |
type | string | Class, Open Mat, Private, Solo, Sparring or Competition |
duration | integer | Minutes (15–180) |
intensity | string | Light, Moderate, Hard or Extreme |
notes | string | May be empty |
xpEarned | integer |
Other arrays #
| Key | Item shape |
|---|---|
assessments | { id, userId, date, assessorHandle, discipline, ratedRank, ratedStripes, notes, status: "verified" | "pending" } |
partnerRatings | { id, fromHandle, toHandle, date, rating: 1–5, type, feedback, tags: string[] } |
weightLog | { date: "YYYY-MM-DD", weight: number, unit: "lbs" } |
gearItems | { id, name, type, sessions: int, purchaseDate, condition: "new" | "good" | "fair" | "worn" } |
photoLibrary | { id, data: base64 image, category, caption, date } |
taskTracking | { completedTasks: {}, streakData: { currentStreak, longestStreak, lastTrainingDate } } |
users.<handle> | Profile fields as in currentUser, plus posts, followers, following, online, lastSeen, role ("student" | "coach" | "legend"), academies: string[], images: string[] |
conversations.<handle> | { participants: string[], messages: [{ id, from, text, time, read: bool }] } |
groups | { id, name, emoji, members: string[], lastMessage, unread: int } |
academies | { id, name, slug, logo, location, address, lat, lng, phone, email, website, disciplines[], members, rating, verified, description, image, images[], headCoach, coaches[], hours: { <day>: { open, close, closed } }, dropInFee, monthlyRate, openMatFee, amenities[], classes[] } |
communityPosts | { id, handle, time, text, image, likes: int, comments: int, liked: bool, saved: bool } |
Monthly log files #
Monthly files from Training History have their own shape and their own version ("1.0"):
{
"_meta": { "month", "year", "key", "createdAt", "updatedAt", "version": "1.0", "dayCount" },
"days": {
"YYYY-MM-DD": { "sessions": [], "tasks": [], "xpStart", "xpEnd", "xpGained",
"points", "streak", "weight", "mood", "notes", "disciplines": [] }
},
"user": { "name", "handle", "email", "avatar", "rank", "stripes", "xp", "xpToNext", "streak",
"points", "totalSessions", "matTimeHours", "roles", "disciplines", "snapshotAt" },
"gear": [],
"achievements": { "earned": [{ "id", "name", "earnedAt" }], "progress": {} }
}
This is a shape outline, not valid JSON. Each name stands for a field.
Import rules #
- Full backup: accepted only if it has
_meta,usersandcurrentUser. It replaces the whole store. There's no merge. - Monthly file: accepted only if it has
_meta.keyanddays. - Achievements aren't in the full backup. Posts, conversations and task check-offs are written from the app's sample data and don't reflect in-app changes yet.
users,conversations,groups,academiesandcommunityPostscontain the app's sample community. Filter tocurrentUserand your own records when you analyze your data.- The opt-in cloud features (friends, QR check-ins, messages, academy memberships and payments) live on OpenMat's server, not in openmat.json.
Example file #
A trimmed, illustrative export. The person, handle and email are fictional, and exact value spellings may differ from what your app writes.
{
"_meta": {
"version": "5.3.0",
"created": "2026-08-02T18:04:11.000Z",
"lastModified": "2026-09-27T21:15:40.000Z",
"lastExported": "2026-09-27T21:16:02.000Z",
"sessionCount": 412
},
"currentUser": {
"id": "u_maya",
"name": "Maya",
"fullName": "Maya R.",
"handle": "maya_rolls",
"email": "maya@example.com",
"bio": "BJJ and Muay Thai. New to OpenMat!",
"avatar": "",
"rank": "Blue Belt",
"stripes": 2,
"xp": 3180,
"xpToNext": 5000,
"streak": 6,
"points": 225,
"totalSessions": 58,
"monthsTraining": 14,
"matTimeHours": 71.5,
"isPro": false,
"rankVerified": false,
"roles": ["student"],
"activeRole": "student",
"coachSubscription": { "active": false, "plan": null, "startDate": null, "studentsManaged": 0 },
"adminVerification": { "status": "none", "method": null, "submittedDate": null },
"disciplines": {
"bjj": { "belt": "Blue", "stripes": 2, "sessions": 46, "matHours": 60 },
"muaythai": { "level": 2, "sessions": 12, "matHours": 11.5 }
},
"gamePlan": [{ "position": "Closed Guard", "action": "Break posture", "note": "Hip bump sweep" }],
"lineage": [],
"settings": {
"theme": "dark",
"notifications": { "push": true, "trainingReminders": true, "streakAlerts": true, "communityUpdates": true },
"timer": { "roundTime": 300, "restTime": 60, "rounds": 5, "warningTime": 10, "soundEnabled": true }
}
},
"users": { "maya_rolls": { "handle": "maya_rolls", "fullName": "Maya R.", "rank": "Blue Belt" } },
"sessionLogs": [
{ "id": "s_0927", "date": "2026-09-27T19:00:00.000Z", "discipline": "BJJ", "type": "Sparring",
"duration": 60, "intensity": "Hard", "notes": "", "xpEarned": 230 }
],
"weightLog": [{ "date": "2026-09-26", "weight": 141.2, "unit": "lbs" }],
"weightGoal": 138,
"gearItems": [{ "id": "g1", "name": "White gi", "type": "gi", "sessions": 64, "purchaseDate": "2025-11-01", "condition": "fair" }],
"partnerRatings": [],
"assessments": [],
"photoLibrary": [],
"tournaments": [],
"cart": [],
"taskTracking": { "completedTasks": {}, "streakData": { "currentStreak": 6, "longestStreak": 19, "lastTrainingDate": "2026-09-27" } },
"isLoggedIn": true
}
The session above shows the XP formula at work: 60 minutes × 2 × 1.5 (Hard) + 50 (Sparring) = 230 XP. See Log a session.