GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ascorbic/worker-template: Template for standalone Cloudflare Workers

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.github/workflows
.github/workflows
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
README.md
README.md
 
 
cloudflare.config.ts
cloudflare.config.ts
 
 
compatibility.ts
compatibility.ts
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
renovate.json
renovate.json
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

worker-template

Template for standalone Cloudflare Workers.

Stack

  • Vite+ (vp) — dev server, build, test, lint, format, and type checking in one toolchain
  • cf — the Cloudflare CLI (technical preview), for deploys and everything Cloudflare
  • @cloudflare/vite-plugin 2.0, with cloudflare.config.ts from cf/config
  • Vitest in Node, with integration tests running the built Worker in Miniflare. No Wrangler
  • TypeScript, pnpm

Commands

pnpm dev      # dev server (with the Cloudflare local explorer at /cdn-cgi/local/explorer)
pnpm test     # build, then test the Worker in Miniflare
pnpm check    # format, lint, and type check
pnpm fix      # same, but auto-fix
pnpm build    # production build
pnpm types    # regenerate Env and runtime types
pnpm deploy   # build and deploy via cf

Configuration

  • cloudflare.config.ts — the Worker itself: name, entrypoint, compatibility, bindings. Env types are inferred from the bindings you declare here and generated into .cloudflare/types/ by cf workers types (run on install, or with pnpm types).
  • compatibility.ts — compatibility date and flags, shared with the test runtime.
  • vite.config.ts — everything else: Vite, Vitest, oxlint, and oxfmt in one file.

Template setup

This is a template repository. After creating a repo from it, follow the setup steps in AGENTS.md — or just ask Claude to do it.

About

Template for standalone Cloudflare Workers

Resources

Readme
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.