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

bts

v1.0.3

Published

bill today server

Downloads

5

Readme

bts

bill.today server

NOTE: This package is not ready yet. Some things do NOT work atm!

Status

Build Status

Usage

Installation

Install the server:

npm install bts -g

We recommend installing bts server globally since this seperates your config away from bts itself + is easy to update

API requests

There is a billtoday package available on npm that handles requests and json parsing for you. In general an API request looks like this:
GET /someappdomain.com/userId/
Note: You have to specify your long lived bts access token in the header for authentication.

The response will be a json string as body:

{
    "btId":"someInternalBtsId",
    "btUserLink":"https://bill.today/someappdomain.com/someInternalBtsId",
    "userId":"userId",
    "userEmail":"[email protected]",
    "status":"ok",
    "statusMessage":"Everything ok!",
    "subscribed":true,
    "subscribedUntil":"2030-12-01",
    "plan":"pro"
}

| key | description | |---|---| | btId | can be used to reference to an account in the bill today server instance | | btUserLink | just for convenience -> a ready to use link you can use to redirect your user to for fixing payment issues | | userId| this represents the id that is used by your app to organize accounts | | userEmail| contains email that the user used at sign up on bill.today | | status | health of billing account. Can be used to show more detailed status information in your app | | statusMessage | more detailed text for status might be not ok | | subscribed | tells you if a plan is active | | subscribedUntil | tells you the left amount of time purchased | | plan | tells you the active plan (that the user has paid for) |