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

@adspireai/adspire-node-sdk

v1.0.119

Published

Official Node.js SDK for AdspireAI API

Readme

adspire-sdk-node

A Node.js SDK for easily interacting with the Adspire API.

Features

  • Simple, auto-generated TypeScript client for Adspire's REST API
  • Built on top of @hey-api/client-fetch
  • Type-safe API calls (via auto-generated types)
  • Easily configurable base URL and environment settings

Usage

First, set up your environment variable for the OpenAPI spec URL:

  1. Copy the example environment file, then edit .env as needed:

    npm run setup

    The .env file will include:

    OPENAPI_SPEC=https://stage-api.adspire.ai/docs?api-docs.json

Scripts

  • npm run setup – Copies env.example to .env for local environment setup.
  • npm run generate – Regenerates the SDK from the OpenAPI spec (requires ts-node).
  • npm run build – Compiles the TypeScript SDK (src/) into publishable JavaScript (dist/src/).

Installation

npm install @adspireai/adspire-node-sdk

Regenerating SDK

If the API spec changes:

npm run generate
npm run build

This will update the SDK code under src/ based on the latest OpenAPI spec defined in your .env file and dist package that gets published to npmjs.

Note: Only the compiled SDK (dist/src/) is published to npm, not the source or script files. If you're contributing or testing locally, use the scripts as above.

Development

  • The SDK is source-based and auto-generated using @hey-api/openapi-ts.

  • All TypeScript-generated API types and methods are available via:

    import * from '@adspireai/adspire-node-sdk'
  • See src/client.gen.ts and src/index.ts for details.

Local Development

For developers working locally with a parent application (e.g., adspire-app), you can copy the built SDK directly to the parent's node_modules after building:

npm run generate
npm run build
npm run copy-docs

This allows you to test SDK changes immediately in your parent application without publishing to npm.

Contributing

Pull requests welcome! For major changes, please open an issue first to discuss what you would like to change.


Generated by @hey-api/openapi-ts

Explanation:
This README.md covers installation, environment setup, usage, available scripts, development workflows, and licensing, matching the project details found in your package.json, env.example, and source files. For more advanced SDK usage or full API endpoint documentation, you should look into your generated src/sdk.gen.ts or the official Adspire API docs.