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

gizmovsky

v1.2.1

Published

Unofficial SDK for Gizmo API

Readme

gizmovsky

Unofficial Node.js SDK for the Gizmo cyber-club management API — v1, v2 and v3 (operator and user scopes).

  • 110 generated v3 modules, 55 v2, 21 v1 — full endpoint coverage per version
  • Basic auth (operator) or bearer token (user scope /api/user/v3/...)
  • Server-Sent Events stream wrapper (v3 eventStream) with typed event filters
  • ESM + CJS builds, TypeScript declarations, request timeout out of the box

Installation

npm install gizmovsky

Quick start

import { GizmoSDK } from 'gizmovsky'

const sdk = new GizmoSDK({
  ip: '127.0.0.1',
  port: 80,
  ssl: false,
  username: 'admin',
  password: 'admin',
  timeout: 30000,        // ms, default 30000; 0 disables
})

// v3 (current Gizmo)
const users = await sdk.v3.users.getUsers()
const hosts = await sdk.v3.hosts.getHosts()
await sdk.v3.users.postUsersByIdLogin(userId, hostId)

// v2 / v1 are also available
const products = await sdk.v2.products.getAll()

Every response is the raw Gizmo envelope: { version, result, httpStatusCode, message, isError }.

User scope (bearer token)

// 1) obtain a token with the operator client
const res = await sdk.v3.auth.getUserAuthAccesstoken({ username, password })
const token = res.result.token

// 2) create a client on behalf of that user
const userSdk = new GizmoSDK({ ip, port, bearerToken: token })
const cart = await userSdk.v3.carts.getUserCart()

Events (SSE)

const stream = sdk.v3.eventStream()
stream.invoiceCreated().assetCheckedOut().run((ev) => console.log(ev))
// later: stream.abort()

Custom requests

Anything not covered by a generated module:

const raw = await sdk.client.request('get', '/api/v3/branches', {}, { Limit: 100 })

Version compatibility

Generated from the official OpenAPI documents of each Gizmo release (http://<server>/openapi/v3.json). Tested against Gizmo v3.0. Endpoints present in the spec but broken server-side (a few /reports/* and /achievements* return 500 on some builds) are Gizmo's own issues.

Contributing

Pull requests and issues are welcome. Regenerate modules with tools/generate.cjs from a fresh OpenAPI document, then npm run build.

License

MIT