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

@mindbill/node

v0.18.0

Published

Typed server SDK for the MindBill Partner API

Readme

@mindbill/node

Dependency-free Node 20+ client for the MindBill Partner API.

npm install @mindbill/node
import { MindBillClient } from "@mindbill/node";

const mindbill = new MindBillClient({
  apiKey: process.env.MINDBILL_API_KEY!,
});

The key uses its developer workspace automatically; no organization ID is required. Optional explicit organization routing remains available for existing practice connections.

The bill is the primary resource. Resolve the customer from an authorized host case and persist one creation key for the logical bill before submitting:

const bill = await mindbill.createAndSubmitBill({
  customerExternalId: authorizedCase.customerExternalId,
  bill: {
    externalId: "report_123",
    patient: {
    firstName: "Taylor",
    lastName: "Example",
    dateOfBirth: "1984-04-12",
    address: {
      line1: "100 Example Avenue",
      city: "Los Angeles",
      state: "CA",
      postalCode: "90012",
    },
    },
    claim: {
    claimNumber: "DEMO-12345",
    employer: "Example Manufacturing",
    dateOfInjury: "2026-06-20",
    injuryState: "CA",
    claimsAdministrator: {
      id: "payer_demo_123",
      name: "Example Claims Administrator",
    },
    },
    service: { date: "2026-08-25" },
    billingProvider: {
      name: "Example Evaluations Medical Group, Inc.",
      taxId: "12-3456789",
      npi: "1234567893",
      phone: "213-555-0100",
      address: {
        line1: "100 Example Avenue",
        city: "Los Angeles",
        state: "CA",
        postalCode: "90012",
      },
    },
    renderingProvider: {
      name: "Avery Example, MD",
      npi: "1234567893",
      taxonomy: "208D00000X",
    },
    serviceLocation: {
      name: "Main office",
      address: {
        line1: "100 Example Avenue",
        city: "Los Angeles",
        state: "CA",
        postalCode: "90012",
      },
      placeOfServiceCode: "11",
    },
    diagnoses: ["M25.512"],
    serviceLines: [{ code: "ML201", modifiers: ["95"], units: 1 }],
  },
  submission: { route: "ebill" },
  documents: [{
    filename: "final-report.pdf",
    documentType: "final_report",
    contentBase64: finalReportBytes.toString("base64"),
  }, {
    filename: "provider-w9.pdf",
    documentType: "w9",
    contentBase64: providerW9Bytes.toString("base64"),
  }],
}, persistedCaseCreationKey);

The request atomically creates and submits the bill. Its first public state is submitted; the public client intentionally exposes no bill draft, update, document mutation, or separate submission API.

Read the immutable bill, human-readable lifecycle/history, EORs, or complete submission packet, then perform an explicit lifecycle action:

const status = await mindbill.getBillStatus(bill.id);
const lifecycle = await mindbill.getBillLifecycle(bill.id);
const eor = await mindbill.getBillEor(bill.id);
const packet = await mindbill.downloadBillPacket(bill.id);

await mindbill.performBillAction(
  bill.id,
  {
    action: "post_payment",
    amount: 503.75,
    method: "check",
    checkNumber: "4811505",
    depositDate: "2026-08-25",
  },
  crypto.randomUUID(),
);

Every mutation requires an idempotency key. Keep the API key on your server. To let native React components read and act on a submitted bill without a billing proxy, authorize the signed-in user and call createBrowserSession from one server route.

Webhook consumers can use verifyMindBillWebhookSignature with the exact raw body and compareMindBillEventSequence for arbitrary-length sequence values.

The public client intentionally has no organization, provider, or location synchronization API. Send the values that belong on each bill and retain the returned bill ID. Stable externalId values let you query the same bill, patient, or claim without duplicating your database model.

Browser sessions accept a server-derived resource: { customerExternalId } for customer collections and creation, { billId } for one existing bill, or both fields for their intersection. A bill-restricted token cannot create. Shared settings require a separate unscoped workspace-administrator session with organization:manage. Customer tokens cannot read or manage shared billing profiles. The browser user ID in subject is an audit identity, not a customer access rule.