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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ricardoneud.com/api

v1.2.1

Published

Official SDK for the API from Ricardoneud.com, fully compatible with all environments supported by npm

Readme

NPM Module for API Usage

This guide explains how to use the official NPM module to interact with the API. It covers installation, setup, authentication, and using the main modules such as games, tools, reseller, and user management.

⚠️ Important: Always verify which endpoints are available in which version. Not all endpoints exist in every version, and some features are only available from v3 and above. Make sure your project uses a supported API version.

Installation

npm install @ricardoneud.com/api

OR

yarn add @ricardoneud.com/api

Initialization

The client can be initialized with either an API Key, a Secret token, and optionally a custom URL:

const RicardoNeudAPI = require('@ricardoneud.com/api');

const api = new RicardoNeudAPI({
  apiKey: 'your-api-key', // OR use secret: 'your-secret'
  version: 'v4'
});

Changing Base URL

You can change the API endpoint at runtime using setURL:

api.setURL('https://sandbox.api.ricardoneud.com'); // Switch to sandbox environment

Changing Version

api.setVersion('v4'); // Verify which endpoints are supported in v4

Authentication

API Key

  1. Log in at Ricardoneud.com
  2. Go to Dashboard → API Keys
  3. Click Create API Key, configure permissions, and set environment to Production.
  4. Use the API Key in your client:
api.setApiKey('your-api-key');

Secret Token (Login-based)

Short-lived tokens provide session-based access (valid for 24 hours).

const loginResponse = await api.user.login('usernameOrEmail', 'password', true);
console.log(loginResponse.secret); // Use this token in subsequent requests
const api = new RicardoNeudAPI({ secret: 'your-secret' });

You can revoke tokens when needed:

await api.user.revokeSecret('usernameOrEmail', 'password', 'your-secret');

Core Modules

Games

const server = await api.games.minecraft('play.hypixel.net');
const fivemServer = await api.games.fivem('127.0.0.1', '30120');

Tools

const dns = await api.tools.dnsCheck('example.com', 'A');
const domain = await api.tools.domainCheck('google.com');
const subdomains = await api.tools.subdomainFinder('example.com');
const geoip = await api.tools.geoIP('8.8.8.8');

Mail verification:

const mail = await api.tools.mailCheck('example.com', 'selector');
const mailHost = await api.tools.mailHostCheck('example.com');

Reseller

await api.reseller.checkLicense('LICENSE_KEY');

await api.reseller.generateLicense({
  registeredTo: 'John Doe',
  domainOrIp: 'example.com',
  status: 'active',
  productId: 123,
  projectId: 456
});

await api.reseller.updateLicense('LICENSE_KEY', { status: 'inactive' });
await api.reseller.deleteLicense('LICENSE_KEY');

User

const loginResponse = await api.user.login('usernameOrEmail', 'password', true);
await api.user.revokeSecret('usernameOrEmail', 'password', 'secret-token');

OAuth2

const token = await api.oauth2.getAccessToken('code', 'redirectUri', 'clientId', 'clientSecret');
const profile = await api.oauth2.getProfile(token.access_token);

Request Handling

All HTTP requests are handled internally with Axios, including error handling. Every method returns a Promise.

try {
  const result = await api.tools.geoIP('8.8.8.8');
  console.log(result);
} catch (error) {
  console.error(error.status, error.message, error.data);
}

TypeScript Support

import RicardoNeudAPI, { Games, Tools, Reseller, User, OAuth2 } from '@ricardoneud.com/api';

const api = new RicardoNeudAPI({ apiKey: 'your-api-key', version: 'v4' });

Notes

  • You must provide either an API Key or a Secret token.
  • Secret tokens expire after 24 hours and are visible in your dashboard.
  • API Key and Secret are mutually exclusive; setting one clears the other.
  • You can optionally provide a custom baseURL at initialization. If omitted, the SDK defaults to https://api.ricardoneud.com.
  • The setURL method allows switching API domains at runtime (e.g., sandbox or custom client endpoints).
  • Always check the supported API version to ensure endpoint compatibility.