GitHunt
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 install

To build and run local preview using wrangler:

bun run preview

This 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_COUNTER

Deployment

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.

Languages

TypeScript95.1%HTML4.7%CSS0.3%

Contributors

Created September 19, 2025
Updated September 19, 2025
bluenex/bun-hit-counter | GitHunt