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

axcelerate-client

v0.1.9

Published

A TypeScript client for the aXcelerate API. Provides a simple, typed wrapper around aXcelerate's REST endpoints (contacts, courses, enrolments, and more) for Node.js server-side applications.

Readme

aXcelerate Client

A fully typed Node.js client for the aXcelerate REST API. The library wraps vendor endpoints with ts-rest contracts and Zod schemas so requests and responses are validated at runtime and inferred at compile time.

  • API docs: https://app.axcelerate.com/apidocs/home
  • Requires: Node 18 or newer (server-only usage)

Features

  • End-to-end typing — Request bodies, params, and responses are all backed by Zod schemas.
  • Typed resources — Covers contacts and courses, including enrolments and course instances.
  • Runtime validation — Normalised error handling surfaces upstream changes early.
  • Dual bundles — Ships ESM & CJS builds with generated declaration files.

Installation

pnpm add axcelerate-client
# or
npm install axcelerate-client
yarn add axcelerate-client

Quick Start

import { createAxcelerateClient } from "axcelerate-client";

const axc = createAxcelerateClient({
  baseUrl: "https://yourorg.api.axcelerate.com.au/api/", 
  apiToken: process.env.AXCELERATE_API_TOKEN!,
  wsToken: process.env.AXCELERATE_WS_TOKEN!,
});

const result = await axc.courses.get({
  query: { current: true, public: true },
});

if (result.status === 200) {
  result.body.forEach((course) => {
    console.log(`${course.name} (${course.type})`);
  });
}

Every router method enforces the contract defined in src/contract. If the upstream API changes shape, Zod validation surfaces the mismatch immediately.

Available Endpoints

Courses

  • courses.get
  • courses.instance.get
  • courses.enrol
  • courses.enrolMultiple
  • courses.detail.get

Contacts

  • contacts.create, contacts.update, contacts.get
  • contacts.search
  • contacts.verifyUsi
  • contacts.note.create

Organisations

  • organisations.search

Each action is defined in its own file under src/contract/modules/**, with its request/response schemas colocated in src/schemas/**. Query and mutation schemas conform to the shared QueryEndpointSchemas and MutationEndpointSchemas types defined in src/schemas/meta.ts, keeping endpoint definitions consistent across the client.

See the fixtures and specs in tests/ for concrete request/response examples.

Development

pnpm install            # install dependencies
pnpm build              # emit dist/ (ESM + CJS)
pnpm test               # run the Vitest suite (uses undici MockAgent)
pnpm lint               # eslint .
pnpm format             # prettier . --write
pnpm dev                # tsup watch mode

Releasing

tsup bundles the library and prepare runs the build automatically. Bump the version, run pnpm build, then publish with your package manager of choice.

Contributing

Bug reports and pull requests are welcome. Please:

  1. Discuss large changes in an issue first.
  2. Add or update tests for behavioural changes.
  3. Run pnpm lint and pnpm test before submitting.

License

Licensed under the MIT License.