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

@jmdt/sesami-node

v1.0.2

Published

Made for Sesami Booking API

Readme

Sesami Node.js API Client

A Node.js client library for interacting with the Sesami Booking API. This client makes it easy to manage appointments, team members, services, resources, and more through the Sesami platform.

Installation

npm install @jmdt/sesami-node

Features

  • Complete TypeScript support with comprehensive type definitions

  • Promise-based API for async operations

  • Supports all major Sesami API endpoints:

    • Shops
    • Services
    • Team Members
    • Appointments
    • Reservations
    • Resources
    • Flows
    • Authentication

Documentation & Resources

For more information about the Sesami API, refer to these official resources:


Quick Start

import Sesami from "@jmdt/sesami-node";

// Initialize the client
const sesami = new Sesami({
  apiToken: "your-api-token",
  apiClientID: "your-client-id",
  shopID: "your-shop-id",
});

// Example: Get shop information
async function getShopInfo() {
  try {
    const shop = sesami.shops.getById("shop-id");
    const shopData = await shop.get();
    console.log(shopData);
  } catch (error) {
    console.error("Error fetching shop:", error);
  }
}

Environment Variables

You can use environment variables to configure the client:

API_CLIENT_ID=your-client-id
API_TOKEN=your-api-token
SHOP_ID=your-shop-id

Core API Components

Shops

// Get all shops
const shops = await sesami.shops.get({ limit: 20 });

// Get a specific shop
//SHOP ID is not the shopify shop id but the sesami shop id
const shop = sesami.shops.getById("shop-id");
const shopData = await shop.get();

// Get shop configuration
const config = await shop.config();

Services

// Get all services for a shop
const shop = sesami.shops.getById("shop-id");
const services = await shop.services.get({ limit: 20 });

// Get a specific service
const service = shop.services.getById("service-id");
const serviceData = await service.get();

Team Members

// Get all team members
const teamMembers = await shop.teamMembers.get({ limit: 20 });

// Get a specific team member
const teamMember = shop.teamMembers.getById("team-member-id");
const teamMemberData = await teamMember.get();

// Get team member availability
const availability = await teamMember.availabilities();

Appointments

// Get all appointments
const appointments = await shop.appointments.get({ limit: 20 });

// Get a specific appointment
const appointment = shop.appointments.getById("appointment-id");
const appointmentData = await appointment.get();

// Cancel an appointment
await appointment.cancel({ refundMoney: true, content: "Cancellation reason" });

Error Handling

The API client provides error details when requests fail:

try {
  const result = await shop.services.get({});
} catch (error) {
  console.error("API Error:", error);
}

Development

To set up the project for development:

git clone https://github.com/yourusername/Node-Sesami.git
cd Node-Sesami
npm install
npm run dev

Testing

You can run the development server to test the API:

npm run dev

Then visit http://localhost:3000/test to see sample API responses.

License

MIT


Created by Jayden Marquardt for Sesami integration.