diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 6c57d5c..0000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://npm.nose.space diff --git a/apps/clock/.npmrc b/apps/clock/.npmrc deleted file mode 100644 index 6c57d5c..0000000 --- a/apps/clock/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://npm.nose.space diff --git a/apps/clock/bunfig.toml b/apps/clock/bunfig.toml new file mode 100644 index 0000000..835b7af --- /dev/null +++ b/apps/clock/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://npm.nose.space" diff --git a/apps/code/.npmrc b/apps/code/.npmrc deleted file mode 100644 index 6c57d5c..0000000 --- a/apps/code/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://npm.nose.space diff --git a/apps/code/bunfig.toml b/apps/code/bunfig.toml new file mode 100644 index 0000000..835b7af --- /dev/null +++ b/apps/code/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://npm.nose.space" diff --git a/apps/cron/.npmrc b/apps/cron/.npmrc deleted file mode 100644 index 6c57d5c..0000000 --- a/apps/cron/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://npm.nose.space diff --git a/apps/cron/bunfig.toml b/apps/cron/bunfig.toml new file mode 100644 index 0000000..835b7af --- /dev/null +++ b/apps/cron/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://npm.nose.space" diff --git a/apps/env/.npmrc b/apps/env/.npmrc deleted file mode 100644 index 6c57d5c..0000000 --- a/apps/env/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://npm.nose.space diff --git a/apps/env/bunfig.toml b/apps/env/bunfig.toml new file mode 100644 index 0000000..835b7af --- /dev/null +++ b/apps/env/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://npm.nose.space" diff --git a/apps/git/.npmrc b/apps/git/.npmrc deleted file mode 100644 index 6c57d5c..0000000 --- a/apps/git/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://npm.nose.space diff --git a/apps/git/bunfig.toml b/apps/git/bunfig.toml new file mode 100644 index 0000000..835b7af --- /dev/null +++ b/apps/git/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://npm.nose.space" diff --git a/apps/git/package.json b/apps/git/package.json index 8411fd3..799143e 100644 --- a/apps/git/package.json +++ b/apps/git/package.json @@ -11,7 +11,6 @@ "toes": { "tool": true, "dashboard": true, - "share": true, "icon": "🔀" }, "devDependencies": { @@ -23,6 +22,6 @@ "dependencies": { "@because/forge": "^0.0.1", "@because/hype": "^0.0.2", - "@because/toes": "0.0.12" + "@because/toes": "0.0.10" } } diff --git a/apps/metrics/.npmrc b/apps/metrics/.npmrc deleted file mode 100644 index 6c57d5c..0000000 --- a/apps/metrics/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://npm.nose.space diff --git a/apps/metrics/bunfig.toml b/apps/metrics/bunfig.toml new file mode 100644 index 0000000..835b7af --- /dev/null +++ b/apps/metrics/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://npm.nose.space" diff --git a/apps/truisms/.npmrc b/apps/truisms/.npmrc deleted file mode 100644 index 6c57d5c..0000000 --- a/apps/truisms/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://npm.nose.space diff --git a/apps/truisms/bunfig.toml b/apps/truisms/bunfig.toml new file mode 100644 index 0000000..835b7af --- /dev/null +++ b/apps/truisms/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://npm.nose.space" diff --git a/bunfig.toml b/bunfig.toml new file mode 100644 index 0000000..835b7af --- /dev/null +++ b/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://npm.nose.space" diff --git a/docs/GUIDE.md b/docs/GUIDE.md index 08d806b..f5c1fcd 100644 --- a/docs/GUIDE.md +++ b/docs/GUIDE.md @@ -85,7 +85,7 @@ A generated SSR app looks like this: ``` my-app/ .gitignore # Files to exclude from sync and deploy - .npmrc # Points to the private registry + bunfig.toml # Points to the private registry package.json # Must have scripts.toes tsconfig.json # TypeScript config index.tsx # Entry point (re-exports from src/server) @@ -127,10 +127,11 @@ Every app needs three things: The `scripts.toes` field is how Toes discovers your app. The `toes.icon` field sets the emoji shown in the dashboard. -**.npmrc:** +**bunfig.toml:** -``` -registry=https://npm.nose.space +```toml +[install] +registry = "https://npm.nose.space" ``` Required for installing `@because/*` packages. diff --git a/templates/.npmrc b/templates/.npmrc deleted file mode 100644 index 6c57d5c..0000000 --- a/templates/.npmrc +++ /dev/null @@ -1 +0,0 @@ -registry=https://npm.nose.space diff --git a/templates/CLAUDE.md b/templates/CLAUDE.md index 84d6dfb..c3a18b1 100644 --- a/templates/CLAUDE.md +++ b/templates/CLAUDE.md @@ -10,7 +10,7 @@ Runtime is **Bun**. Every toes app/tool must have: -1. **`.npmrc`** pointing to `registry=https://npm.nose.space` (the private registry for `@because/*` packages) +1. **`bunfig.toml`** pointing to the private registry for `@because/*` packages 2. **`package.json`** with a `scripts.toes` entry (this is how toes discovers and runs apps) 3. **HTTP `GET /ok`** returning 200 (health check endpoint — toes polls this every 30s and restarts unresponsive apps) @@ -22,11 +22,12 @@ A **tool** renders as a tab inside the dashboard (in an iframe). It receives `?a ## Required Files -Every app needs `.npmrc`, `tsconfig.json`, `package.json`, and `index.tsx`. +Every app needs `bunfig.toml`, `tsconfig.json`, `package.json`, and `index.tsx`. -**.npmrc** -- always this exact content: -``` -registry=https://npm.nose.space +**bunfig.toml** -- always this exact content: +```toml +[install] +registry = "https://npm.nose.space" ``` **tsconfig.json** -- use exactly, do not improvise: diff --git a/templates/bunfig.toml b/templates/bunfig.toml new file mode 100644 index 0000000..835b7af --- /dev/null +++ b/templates/bunfig.toml @@ -0,0 +1,2 @@ +[install] +registry = "https://npm.nose.space"