Opens in a new tab
Skip to main content

🥋 Free for students & open source. Become a founding member →

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.

For developers and data-curious users Free In the app: Settings › Data Management › Export Updated Sep 2026

File basics #

Full backup
openmat-YYYY-MM-DD.json, from Settings › Data Management › Export openmat.json
Monthly log
openmat-<mon><yyyy>.json (for example openmat-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 #

Keys in a full openmat.json backup
KeyTypeContents
_metaobjectFile metadata: version, timestamps, save counter
currentUserobjectThe signed-in user's profile, progress, roles and settings
usersobject keyed by handleProfiles known to the app (includes sample community profiles)
conversationsobject keyed by the other user's handleMessage threads
groupsarrayGroup chats
academiesarrayAcademy profiles
communityPostsarrayPosts on The Mat
sessionLogsarrayLogged training sessions
assessmentsarrayRank assessment records
partnerRatingsarrayRatings you gave training partners
weightLogarrayWeigh-ins
weightGoalnumberTarget weight in lbs (for example 170)
gearItemsarrayTracked gear
tournamentsarrayReserved. Usually empty.
photoLibraryarrayTraining photos stored as image data
cartarrayRewards shop cart. Usually empty.
taskTrackingobjectTask completion and streak data
isLoggedInbooleanWhether a user is signed in on the device

Record shapes #

_meta #

_meta fields
FieldTypeNotes
versionstringSchema version, for example "5.3.0"
createdISO dateWhen the store was first created
lastModifiedISO dateLast save
lastExportedISO date or nullLast export
sessionCountintegerNumber of saves, not training sessions

currentUser #

currentUser fields
FieldTypeNotes
id, name, fullName, handle, email, bio, avatarstringIdentity. handle matches ^[a-z0-9_]{3,20}$.
rankstringFor example "Blue Belt"
stripesinteger0–4
xp, xpToNextintegerNew users start at 0 and 5000
streak, points, totalSessions, monthsTrainingintegerpoints is the Mat Points balance
matTimeHoursnumberTotal hours on the mat
isPro, rankVerifiedboolean
rolesstring[]Any of student, coach, admin (Academy Owner)
activeRolestringThe role currently in use
coachSubscriptionobject{ active: bool, plan: "trial" | "monthly" | null, startDate, studentsManaged: int }
adminVerificationobject{ status: "none" | "pending", method, submittedDate }
disciplinesobjectKeyed by discipline. See below.
gamePlanarray[{ position, action, note }]
lineagearray[{ id, name, handle, discipline, rank, period, students }]
settingsobject{ 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 #

sessionLogs item fields
FieldTypeNotes
idstring
dateISO date
disciplinestringBJJ, Muay Thai, MMA, Strength, Mobility or Cardio
typestringClass, Open Mat, Private, Solo, Sparring or Competition
durationintegerMinutes (15–180)
intensitystringLight, Moderate, Hard or Extreme
notesstringMay be empty
xpEarnedinteger

Other arrays #

Item shapes for the remaining arrays and objects
KeyItem 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, users and currentUser. It replaces the whole store. There's no merge.
  • Monthly file: accepted only if it has _meta.key and days.
  • 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, academies and communityPosts contain the app's sample community. Filter to currentUser and 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.