• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
maxm

maxm

ipv4-counter

Public
Like
1
ipv4-counter
Home
Code
3
backend
2
frontend
1
README.md
Branches
1
Pull requests
Remixes
1
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/12/2025
Viewing readonly version of main branch: v9
View latest version
README.md

IP Visit Counter

A simple website that tracks and displays the number of visits from different IP addresses.

Features

  • Records visits from unique IP addresses
  • Displays a count of visits per IP address
  • Shows total visit count

Project Structure

  • backend/ - Server-side code
    • index.ts - Main HTTP handler using Hono
    • database.ts - SQLite database setup and queries
  • frontend/ - Client-side code
    • index.html - Main webpage

How It Works

When a user visits the site, their IP address is recorded in the SQLite database. If the IP already exists, its visit counter is incremented. The page displays a table of all IP addresses and their visit counts.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.