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

zenoti

v1.0.0

Published

SDK for Zenoti

Readme

Zenoti SDK for TypeScript

Unofficial SDK wrapper for Zenoti's REST API. Typed client for guests, appointments, bookings, services, and therapists.

TypeScript Node License PRs Welcome

Zenoti SDK Logo

Installation

pnpm add zenoti
# or
npm install zenoti

Setup

Create a client with your API key and center ID. An optional baseUrl overrides the default https://api.zenoti.com.

import { Zenoti } from "zenoti";

const client = new Zenoti({
  apiKey: "your-api-key",
  centerId: "your-center-id",
  // baseUrl: "https://api.zenoti.com"  // optional
});

API Overview

Guests (client.guests)

  • create(payload: CreateGuestDto) – Create a guest with personal_info (first_name, last_name, email, mobile_phone)
  • search(payload: SearchGuestDto) – Search by email, first_name, or last_name (at least one required)
  • getAll(page?, size?) – List guests with pagination (defaults: page 1, size 10)
  • get(guest_id) – Get a guest by ID
  • getPurchases(guest_id) – List a guest’s products

Appointments (client.appointments)

  • getAll(start_date, end_date) – List appointments in a date range

Bookings (client.bookings)

  • create(payload: CreateBookingDto) – Create a booking with date, guests (id, items with item_id), and optional therapist_id
  • getSlots(booking_id) – Get available slots for a booking
  • reserve(booking_id, slot_time, create_invoice?) – Reserve a slot (default create_invoice: false)
  • confirm(booking_id, notes, group_name) – Confirm a reserved booking

Services (client.services)

  • getAll(page?, size?) – List services with pagination (defaults: page 1, size 30)
  • search(search_string) – Search services by name; experimental, may be rate-limited

Therapists (client.therapists)

  • getAll() – List all therapists for the center

Example

import { Zenoti } from "zenoti";

const client = new Zenoti({
  apiKey: process.env.ZENOTI_API_KEY!,
  centerId: process.env.ZENOTI_CENTER_ID!,
});

// Create a guest
const guest = await client.guests.create({
  personal_info: {
    first_name: "Jane",
    last_name: "Doe",
    email: "[email protected]",
    mobile_phone: { country_code: 1, number: "5551234567" },
  },
});

// Search guests
const results = await client.guests.search({ email: "[email protected]" });

// List appointments
const appointments = await client.appointments.getAll("2025-01-01", "2025-01-31");

// Create a booking and reserve a slot
const booking = await client.bookings.create({
  date: "2025-01-15",
  guests: { id: guest.id, items: { item_id: "service-uuid" } },
  therapist_id: "optional-therapist-uuid",
});
const { slots } = await client.bookings.getSlots(booking.id);
await client.bookings.reserve(booking.id, slots[0].Time);
await client.bookings.confirm(booking.id, "Notes", "Group name");

Errors

The SDK throws:

  • ValidationError – Invalid or missing input (e.g. empty search, invalid DTOs)
  • NotFoundError – Resource not found
  • AuthenticationError – Invalid or missing API key
  • AuthorizationError – Insufficient permissions

Exports

You can import the main client, options, services, types, and errors:

import {
  Zenoti,
  ZenotiClientOptions,
  ValidationError,
  NotFoundError,
  AuthenticationError,
  AuthorizationError,
} from "zenoti";

Build

pnpm build

Output: ESM (dist/index.js), CJS (dist/index.cjs), and type definitions (dist/index.d.ts).