Overview
The WakaTime integration fetches your daily coding statistics and displays them alongside your typing metrics in the TypeSteps dashboard. This allows you to:- Compare typing activity vs. actual coding time
- Calculate typing density (keystrokes per minute of coding)
- Identify productive coding sessions
- Understand your typing patterns during development work
Setting Up WakaTime Integration
Get Your WakaTime API Key
- Log in to your WakaTime account
- Navigate to Settings > Account
- Scroll down to the API Key section
- Copy your secret API key
Add API Key to TypeSteps
- Open TypeSteps dashboard
- Navigate to Settings or Integrations
- Paste your WakaTime API key in the WakaTime API Key field
- The app will automatically save your key to secure storage
How It Works
TypeSteps uses the WakaTime API to fetch your daily coding statistics:- Encodes your API key in Base64 format
- Sends an authenticated request to WakaTime’s API
- Fetches today’s cumulative coding time
- Converts seconds to minutes for display
- Updates the dashboard in real-time
The API key is sent using HTTP Basic Authentication with the format:
Authorization: Basic <base64-encoded-api-key>Understanding Density Metrics
Typing Density is calculated as:- High density: Lots of typing during coding sessions (writing new code, documentation)
- Low density: Reading code, debugging, or thinking time
- Baseline density: Your typical keystrokes per minute when actively coding
Example Density Calculation
Example Density Calculation
If you have:
- 10,000 keystrokes today
- 120 minutes of coding time (from WakaTime)
Troubleshooting
Data Not Showing
If WakaTime data isn’t appearing:- Verify API Key: Ensure your API key is correct and hasn’t expired
- Check WakaTime Setup: Make sure WakaTime plugins are installed in your code editors
- Wait for Sync: Data syncs when you open the dashboard or periodically
- Check Network: Ensure your Mac has internet connectivity
Error Messages
Authentication Failed
Authentication Failed
Cause: Invalid or expired API keySolution:
- Go to WakaTime settings and regenerate your API key
- Update the key in TypeSteps
- Restart the app if needed
No Data for Today
No Data for Today
Cause: You haven’t coded yet today, or WakaTime hasn’t syncedSolution:
- Code in any editor with WakaTime installed
- Wait a few minutes for WakaTime to process
- Refresh TypeSteps dashboard
Privacy & Security
TypeSteps handles your WakaTime data with care:- API keys are stored locally on your Mac using
UserDefaults - No data is sent to TypeSteps servers (app is local-only)
- WakaTime data is fetched directly from WakaTime’s API
- Data is only stored in memory during your session
TypeSteps is a privacy-focused app. All data stays on your device.
API Reference
The WakaTimeManager implementation (from WakaTimeManager.swift:13-49):Next Steps
Daily Goals
Set typing goals and track your progress
Data Management
Export and backup your typing data