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

@meshmakers/octo-services

v3.5.850

Published

Angular library providing services for interacting with OctoMesh backend APIs.

Readme

@meshmakers/octo-services

Angular library providing services for interacting with OctoMesh backend APIs.

Part of the @meshmakers package ecosystem.

Features

  • HTTP Services - REST API clients for Asset Repository, Identity Service, Bot Service, Communication Controller
  • GraphQL Services - Construction Kit queries for types, attributes, and models
  • Job Management - Background job execution with progress tracking
  • TUS Upload - Resumable file uploads for large database restores
  • Error Handling - Apollo Link for GraphQL error handling with user notifications
  • Notification subscriptions - System.Notification subscription and recipient API, imported from the entry point @meshmakers/octo-services/notifications only (AB#9650; the former names on @meshmakers/octo-services were removed in AB#9654)

Build & Test

# Build
npm run build:octo-services

# Lint
npm run lint:octo-services

# Run tests
npm run test:octo-services

Architecture

octo-services/
├── src/
│   ├── public-api.ts
│   ├── lib/notifications/              # Notification subscription API (entry point ./notifications)
│   └── lib/
│       ├── services/
│       │   ├── health.service.ts            # Backend health checks
│       │   ├── asset-repo.service.ts        # Tenant and model management
│       │   ├── identity-service.ts          # User, role, client management
│       │   ├── bot-service.ts               # Background job execution
│       │   ├── job-management.service.ts    # Job progress tracking with UI
│       │   ├── communication.service.ts     # Adapter and pipeline management
│       │   ├── tus-upload.service.ts        # Resumable file uploads (TUS)
│       │   ├── ck-type-selector.service.ts  # Query CK types (GraphQL)
│       │   ├── ck-type-attribute.service.ts # Query CK type attributes (GraphQL)
│       │   ├── ck-model.service.ts          # Check model availability (GraphQL)
│       │   ├── attribute-selector.service.ts # Query columns (GraphQL)
│       │   ├── configuration.service.ts     # Configuration injection token
│       │   └── tenant-provider.ts           # Tenant ID injection token
│       ├── graphQL/                         # GraphQL queries and generated types
│       ├── shared/                          # DTOs, models, and utilities
│       ├── options/                         # Configuration options
│       └── compat/                          # Backward compatibility exports

Services

HTTP Services

| Service | Description | |---------|-------------| | HealthService | Backend health checks (Asset Repo, Identity, Bot, Communication, Mesh Adapter) | | AssetRepoService | Tenant management, model import/export, user merging | | IdentityService | User, role, and OAuth client management | | BotService | Background job execution (fixup scripts, dump/restore) | | JobManagementService | Job progress tracking with UI dialogs | | FileDownloadService | Authenticated blob downloads (bearer via authorizeInterceptor, real file name) for any BINARY_LINKED value or URL | | FilesClientService | File bytes API of the platform file system (AB#6178/AB#6230): upload by path or folder rtId with progress, replace content, download/preview by path or rtId, zip, folder statistics, capabilities, problem-details codes | | CommunicationService | Adapter deployment, pipeline execution, and debugging | | TusUploadService | Resumable file uploads via TUS protocol |

GraphQL Services

| Service | Description | |---------|-------------| | CkTypeSelectorService | Query CK types with filtering, pagination, and derived types | | CkTypeAttributeService | Query CK type and record attributes | | CkModelService | Check model availability and versions | | AttributeSelectorService | Query available query columns for a CK type | | CkMethodOperationService | Read, list and follow operations of asynchronous CK methods (runtime.operations, AB#8448); toOperationProgressView maps them to mm-operation-progress |

Quick Start

1. Implement Configuration Service

import { Injectable } from '@angular/core';
import { IConfigurationService, AddInConfiguration } from '@meshmakers/octo-services';

@Injectable({ providedIn: 'root' })
export class AppConfigurationService implements IConfigurationService {
  private _config: AddInConfiguration = {} as AddInConfiguration;

  get config(): AddInConfiguration {
    return this._config;
  }

  async loadConfigAsync(): Promise<void> {
    this._config = await fetch('/assets/config.json').then(r => r.json());
  }
}

2. Register Providers

import { CONFIGURATION_SERVICE } from '@meshmakers/octo-services';
import { AppConfigurationService } from './services/app-configuration.service';

export const appConfig: ApplicationConfig = {
  providers: [
    { provide: CONFIGURATION_SERVICE, useClass: AppConfigurationService }
  ]
};

3. Use Services

import { HealthService, CkTypeSelectorService } from '@meshmakers/octo-services';

@Component({ ... })
export class MyComponent {
  private readonly healthService = inject(HealthService);
  private readonly ckTypeSelector = inject(CkTypeSelectorService);

  async checkHealth(): Promise<void> {
    const health = await this.healthService.getAssetRepoServiceHealthAsync();
    console.log('Status:', health?.status);
  }

  loadTypes(): void {
    this.ckTypeSelector.getCkTypes({ searchText: 'Customer' })
      .subscribe(result => console.log('Types:', result.items));
  }
}

Detailed Documentation

See docs/README.md for complete API reference with all method signatures and usage examples.

See CLAUDE.md for development guidelines, CK ID types, GraphQL utilities, and testing patterns.

Dependencies

  • Angular 21 (core, common/http)
  • Apollo Angular (peer dependency, ^14.0.0)
  • @apollo/client (peer dependency, ^4.1.0 — the oldest 4.x line that has every API used here, so hosts on apollo-angular 14.1 / @apollo/client 4.1 keep installing; imported at runtime: InMemoryCache, ApolloLink, the error link)
  • graphql (peer dependency, ^16.0.0 || ^17.0.0 like apollo-angular / @apollo/client; only the DocumentNode type is imported, which the public API exposes)
  • tus-js-client (resumable uploads)
  • @meshmakers/shared-auth (AuthorizeService for TUS uploads)
  • @meshmakers/shared-services (MessageService, PagedResultDto)
  • @meshmakers/shared-ui (ProgressWindowService for job tracking)

Documentation and Testing Standards

  • All developer documentation must be written in English
  • Every code change must include updated documentation — update README.md, CLAUDE.md, docs/README.md, or inline docs when adding, modifying, or removing features
  • Unit tests and integration tests must be executed after every code change
  • Existing tests must be updated when the behavior of tested code changes
  • New tests must be added when new features, components, or services are implemented
  • Never commit code with failing tests