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

@nodebb/nodebb-plugin-reputation-rules

v2.0.0

Published

Reputation rules to prevent abuse and make it more reliable

Downloads

21

Readme

npm version Codacy Badge

Reputation Rules Plugin for NodeBB

Rules to prevent abuse of the reputation system and reward most valuable users.

Screenshot

Rules

Rule #1

Upvoting In order to upvote, the user must have

  • {MIN_POSTS_TO_UPVOTE} posts or more
  • at least {MIN_DAYS_TO_UPVOTE} days since registration

Rule #2

Downvoting In order to downvote, the user must have

  • {MIN_POSTS_TO_DOWNVOTE} posts or more
  • at least {MIN_DAYS_TO_DOWNVOTE} since registration
  • {MIN_REPUTATION_TO_DOWNVOTE} reputation or more

Rule #3

Downvoting costs {DOWNVOTE_PENALIZATION} reputation (user who votes loses some reputation)

Rule #4

One user can't vote (up or down) more than X times a day, being X = reputation/10. With a minimum of 5 and a max of 50

Rule #4.1

One user can't downvote more than 5 times a day. Zero to disable this maximum

Rule #5

Reputation can be disabled in certain subforums

Rule #6

A user cannot vote the same person twice in a month

Rule #7

A user cannot vote more than 5 messages in the same thread

Rule #8

Upvotes give extra reputation depending on the user who is voting:

  • extra reputation = floor(votersReputation * 5%) (you can change this percentage in the ACP)

Downvotes decrease extra reputation depending on the user who is voting:

  • extra reputation = floor(votersReputation * 5%) (you can change this percentage in the ACP)

Rule #9

Undoing votes:

  • undoing an upvote should remove extra reputation awarded when upvote was given (extra rep should not be recalculated)
  • undoing a downvote should remove penalization to voter and give the extra reputation the author lost when he got the downvote

Rule #10

Upvotes and downvotes should have a maximum weight, configurable. So that rule #8 doesn't make vote points tend to infinity.

Rule #11

Optional: you can limit upvotes and downvotes to recent posts. In other words, if a message is too old, users won't be able to vote it. You can configure what "too old" means for you, for example 30 days, 90 days, or 0 if you want to disable this feature and allow votes in old posts.
Note unvotes are always allowed.

Changelog

v1.2.3

  • Added some tests and coverage
  • Added more information to error messages when voting

v1.2.2

  • Big refactor mainly to use async/await instead of callbacks

v1.2.1

  • Fix typos on "weigh"
  • Add a section for Rule 4 on the settings panel. It is not configurable but it is a rule that is being applied
  • Added explanations for most of the settings so they are easier to understand

v1.2.0

  • Updated compatibility to 1.18.2
  • Removed the "Reload" button in the ACP as this is no longer needed
  • Added debug logs to track down any errors
  • Fix: vote max weight was being used as a min, instead of a max