A counter for websites that tracks visitors count. Deployed on Render free instance.
Note
Render free instance will spin down with inactivity, which can delay requests by 50 seconds or more.
Replace yoursite
with your link and replace yourstyle
with the style you want. The default style is numbers.
- As an iframe:
<iframe src="https://visitor-count-t7vu.onrender.com/?siteIdentifier=yoursite&style=yourstyle" id="visitor-count-iframe"><iframe>
- As an img:
<img alt="Visitor Count" src="https://visitor-count-t7vu.onrender.com/counter-image?siteIdentifier=yoursite&style=yourstyle">
- Markdown
![Visitor Count](https://visitor-count-t7vu.onrender.com/counter-image?siteIdentifier=yoursite&style=yourstyle)
To run this project locally:
-
Clone the repository:
git clone https://github.com/WZhengJie99/Visitor-Count.git
-
Navigate to the project directory:
cd Visitor-Count
-
Install dependencies:
npm install
-
Start the server:
npm start
The counter will be available at http://localhost:3000
by default.
Contributions are welcomed with pull requests!
- Fork this repository.
- Commit changes.
- Push your changes to your forked repository.
- Open a pull request to the
main
branch of this repository.
- Create a new folder inside the
styles
folder with a unique name that represents the new style. - Name the number images by their numerical digit only, so each file should simply be named
0
,1
,2
, up to9
, with no additional labels. - Update this README.md by adding your style under the Themes section.
- Add your style name inside the
const styleFolders
array in thedocs/index.html
file. This allows the style to appear in the dropdown menu on the website.
- Thanks to Render for providing free hosting.
- Inspired by Moe-Counter.