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

@identa-io/business-ts-sdk

v0.3.3

Published

TypeScript SDK for Identa Business API - GraphQL client for business dashboard integration

Readme

Identa Business TypeScript SDK

TypeScript SDK for the Identa Business API. This package provides type-safe GraphQL client access to the Identa business backend for business dashboard integration.

Overview

This SDK is automatically generated from the GraphQL schema defined in ../identa/applications/business/api/business.graphql. It provides:

  • Full TypeScript type definitions for all GraphQL types
  • Type-safe client for making API requests
  • Auto-completion support in IDEs
  • Runtime type safety

Installation

npm install

Generating the Client

The TypeScript client is generated from the GraphQL schema in the identa repository. To regenerate:

# Generate types from schema
npm run codegen

# Generate and watch for changes
npm run codegen:watch

# Build the package
npm run build

Project Structure

business-ts-sdk/
├── src/
│   ├── client.ts          # IdentaBusinessClient wrapper class
│   └── index.ts           # Main export file
├── generated/             # Auto-generated GraphQL types (not committed)
│   └── graphql.ts         # Generated types and SDK
├── dist/                  # Compiled JavaScript (not committed)
├── codegen.ts             # GraphQL Code Generator configuration
├── tsconfig.json          # TypeScript configuration
└── package.json           # Package dependencies and scripts

Usage

import { IdentaBusinessClient } from '@identa-io/business-ts-sdk';

// Initialize the client
const client = new IdentaBusinessClient({
  endpoint: 'https://api.identa.io/business/graphql',
  token: 'your-business-token'
});

// Make type-safe API requests
const query = `
  query {
    # Your business query here
  }
`;

const response = await client.request(query);

Schema Updates

When the GraphQL schema in ../identa/applications/business/api/business.graphql is updated:

  1. Pull the latest changes from the identa repository
  2. Run npm run codegen to regenerate TypeScript types
  3. Run npm run build to compile the updated SDK
  4. Test the changes in your business dashboard application

Future: GitHub Actions Integration

This project is structured to support automated code generation via GitHub Actions. In the future, you can add a workflow that:

  1. Monitors changes to the GraphQL schema in the identa repository
  2. Automatically runs npm run codegen when schema changes are detected
  3. Creates a pull request with the updated generated types
  4. Publishes updated SDK versions to npm

To implement this in the future, create .github/workflows/codegen.yml with appropriate triggers and actions.

Development

# Install dependencies
npm install

# Generate types
npm run codegen

# Build the package
npm run build

# Clean generated files
npm run clean

Notes

  • The generated/ directory contains auto-generated code and should not be edited manually
  • The schema path in codegen.ts is relative (../identa/applications/business/api/business.graphql)
  • This is a partial schema - gqlgen adds core GraphQL definitions during server code generation
  • Custom scalars (Time, Upload, ID) are mapped to TypeScript types in codegen.ts