Skip to content

Instantly share code, notes, and snippets.

@louis030195
Created March 5, 2025 18:40
Show Gist options
  • Save louis030195/f0ba05fa269c06793d231ea016ae2f5e to your computer and use it in GitHub Desktop.
Save louis030195/f0ba05fa269c06793d231ea016ae2f5e to your computer and use it in GitHub Desktop.
{
"data": [
{
"app_name": "cursor",
"total_usage_time": 3600, // seconds
"windows": [
{
"window_name": "page.tsx",
"sessions": [
{
"start_time": "2023-05-01T10:00:00Z",
"end_time": "2023-05-01T10:30:00Z",
"duration": 1800, // seconds
"content_ids": [123, 124, 125], // references to OCR/audio content
"tags": ["coding", "frontend"]
},
{
"start_time": "2023-05-01T14:00:00Z",
"end_time": "2023-05-01T14:30:00Z",
"duration": 1800,
"content_ids": [223, 224, 225],
"tags": ["coding", "frontend"]
}
],
"total_usage_time": 3600
}
]
},
{
"app_name": "arc",
"total_usage_time": 1200,
"windows": [
{
"window_name": "x.com",
"sessions": [
{
"start_time": "2023-05-01T10:30:00Z",
"end_time": "2023-05-01T10:50:00Z",
"duration": 1200,
"content_ids": [126, 127, 128],
"tags": ["browsing", "social-media"]
}
],
"total_usage_time": 1200
}
]
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 2
}
}
{
"data": [
{
"session_id": "s123",
"app_name": "cursor",
"window_name": "page.tsx",
"start_time": "2023-05-01T10:00:00Z",
"end_time": "2023-05-01T10:30:00Z",
"duration": 1800,
"is_active": false,
"content_summary": {
"ocr_count": 15,
"audio_count": 3,
"ui_count": 8
},
"sample_content": "import React from 'react'...",
"tags": ["coding", "frontend"]
},
{
"session_id": "s124",
"app_name": "arc",
"window_name": "x.com",
"start_time": "2023-05-01T10:30:00Z",
"end_time": "2023-05-01T10:50:00Z",
"duration": 1200,
"is_active": false,
"content_summary": {
"ocr_count": 25,
"audio_count": 0,
"ui_count": 12
},
"sample_content": "Latest tweets from...",
"tags": ["browsing", "social-media"]
},
{
"session_id": "s125",
"app_name": "cursor",
"window_name": "page.tsx",
"start_time": "2023-05-01T14:00:00Z",
"end_time": "2023-05-01T14:30:00Z",
"duration": 1800,
"is_active": false,
"content_summary": {
"ocr_count": 18,
"audio_count": 2,
"ui_count": 7
},
"sample_content": "function HomePage() {...",
"tags": ["coding", "frontend"]
}
],
"pagination": {
"limit": 50,
"offset": 0,
"total": 3
},
"stats": {
"total_apps": 2,
"total_windows": 2,
"total_duration": 4800
}
}
{
"data": {
"timeline": [
{
"timestamp": "2023-05-01T10:00:00Z",
"event_type": "session_start",
"app_name": "cursor",
"window_name": "page.tsx",
"session_id": "s123"
},
{
"timestamp": "2023-05-01T10:30:00Z",
"event_type": "session_transition",
"from": {
"app_name": "cursor",
"window_name": "page.tsx",
"session_id": "s123"
},
"to": {
"app_name": "arc",
"window_name": "x.com",
"session_id": "s124"
}
},
{
"timestamp": "2023-05-01T10:50:00Z",
"event_type": "session_end",
"app_name": "arc",
"window_name": "x.com",
"session_id": "s124"
},
{
"timestamp": "2023-05-01T14:00:00Z",
"event_type": "session_start",
"app_name": "cursor",
"window_name": "page.tsx",
"session_id": "s125"
},
{
"timestamp": "2023-05-01T14:30:00Z",
"event_type": "session_end",
"app_name": "cursor",
"window_name": "page.tsx",
"session_id": "s125"
}
],
"sessions": {
"s123": {
"app_name": "cursor",
"window_name": "page.tsx",
"start_time": "2023-05-01T10:00:00Z",
"end_time": "2023-05-01T10:30:00Z",
"duration": 1800,
"content_ids": [123, 124, 125]
},
"s124": {
"app_name": "arc",
"window_name": "x.com",
"start_time": "2023-05-01T10:30:00Z",
"end_time": "2023-05-01T10:50:00Z",
"duration": 1200,
"content_ids": [126, 127, 128]
},
"s125": {
"app_name": "cursor",
"window_name": "page.tsx",
"start_time": "2023-05-01T14:00:00Z",
"end_time": "2023-05-01T14:30:00Z",
"duration": 1800,
"content_ids": [223, 224, 225]
}
}
},
"pagination": {
"limit": 50,
"offset": 0,
"total": 5
},
"time_range": {
"start": "2023-05-01T10:00:00Z",
"end": "2023-05-01T14:30:00Z"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment