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

@helperdiscord/dsc.gg

v1.1.3

Published

<p align="center"> <a href="https://npmjs.com/@helperdiscord/dsc.gg"><img src="https://img.shields.io/npm/v/@helperdiscord/dsc.gg.svg" alt="NPM Package Version"></a> <a href="https://npmjs.com/@helperdiscord/dsc.gg"><img src="https://img.shields.io/gi

Downloads

28

Readme

@helperdiscord/dsc.gg

A node js wrapper for dsc.gg

To use this package, you need to create a developer app here and grab the API token. This token is required for all API requests.

Docs Site

Install instructions

Install with NPM

npm install @helperdiscord/dsc.gg

Install with Yarn

yarn install @helperdiscord/dsc.gg


Getting Started

Initilize the @helperdiscord/dsc.gg client

const { Client } = require("@helperdiscord/dsc.gg");

const client = new Client("Your API token")

Client Functions

Fetch information on a dsc.gg link

const link = await client.getLink('link_ending')

Fetch information on a dsc.gg user

const user = await client.getUser('user_id')

Fetch a dsc.gg user's links

const links = await client.getUserLinks('user_id')

Fetch the top dsc.gg links

const top_links = await client.getTopLinks()

Search for dsc.gg links

const results = await client.searchLinks('search_query', {
    type: 'bot', //optional - can be bot, server, or template
    limit: 10, //optional - limit the # of results that will be returned
})

Create a dsc.gg link

const response = await client.createLink('link_ending', {
    type: 'server', //this can be server, bot, template or link
    redirect: 'something', //the redirect of the link
    unlisted: false, //true or false
    password: 'some_password', //optional - exclude this for no password
    meta: {
        title: 'some embed title', //optional
        description: 'some embed description', //optional
        image: 'some image url' //optional
    }
})

Update a dsc.gg link

const response = await client.updateLink('link_ending', {
    type: 'server', //this can be server, bot, template or link
    redirect: 'something', //the redirect of the link
    unlisted: false, //true or false
    password: 'some_password', //optional - exclude this for no password
    meta: {
        title: 'some embed title', //optional
        description: 'some embed description', //optional
        image: 'some image url' //optional
    }
})

Delete a dsc.gg link

const response = await client.deleteLink('link_ending')

Full Example

Search for links from a given input

const {Client} = require('./dist/index');
const c = new Client('token');
(async () => {
  const r = await c.searchLinks('helper', {type: 'bot'});
  console.log(r);
})();