Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

194 Commits

Repository files navigation

Aignostics Platform TypeScript SDK

codecovQuality Gate StatusCI/CD Pipeline

The official TypeScript SDK for the Aignostics Platform, providing type-safe access to the Aignostics API. Also includes a CLI tool for command-line operations.

For general information about the Aignostics Platform check this documentation page

Packages

Features

  • 🚀 Type-safe API client - Generated from OpenAPI specifications
  • 🔧 CLI tool - Command-line interface for platform operations
  • 🧪 Comprehensive testing - 85%+ code coverage with unit and integration tests
  • 🛡️ Code quality - oxlint, oxfmt, and SonarQube integration

Installation

SDK Package

npm install @aignostics/sdk

CLI Package

npm install -g @aignostics/cli

Usage

For detailed usage instructions, see the individual package documentation:

Quick Start - SDK

import{PlatformSDK}from'@aignostics/sdk';constsdk=newPlatformSDK({baseURL: 'https://api.aignostics.com',tokenProvider: ()=>'your-access-token-here',});// List applicationsconstapplications=awaitsdk.listApplications();// List application runsconstruns=awaitsdk.listApplicationRuns();

Quick Start - CLI

# Install and use the CLI
npm install -g @aignostics/cli
aignostics info

Developer Documentation

Architecture & Development

Development Setup

Prerequisites

  • Node.js 18+
  • Docker (for OpenAPI code generation)

Setup

# Clone the repository
git clone https://github.com/aignostics/typescript-sdk.git
cd typescript-sdk
# Install dependencies
npm install
# Build all packages
npm run build

npm Commands

# Build all packages
npm run build
# Test all packages
npm run test# Work with individual packages
npm run build:sdk # Build only SDK
npm run test:cli # Test only CLI
npm run codegen # Generate OpenAPI client

Available Scripts

  • npm run build - Build all packages
  • npm run test - Run all tests
  • npm run lint - Lint all packages
  • npm run codegen - Generate OpenAPI client for SDK
  • npm run clean - Clean all build outputs

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Commit Convention

This project uses Conventional Commits. Please format your commits accordingly:

  • feat: - New features
  • fix: - Bug fixes
  • docs: - Documentation changes
  • style: - Code style changes
  • refactor: - Code refactoring
  • test: - Test changes
  • chore: - Build/tooling changes

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For support, please open an issue on GitHub or contact the development team.


Made with ❤️ by the Aignostics team

About

Aignostics TypeScript SDK

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages