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

@transentis/bptk-connector

v0.0.24

Published

####

Readme

A small Rest Client to connect to a BPTK Backend

NPM

Simple example using promises and callbacks

import bptkConnector from('bptkConnector')

const bptkApi = new bptkConnector(process.env.API_KEY)

TODO

Same example (as the above) using async/await, destructuring, and template strings

TODO

More Examples

Table of Contents:

Features

Rate Limiting

TODO

All Endpoints Covered

Caching

Currently supports a basic JS cache (for simple scripts), node-lru-cache.

Compatible with Callbacks, Promises, Async / Await

TypeScript Support

Works immediately upon installation.

Methods

Check out ENDPOINTS.md to see bptk's methods, as well as the endpoints, covered.

Documentation

TODO

Installation and Usage

The minimum required Node.js version is v7.6.0 for native async/await support (there's only a mere line in the codebase, though).

npm

npm i --save @transentis/bptk-connector

yarn

yarn add @transentis/bptk-connector

Quick Setup with [Default Config]

TODO SINCE NO

Note: Any config passed in is deeply merged with the default config.

Environment Variables

const bptkApi = new bptkAPi(process.env.API_KEY)

Although it is possible to manually pass in the API key, it is preferable to store the key in a secret file (which should not be committed).

This allows bptk-connector to be constructed like in the above code.

# filename: .env
API_KEY=RGAPI-my-api-key

Callbacks

TODO

Promises

bptkApi
	.requestModel(myModel)
	.then((data) => doSomething(data))
	.then(console.log)
	.catch((error) => console.error(error))

Async / Await

const main = async () => {
	const requestedModel = await bptkApi.requestModel(myModel)
}

Request Errors

Errors as of v1.0.0 return the following error object:

{
    statusCode: 42, // some random number
    url: '', // the debug URL that is used in logging as well
    error: {} // the rest of the error object
}

Bugs

TODO

FAQ

TODO