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

@jield/solodb-typescript-core

v1.0.12

Published

Reusable TypeScript API clients, interfaces, and helper utilities for SoloDB. The package wraps SoloDB REST endpoints with typed axios calls so you can build front-ends quickly without hand-writing requests or response types.

Downloads

820

Readme

SoloDB TypeScript Core

Reusable TypeScript API clients, interfaces, and helper utilities for SoloDB. The package wraps SoloDB REST endpoints with typed axios calls so you can build front-ends quickly without hand-writing requests or response types.

Features

  • Typed axios clients for SoloDB domains (core, chemical, equipment, location, monitor, run, service, template, etc.)
  • Shared response helpers (ApiResponse, ApiFormattedResponse) for consistent pagination handling
  • configureAxiosHeaders helper to set auth token, JSON headers, and the API base URL once
  • Barrel exports for all interfaces so you can import domain models from a single entry point

Getting started

  1. Configure axios defaults with your SoloDB server URL and bearer token.
import { configureAxiosHeaders } from "solodb-typescript-core";

configureAxiosHeaders("<token>", "https://your-solodb-server");
// sets axios defaults: Authorization, JSON headers, and baseURL `${server}/api`
  1. Call any of the exported API helpers. Each function returns typed data so you get autocompletion and type safety in your app.
import { ListRuns, GetRun } from "solodb-typescript-core";

const runs = await ListRuns({ environment: "qa" });
// runs.items -> Run[]

const run = await GetRun({ id: 42 });
// run.id, run.steps, etc. are strongly typed
  1. Use filters and list helpers with query parameters.
import { GetFilter, ListChemicals } from "solodb-typescript-core";

const filter = await GetFilter({ service: "chemical" });
const chemicals = await ListChemicals({ query: "acetone" });

Response shapes

  • ApiResponse<T> mirrors the HAL-ish SoloDB response { _embedded: { items: T[] }, page_count, total_items, page }.
  • ApiFormattedResponse<T> is a convenience shape { items, amountOfPages, currentPage, totalItems, hasMore } returned by most list helpers.

API surface (high level)

Import everything from the root entrypoint. Functions are grouped by domain:

  • core: configureAxiosHeaders, GetMe, GetFilter
  • chemical: ListChemicals, GetChemicalContainer, ListChemicalContainerTypes, ListChemicalContainerPurposes, etc.
  • equipment: GetEquipment, ListEquipment, GetSetup, ListModules, ListIssues, ListReservations, GetStatusMail, and related attachment/status helpers
  • location / room: ListLocationMessages, GetLocation, ListLocations, GetRoom, ListRooms
  • monitor: getMonitor, ListMonitors, ListMonitorRequirements, plus measurement/step parameter/result helpers
  • run: ListRuns, GetRun, GetRunStep, ListRunSteps, ListRunParts, measurement results, step parameter/file/checklist/part helpers, SetRunStepPartAction
  • service / template: ListServices, getServiceEventReport, ListReportResult, listServiceEventReportResult, ListTemplates, getTemplateSteps
  • organisation, process: department/process/unit/category/module/recipe/type/parameter interfaces

Types and interfaces

All API interfaces are exported from the root so you can import models directly, e.g. import { Run, Equipment, Chemical, User } from "solodb-typescript-core";.

Development

yarn lint  # lint TypeScript sources
yarn build # compile to dist (CJS, ESM, and type declarations)