Public
Like
1
ipv4-counter
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.
index.ts
https://maxm--383b43462f7311f0a30a569c3dd06744.web.val.run
A simple website that tracks and displays the number of visits from different IP addresses.
- Records visits from unique IP addresses
- Displays a count of visits per IP address
- Shows total visit count
backend/
- Server-side codeindex.ts
- Main HTTP handler using Honodatabase.ts
- SQLite database setup and queries
frontend/
- Client-side codeindex.html
- Main webpage
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.