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

@servease/sdk

v0.1.0

Published

Typed TypeScript/JavaScript SDK for the ServEase API, generated from the official OpenAPI spec.

Readme

@servease/sdk

Typed TypeScript/JavaScript SDK for the ServEase API. The client (types + methods) is generated automatically from the official OpenAPI spec (servease-api.json), so it always matches the real API surface.

Install

npm install @servease/sdk

Usage

import { createServEaseClient } from "@servease/sdk";

const servease = createServEaseClient({
  apiKey: process.env.SERVEASE_API_KEY!, // sk_live_... / sk_test_...
});

// Fully typed request + response, autocompletion for params and body
const { data, error } = await servease.GET("/reservations", {
  params: { query: { restaurant_id: "rst_123" } },
});

if (error) {
  console.error(error.error.message);
} else {
  console.log(data.data);
}

// Create a reservation
const { data: reservation } = await servease.POST("/reservations", {
  body: {
    restaurant_id: "rst_123",
    party_size: 4,
    start_time: "2026-08-20T18:30:00Z",
    guest: { first_name: "Jane", last_name: "Doe", email: "[email protected]" },
  },
});

Point the client at the staging environment if needed:

createServEaseClient({
  apiKey: "sk_test_...",
  baseUrl: "https://api-staging.servease.de/v1",
});

Updating the SDK when the API changes

The whole SDK (types + generated client bindings) is derived from servease-api.json. To pick up a new version of the spec, bump the package version, publish to npm and push to GitHub in one step:

npm run spec:update -- ./path/to/new-servease-api.json patch
  • First argument: path to the new OpenAPI JSON file (replaces servease-api.json).
  • Second argument: version bump — patch (default), minor or major.
  • Flags: --no-publish to skip npm publish, --no-push to skip pushing to GitHub.

This will, in order:

  1. Copy the new spec into servease-api.json.
  2. Regenerate the TypeScript types (npm run generate) and build the package.
  3. Bump the version in package.json and create a git commit + tag.
  4. Run npm publish (requires being logged in via npm login, scope must allow publish).
  5. git push --follow-tags to publish the release on GitHub.

Manual steps

npm run generate   # regenerate src/generated/schema.ts from servease-api.json
npm run build      # generate + bundle dist/ (esm + cjs + d.ts)
npm version patch  # bump version, commit + tag
npm publish        # publish to npm (public access)
git push --follow-tags

License

MIT