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 🙏

© 2026 – Pkg Stats / Ryan Hefner

nodebb-plugin-geetest-new

v1.1.0

Published

Add Geetest v4 captcha to the registration process

Readme

nodebb-plugin-geetest

Geetest v4 (极验第四代) captcha plugin for NodeBB forum software.

Features

  • Integrates Geetest v4 captcha into NodeBB registration process
  • Supports latest NodeBB v3.x+
  • Modern async/await code patterns
  • Multi-language support (English, German, Chinese)
  • Admin settings panel for easy configuration

Installation

  1. Install the plugin via npm:

    npm install nodebb-plugin-geetest
  2. Activate the plugin in NodeBB Admin Control Panel (ACP):

    • Navigate to Manage > Plugins
    • Find "Geetest v4 Captcha" and click Install
  3. Configure the plugin:

    • Go to Manage > Plugins > Geetest v4 Settings
    • Enable the captcha
    • Enter your Geetest Captcha ID and Captcha Key
    • Save settings and reload NodeBB

Configuration

Getting Geetest Credentials

  1. Register an account at Geetest
  2. Create a new captcha application
  3. Get your Captcha ID and Captcha Key from the dashboard

Plugin Settings

  • Enable Geetest v4 Captcha: Toggle to enable/disable captcha verification
  • Captcha ID: Your Geetest captcha ID (public key)
  • Captcha Key: Your Geetest captcha key (secret key)

Technical Details

Backend Validation

The plugin validates captcha responses using Geetest v4's server-side API:

  • Endpoint: http://gcaptcha4.geetest.com/validate
  • Uses HMAC-SHA256 signature for secure validation
  • Validates lot_number, captcha_output, pass_token, and gen_time

Frontend Integration

  • Loads Geetest v4 SDK from https://static.geetest.com/v4/gt4.js
  • Uses initGeetest4 for initialization
  • Product type: bind (seamless integration)
  • Automatically appends validation tokens to registration form

Hooks Used

  • static:app.load: Initialize plugin and load settings
  • filter:admin.header.build: Add admin navigation
  • filter:register.build: Add captcha to registration form
  • filter:register.check: Validate captcha on form submission

Requirements

  • NodeBB v3.0.0 or higher
  • Node.js 14 or higher
  • axios (automatically installed as dependency)

Troubleshooting

Captcha not showing

  1. Check if the plugin is activated in ACP
  2. Verify that captcha is enabled in settings
  3. Ensure Captcha ID and Key are correctly entered
  4. Check browser console for JavaScript errors

Validation failed

  1. Verify your Geetest credentials are correct
  2. Check server connectivity to gcaptcha4.geetest.com
  3. Ensure server time is synchronized (NTP)
  4. Check NodeBB logs for detailed error messages

Development

Local Testing

  1. Clone your NodeBB instance
  2. Link the plugin:
    cd nodebb-plugin-geetest
    npm link
    cd ../NodeBB
    npm link nodebb-plugin-geetest
    ./nodebb build
    ./nodebb dev

File Structure

nodebb-plugin-geetest/
├── languages/           # Translation files
│   ├── de/             # German
│   ├── en-GB/          # English
├── public/
│   ├── js/
│   │   └── main.js     # Frontend captcha logic
│   └── templates/
│       └── admin/
│           └── plugins/
│               └── geetest.tpl  # Admin settings
├── library.js           # Main plugin logic
├── plugin.json          # Plugin configuration
└── package.json         # Dependencies

License

MIT License

Support

For issues and feature requests, please open an issue on the GitHub repository.

Changelog

v1.0.0

  • Complete rewrite for NodeBB v3.x compatibility
  • Upgraded to Geetest v4 API
  • Modern async/await patterns
  • Improved error handling
  • Enhanced security with HMAC-SHA256 validation
  • Multi-language support