BL
bluenex/bun-hit-counter
A quick Bun project just for fun.
Bun Hit Counter
A simple hit counter built with Bun, React, Tailwind CSS, and Cloudflare Pages with KV storage.
Quick Start
To install dependencies:
bun installTo build and run local preview using wrangler:
bun run previewThis will build the project and start a local Cloudflare Pages development server with KV namespace support.
Setup
The KV namespace was created using:
npx wrangler kv namespace create HIT_COUNTERDeployment
Deploy to Cloudflare Pages by connecting your repository. The hit counter will automatically work with Cloudflare KV in production.
This project was created using bun init in bun v1.2.21. Bun is a fast all-in-one JavaScript runtime.
On this page
Languages
TypeScript95.1%HTML4.7%CSS0.3%
Contributors
Created September 19, 2025
Updated September 19, 2025