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

apyhub

v0.1.12

Published

<div align="center"> <img src="https://apyhub.com/logo.svg" alt="Alt text" width="256px" height="256px">

Downloads

6

Readme

ApyHub for Node.js

npm npm npm bundle size Discord

About

Welcome to the ApyHub SDK for Node.js! This library provides easy access to the ApyHub APIs through a set of simple and powerful functions.

Our underlying philosophy is to not bloat applications, which is why we have made sure to keep the package as minimal as possible. With this SDK, you can easily perform tasks such as file conversion, text and metadata extraction, document and image generation, image processing, and access to data lists and currency conversion. As our platform grows and develops new APIs, we will be adding more functions to this library.

To learn more about ApyHub, visit our website at apyhub.com or join our Discord server at discord.com/invite/apyhub.

API Documentation

Our SDK provides access to the following API categories:

Each of these categories contains multiple functions for interacting with the corresponding API. For more examples and detailed API documentation, see the links above.

Installation

To use this library, you will need to have Node.js and npm installed on your machine. Then, you can install the ApyHub SDK by running the following command:

npm install apyhub

Usage

To use the library, you will need to initialize it with your ApyHub API token or Basic Authorization.

Token

import { initApyhub } from "apyhub";

initApyhub("YOUR_APY_TOKEN");

Basic Authorization

import { initApyhub } from "apyhub";

initApyhub({
  username: "YOUR_AUTH_USERNAME",
  password: "YOUR_AUTH_PASSWORD",
});

Optional parameters

The initApyhub function can also accept an optional options object with the following parameters:

  • rateLimit: The rate limit for the API client (valid options are integers from 1 to 5, with a default value of 1).
  • debug: A boolean flag to enable debugging output (default: false).
import { initApyhub } from "apyhub";

initApyhub("YOUR_APY_TOKEN", {
  rateLimit: 1,
  debug: true,
});

Example

Once the library is initialized, you can import and use the various functions and methods provided by the library. For example, to access the data list of countries, you can do the following:

import { data } from "apyhub";

const countries = await data.countries();

For more examples, see the API documentation.

Contributing

We welcome contributions to this project. If you have an idea for a new feature or improvement, please open an issue to discuss it. If you'd like to contribute code, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your changes.
  3. Make your changes and commit them.
  4. Push your branch to your fork on GitHub.
  5. Open a pull request from your branch to the main branch of this repository.