@glassanalytics/cli 0.0.0-stage → 0.2.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 +21 -2
- package/dist/glass.js +1222 -0
- package/dist/worker/migrations/0001_init.sql +134 -0
- package/dist/worker/worker.js +23309 -0
- package/package.json +39 -4
package/README.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# glass
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The CLI for [Glass](https://github.com/ISNIT0/glass-analytics): open-source, agent-first analytics (web, product, session replay, A/B tests) that runs in your own Cloudflare account.
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
CLOUDFLARE_API_TOKEN=… npx @glassanalytics/cli init
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
`glass init` creates a D1 database, an R2 bucket and a Worker in your account, then prints the snippet for your framework and writes `AGENTS.md`, a Claude Code skill and `.mcp.json` so your coding agent can use Glass straight away.
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npx @glassanalytics/cli status # check the deployment end to end
|
|
13
|
+
npx @glassanalytics/cli query web --from -7d # ask questions from the terminal
|
|
14
|
+
npx @glassanalytics/cli query funnel --steps '$pageview,signup_completed'
|
|
15
|
+
npx @glassanalytics/cli sql "SELECT event, COUNT(*) AS n FROM events GROUP BY event"
|
|
16
|
+
npx @glassanalytics/cli flags set new-checkout --variants control:50,test:50
|
|
17
|
+
npx @glassanalytics/cli mcp # MCP server over stdio (what .mcp.json runs)
|
|
18
|
+
npx @glassanalytics/cli upgrade # deploy a new version
|
|
19
|
+
npx @glassanalytics/cli --help
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Every command takes `--json`. Docs: [getting started](https://github.com/ISNIT0/glass-analytics/blob/main/docs/getting-started.md), [agents](https://github.com/ISNIT0/glass-analytics/blob/main/docs/agents.md). License: MIT.
|