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

@sencai-space/sdk

v1.0.0

Published

Official TypeScript/JavaScript client for the Sencai Platform API

Readme

@sencai-space/sdk (TypeScript)

TypeScript/JavaScript klient pro Sencai Platform API (/api/v1/*), generovaný z veřejného OpenAPI specu (sencai.space/openapi/sencai-platform.public.v1.yaml, výstup F4.DEVPORTAL.01).

Balíček zatím není publikovaný na npm registry. Veřejná distribuce je obchodní/release rozhodnutí mimo scope F4.DEVPORTAL (viz PHASE-4-PLAN.md, modul přehled DEVPORTAL). Do doby publikace se instaluje jen z monorepo cesty nebo přímo z gitu.

Co je (ne)generované

Tento adresář je z většiny generovaný (src/, package.json, tsconfig.esm.json, docs/) přes scripts/sdk-generate.sh — jeden vstup (veřejný OpenAPI spec) → openapi-generator-cli (typescript-fetch generátor) → tři jazykové klienty najednou (TS/Python/Go), viz komentář v tom skriptu.

Ručně psané a chráněné přes .openapi-generator-ignore (regenerace je nikdy nepřepíše):

  • tento README.md
  • CHANGELOG.md
  • .env.example
  • tsconfig.json (strict: true dle repo konvence + poznámka k noImplicitAny výjimce)

⚠️ Regenerace je dnes nefunkční. scripts/sdk-generate.sh čte spec z sencai.space/openapi/sencai-platform.public.v1.yaml — sencai.space (Strapi) byl ale smazán 2026-07-30, adresář v monorepu vůbec neexistuje. Skript proto skončí hned na úvodní kontrole existence souboru. Committed generovaný kód (src/) zůstává buildovatelný — je jen zamrzlý na posledním stavu specu, dokud nevznikne nový zdroj (typicky vygenerovaný z sencai-backend, Go náhrady Strapi).

Regenerace po změně specu (až bude mít skript kde číst):

cd sencai.space && npm run openapi:generate   # F4.DEVPORTAL.01, pokud se spec změnil
cd .. && ./scripts/sdk-generate.sh

Instalace

npm install @sencai-space/sdk

Z monorepa (vývoj proti rozpracovanému klientovi):

npm install ./packages/sdk-ts

Použití

import { Configuration, CloudInstanceApi, OrganisationApi } from '@sencai-space/sdk';

const config = new Configuration({
  basePath: 'https://api.sencai.space/api/v1', // nebo http://api.sencai.localhost/api/v1 lokálně
  accessToken: async () => myKeycloakAccessToken, // Bearer JWT — nebo budoucí API-key header,
                                                    // viz `security` sekce specu (bearerAuth /
                                                    // apiTokenAuth) — SDK jen umožňuje injection,
                                                    // neřeší, jak token získat
});

const cloudInstances = new CloudInstanceApi(config);
const { data } = await cloudInstances.findCloudInstance();

Configuration.basePath i accessToken jsou vždy konfigurovatelné v konstruktoru — balíček neobsahuje žádnou hardcoded produkční URL.

Build & typecheck

npm install
npm run build       # tsc (CJS → dist/) + tsc -p tsconfig.esm.json (ESM → dist/esm/)
npx tsc --noEmit    # strict typecheck bez emitu

Verzování

Verze balíčku (package.json → version) je odvozená z info.version veřejného OpenAPI specu při každé regeneraci — není bumpovaná ručně. Breaking change v API → nová major verze specu → SDK breaking change, zdokumentovat v CHANGELOG.md s odkazem na doc.sencai.space/dev/api-versioning (SUNSET_DATE konvenci).

Distribuce

Do konzumujících frontend/service projektů dle stejné vendoring konvence jako @sencai/audit (viz packages/README.md), dokud nebude schválená veřejná npm publikace.