Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ dist/
.wrangler/
*.pem
*.cpuprofile

public/console/
public/index.html
.console-types/
9 changes: 7 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"!!public/cloudflare/openapi.json",
"!!providers/cloudflare/exclusions.json",
"!!providers/cloudflare/oauth-scopes.json",
"!!src/providers/cloudflare/operation-permissions.ts"
"!!src/providers/cloudflare/operation-permissions.ts",
"!!public/console",
"!!public/index.html",
"!!.console-types"
]
},
"formatter": {
Expand All @@ -21,7 +24,9 @@
},
"linter": {
"enabled": true,
"rules": { "preset": "recommended" }
"rules": {
"preset": "recommended"
}
},
"javascript": {
"formatter": {
Expand Down
23 changes: 23 additions & 0 deletions docs/console.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Public Adapter directory

The root page lists supported providers, capabilities, maturity, and deployment availability.
Visitors can search providers and filter by category without signing in.

The frontend uses Hono JSX DOM and a Hono RPC client for the public
`GET /console/api/providers` route. The route projects public metadata from `src/providers/registry.ts`, the same
registry used by the Worker to load provider modules. Each registration supplies
its factory, display metadata, and required configuration. Adding a registration
and deploying automatically adds it to the directory; no frontend list or icon
map needs updating. Merely creating an unregistered source file does not enable
a provider.

The route returns public metadata
and configuration availability, never credentials or account information.

Run `pnpm dev` and open the local Worker URL to review the directory. Run
`pnpm build` to build the page and validate the Worker bundle. `pnpm deploy`
builds and publishes both using the existing Worker assets binding.

Review the deployed root page on desktop and mobile, search for GitHub, select
Productivity, and verify that each card links to its provider documentation.
This page requires no application registration, secrets, or database migration.
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
},
"packageManager": "pnpm@10.30.2",
"scripts": {
"build": "wrangler deploy --dry-run --outdir dist",
"dev": "wrangler dev",
"deploy": "wrangler deploy",
"build": "pnpm run build:console && wrangler deploy --dry-run --outdir dist",
"dev": "pnpm run build:console && wrangler dev",
"deploy": "pnpm run build:console && wrangler deploy",
"db:migrate:production": "wrangler d1 migrations apply DB --remote",
"types": "wrangler types --strict-vars=false --env-file .dev.vars.example",
"types:check": "wrangler types --strict-vars=false --env-file .dev.vars.example --check",
"typecheck": "tsc --noEmit",
"typecheck": "tsc --noEmit && tsc -p tsconfig.console.json && tsc -p web/tsconfig.json --noEmit",
"test": "vitest run",
"test:unit": "vitest run --project unit",
"test:integration": "vitest run --project integration",
Expand All @@ -24,7 +24,8 @@
"lint:fix": "biome check --write .",
"docs:check": "ruby scripts/check-docs.rb",
"sync:github-openapi": "node scripts/sync-github-openapi.mjs",
"sync:cloudflare-openapi": "node scripts/sync-cloudflare-openapi.mjs"
"sync:cloudflare-openapi": "node scripts/sync-cloudflare-openapi.mjs",
"build:console": "node scripts/build-console.mjs"
},
"dependencies": {
"graphql": "^17.0.2",
Expand All @@ -38,6 +39,7 @@
"@cloudflare/workers-types": "5.20260808.1",
"@types/node": "^24.13.3",
"@vitest/coverage-v8": "^4.1.2",
"esbuild": "^0.28.2",
"typescript": "^7.0.2",
"vitest": "^4.1.2",
"wrangler": "4.120.0"
Expand Down
Loading