Skip to content

Cloudflare Worker Val & D1 Registry

The val Cloudflare Worker powers artifact distribution, dynamic OpenGraph meta tags, and D1 registry metadata for Valenced plugins.


Configuration (wrangler.toml)

name = "val"
compatibility_date = "2026-08-08"
account_id = "dc5e308f1df2d6bb5082951d3f3993a5"
main = "worker/src/index.ts"

[assets]
directory = "build/dist"
binding = "ASSETS"
run_worker_first = true

[[d1_databases]]
binding = "DB"
database_name = "val"
database_id = "e51523c4-15d3-41c0-af5c-b7a57647450c"

[[routes]]
pattern = "val.is-your.app"
custom_domain = true

[[routes]]
pattern = "val.jarviscli.dev"
custom_domain = true

Core Routes

  • GET /index.json: Merged catalog of all 38 plugins.
  • GET /: Interactive web browser directory.
  • GET /plugins/:id: Detail view with dynamic Discord OpenGraph cards.
  • GET /:artifact.zip: Direct ZIP download.
  • POST /api/admin/*: Admin management routes authenticated via bearer token.