TypeSteps provides comprehensive data management tools to backup your typing statistics, transfer data between devices, and start fresh when needed.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/FALAK097/typesteps/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Your TypeSteps data includes:- Daily statistics: Keystroke counts per day
- Hourly statistics: Activity breakdown by hour
- Minute statistics: Recent per-minute activity (last 2 hours)
- App statistics: Keystrokes per application
- Project statistics: Keystrokes per project/repository
- Settings: WakaTime API key, daily goals
- Milestone notifications: Which goals you’ve already been notified about
UserDefaults.
Exporting Your Data
How to Export
- Open the TypeSteps dashboard
- Navigate to Settings > Data Management
- Click Export Data
- Choose a location to save the file
- Your data will be saved as a JSON file (e.g.,
typesteps-backup-2026-03-03.json)
What Gets Exported
The export includes all your data in JSON format (StorageManager.swift:324-343):Export File Structure
The exported JSON file contains:Importing Data
How to Import
- Open the TypeSteps dashboard
- Navigate to Settings > Data Management
- Click Import Data
- Select your previously exported JSON file
- Confirm the import
Import Process
The import process (StorageManager.swift:345-363):- Validates the JSON structure
- Decodes the backup data
- Replaces all current statistics
- Restores your settings (API key, goals)
- Saves everything to UserDefaults
- Updates the UI immediately
Import Validation
Invalid File Format
Invalid File Format
Error: “Invalid backup file”Causes:
- File is corrupted
- JSON structure doesn’t match expected format
- File was manually edited incorrectly
- Use only files exported by TypeSteps
- Don’t manually edit export files
- Try exporting a fresh backup and compare structure
Partial Import
Partial Import
TypeSteps imports ALL or NOTHING. If any field is invalid, the entire import fails.This prevents partial/corrupted data states.
Use Cases
1. Backup Before Reset
2. Transfer to New Mac
3. Merge Data from Multiple Devices
TypeSteps doesn’t automatically merge data. To combine statistics from multiple devices:
- Export from each device
- Manually merge the JSON files (combine the stats objects)
- Import the merged file
4. Periodic Backups
Set a reminder to export your data:- Weekly: If you’re building streaks and don’t want to lose progress
- Monthly: For regular users who want historical records
- Before macOS updates: System updates can sometimes affect app data
Resetting Your Data
Full Reset
To completely erase all typing statistics:- Open the TypeSteps dashboard
- Navigate to Settings > Data Management
- Click Reset All Data
- Confirm the action (this cannot be undone without a backup)
What Gets Reset
The reset function (StorageManager.swift:365-391):- All keystroke statistics
- App and project tracking data
- Hourly and minute-level data
- Milestone notification history
- WakaTime API key (so you don’t need to re-enter)
- Daily goal setting (maintains your configured goal)
If you want to reset everything including settings, you can manually clear the API key and goal after resetting stats.
Partial Reset Options
TypeSteps doesn’t have built-in partial reset, but you can manually edit an export file:Reset Just App Stats
Reset Just App Stats
- Export your data
- Open the JSON file
- Clear the
appStatsandappBundleMappingobjects:{} - Import the modified file
Reset Old Data (Keep Recent)
Reset Old Data (Keep Recent)
- Export your data
- Open the JSON file
- Remove old entries from
dailyStatsandhourlyStats - Import the modified file
Keep Stats, Reset Settings
Keep Stats, Reset Settings
- Export your data
- Open the JSON file
- Modify
wakaTimeApiKeyanddailyGoalto new values - Import the modified file
Data Storage Details
Storage Location
All data is stored in macOS UserDefaults:Data Retention
- Daily stats: Kept forever
- Hourly stats: Kept forever
- Minute stats: Last 120 minutes only (automatically pruned)
- App/Project stats: Kept forever
Minute-level stats are automatically cleaned to save space (StorageManager.swift:70-73):
Backup Best Practices
Multiple Locations
Store backups in multiple places:
- Local external drive
- iCloud Drive
- Time Machine backups
Troubleshooting
Export Button Does Nothing
Export Button Does Nothing
Import Fails Silently
Import Fails Silently
Possible causes:
- Invalid JSON format
- File corrupted during transfer
- Version incompatibility
- Validate JSON structure at jsonlint.com
- Try exporting fresh data and comparing structure
- Ensure file wasn’t modified by text editor
Data Missing After Import
Data Missing After Import
Check:
- Did you import the correct file?
- Is the file from an old version of TypeSteps?
- Was the export incomplete?
- Open the JSON file and verify it contains your expected data
- Try importing again
- If still missing, restore from another backup
Next Steps
Troubleshooting
Fix data and tracking issues
Daily Goals
Protect your streak with backups