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

edemarz-api

v1.4.0

Published

Edemarz API Created to simplify the use of Discord.JS

Downloads

84

Readme

Welcome to Edemarz API!

❔ Edemarz API

A Simple API to configure and enhance the ways of coding your Discord Bot! Compatible with Discord.JS V.12 but it should also work on older versions. There is plenty of features!\

I will add more feature as frequently as possible!\

Features Coming Soon: createConnect4Command
NPM


Installing

First install Node.JS Then:

$ npm install edemarz-api

🔧 Usages

  • DiscordClient - Initiate/Make your Discord Bot Online! The base of every function!
  • SetStatus - Sets the bot status!
  • createTextCommand - Create a command that replys with a text!
  • createEmbedCommand - Create a command that replys with an embed message!
  • createKickCommand - Create an Advanced Kick Command!
  • MongooseClient - Connect to MongoDB using Mongoose in a simplified way!

✈ Importing

//Using Node.JS `require()`
const EdemarzAPI = require("edemarz-api");
//Using ES6 Imports
import EdemarzAPI from "edemarz-api"

📔 Examples

Logging In

const EdemarzAPI = require("edemarz-api");
const DiscordClient = new EdemarzAPI.DiscordClient("very epic discord bot token here", "Text to log when the bot gets online!")

DiscordClient.login()
//Always keep the .login at the bottom of your code!

Properties: Token, ReadyText

Setting A Status

const EdemarzAPI = require("edemarz-api");
const DiscordClient = new EdemarzAPI.DiscordClient("very epic token here", "Text to log when the bot gets online!")

DiscordClient.setStatus("Very epic status here", "watching"); //Usage: <Status>, <Type (watching, playing, competing, listening, streaming)>

DiscordClient.login()
//Always keep the .login at the bottom of your code!

Properties: Status, Type

Creating a Text Response Command

const EdemarzAPI = require("edemarz-api");
const DiscordClient = new EdemarzAPI.DiscordClient("very epic token here", "Text to log when the bot gets online!")

DiscordClient.setStatus("Very epic status here", "watching"); //Usage: <Status>, <Type (watching, playing, competing, listening, streaming)>

DiscordClient.createTextCommand("hi", "Hello", "-"); //Usage: <Command Name>, <Response Text>, <Prefix>

DiscordClient.login()
//Always keep the .login at the bottom of your code!

Properties: Command Name, Response Text, Prefix

Creating an Embed Response Command

const EdemarzAPI = require("edemarz-api");
const DiscordClient = new EdemarzAPI.DiscordClient("Very epic discord bot token here", "Text to log when the bot logs on/gets online!")

DiscordClient.createEmbedCommand("hi", "-", "Hello", "This is an embed description", "This is the embed footer"); // Usage: <Command Name (All Lowercase)>, <Prefix>, <Embed Title>, <Embed Description>, <Embed Footer>

DiscordClient.login()

Properties: Command Name, Preefix, Embed Title, Description, Footer

Creating a Kick Command

const EdemarzAPI = require("edemarz-api");
const DiscordClient = new EdemarzAPI.DiscordClient("Very epic discord bot token here", "Text to log when the bot logs on/gets online!")

DiscordClient.createKickCommand("kick", "KICK_MEMBERS", "-"); //Kick a user | Usage: CommandName, Permission Required, Prefix

DiscordClient.login()

Properties: Command Name, Permission, Prefix\

Connecting to MongoDB

const EdemarzAPI = require("edemarz-api");
const MongooseClient = new EdemarzAPI.MongooseClient("This text will be logged to the console when we successfuly connect to the database!")

MongooseClient.connect("Mongo SRV String here, it is used to connect your Node.JS Application to MongoDB!")

console.log(MongooseClient.connected); //Returns a boolean, if connected returns True/Connected To MongoDB if not connected returns False/Not Connected to MongoDB

Properties: Mongo SRV URL String, ConnectedMSG, {.connected (Checks if a MongooseClient is initiated/connected!)}

My Socials

My Youtube
Discord: Edemarz#8879