cursor-usage-tracker 1.14.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -277,13 +277,24 @@ volumes:
|
|
|
277
277
|
|
|
278
278
|
</details>
|
|
279
279
|
|
|
280
|
-
###
|
|
280
|
+
### Fly.io (recommended free option)
|
|
281
281
|
|
|
282
|
-
|
|
282
|
+
```bash
|
|
283
|
+
fly launch --copy-config # creates the app from fly.toml
|
|
284
|
+
fly volumes create tracker_data --region ams --size 1
|
|
285
|
+
fly secrets set CURSOR_ADMIN_API_KEY=your_key CRON_SECRET=your_secret
|
|
286
|
+
fly deploy
|
|
287
|
+
# Dashboard at https://your-app.fly.dev
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
Set up hourly collection by adding `DASHBOARD_URL` and `CRON_SECRET` as [GitHub Actions secrets](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions) — the included `.github/workflows/cron.yml` workflow triggers `/api/cron` every hour.
|
|
291
|
+
|
|
292
|
+
### Other cloud platforms
|
|
293
|
+
|
|
294
|
+
Any platform that supports Docker + persistent volumes works:
|
|
283
295
|
|
|
284
296
|
- **[Render](https://render.com)** — use the deploy button above, or `render.yaml` in this repo
|
|
285
297
|
- **[Railway](https://railway.app)** — create a project from this repo, attach a volume at `/app/data`
|
|
286
|
-
- **[Fly.io](https://fly.io)** — deploy with `fly launch`, create a volume for `/app/data`
|
|
287
298
|
|
|
288
299
|
> **Note:** Vercel is not supported — SQLite requires a persistent filesystem that Vercel's serverless functions don't provide.
|
|
289
300
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cursor-usage-tracker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Open-source Cursor IDE usage monitoring, anomaly detection, and alerting for enterprise teams",
|
|
5
5
|
"homepage": "https://github.com/ofershap/cursor-usage-tracker#readme",
|
|
6
6
|
"type": "module",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"lint": "eslint . && prettier --check .",
|
|
16
16
|
"format": "prettier --write .",
|
|
17
17
|
"prepare": "husky",
|
|
18
|
-
"collect": "tsx src/lib/cli/collect.ts",
|
|
19
|
-
"detect": "tsx src/lib/cli/detect.ts",
|
|
18
|
+
"collect": "npx tsx --env-file=.env src/lib/cli/collect.ts",
|
|
19
|
+
"detect": "npx tsx --env-file=.env src/lib/cli/detect.ts",
|
|
20
20
|
"generate:mock": "tsx scripts/generate-mock-db.ts",
|
|
21
21
|
"dev:mock": "DATABASE_PATH=data/mock.db next dev"
|
|
22
22
|
},
|