npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

visitor-badge

v1.0.0-beta.15

Published

A badge generator service to count visitors of your markdown file.

Downloads

119

Readme

visitor-badge

visitor badge visitor badge

Warning Since Deta will abandon Deta Cloud and move to Deta Space, the deta.dev domain is temporarily closed to users, please change visitor_badge.deta.dev to visitor-badge.imlete.cn

The example service is currently deployed on the free version of Deta, You can visit the /list path to see all the statistics

Inspired by jwenjian/visitor-badge written in Python (PV stats only)

Function

  • PV (Number of visits)
  • UV (Number of visitors)
  • Multi-database selection (mongodb, redis, deta)

Deployment

Deta Free

Deploy with Deta

Server

git clone https://github.com/Lete114/visitor-badge.git visitor-badge

cd visitor-badge

npm run start

ServerLess

See the other branches of the repository for details

Configuration Database

Rename the .env.example file to .env and edit it (just fill in the comments according to the file)

Use

![visitor badge](https://visitor-badge.imlete.cn/?id=github.lete114.visitor-badge)
![visitor badge](https://visitor-badge.imlete.cn/?id=github.lete114.visitor-badge&labelColor=f00)

where id is custom and it is not constrained in any way.

Here are some suggestions

  1. Specify a user's home page, e.g.: https://github.com/Lete114 using id=github.lete114
  2. Specify a user's repository, e.g.: https://github.com/Lete114/visitor-badge using id=github.lete114.visitor-badge
  3. Specify the issues in a user's repository, e.g.: https://github.com/Lete114/visitor-badge/issues/1 using id=github.lete114.visitor-badge.issues.1
  4. Specify a website, e.g.: https://blog.imlete.cn using id=blog.imlete.cn
  5. Specify a page of a website, e.g.: https://blog.imlete.cn/404.html using id=blog.imlete.cn.404

| Key | Default | Required | Options | Description | | ---------- | -------- | -------- | ------------------------------------------------------------- | ----------------------------------------------------------------------------- | | id | | ✅ | | Page unique ID | | type | pv | | ['pv', 'uv'] | Statistics type | | label | visitors | | | Custom label (left) name | | labelColor | 555 | | | Custom label (left) color (Note: You can leave out the well number #) | | color | 4c1 | | | Custom stats (right side) color (Note: You can leave out the well number #) | | style | flat | | ['plastic', 'flat', 'flat-square', 'for-the-badge', 'social'] | Custom badge style |