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

@mobione/mobionejs

v1.0.3

Published

JavaScript / TypeScript models for integrating with MobiOne transportation and temperature systems

Readme

Documentation

Main Sections

mobionejs

JavaScript / TypeScript models and helpers for integrating with the public MobiOne transportation and temperature APIs. This package powers both server-side tooling and React applications that need typed access to the same underlying data structures.

Table of Contents

Motivation

MobiOne exposes a REST API for capturing vehicle plans, temperature traces, orders, visits, and more. Historically, implementations duplicated DTOs and validation logic across back-end and front-end repos. mobionejs centralises those models so every consumer uses the same types, schemas, factories, and utilities—reducing drift and keeping API contracts consistent.

Key goals:

  • Deliver first-class TypeScript support (declarations ship alongside CJS/ESM builds).
  • Provide runtime validation via Zod schemas that mirrors the public API contracts.
  • Offer helpers for composing requests/responses when talking to the MobiOne API directly.

Install

npm install mobionejs
# or
yarn add mobionejs
# or
pnpm add mobionejs

The package targets Node.js 18+ and modern bundlers. Both ESM (dist/*.mjs) and CommonJS (dist/*.cjs) builds are published with identical exports.

Usage

import { VehiclePlanFactory } from 'mobionejs/vehicle/factories';
import type { PlanUpdateRequest } from 'mobionejs/plan';

const payload: PlanUpdateRequest = VehiclePlanFactory.build({
  organisationId: 'org_123',
  vehicleId: 'veh_456',
  date: '2025-01-14',
});

// Send the payload straight to the public API:
await fetch(`${API_BASE_URL}/plan`, {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify(payload),
});

Domain modules

Every domain (load, order, visit, vehicle, etc.) is available as a standalone subpath export so you only pull in what you need. Examples:

  • mobionejs/order/schema – Zod schemas and validators for order payloads.
  • mobionejs/load/factories – Factory helpers for composing load DTOs.
  • mobionejs/temp/utils – Utilities for temperature probe readings.

Because we publish subpath exports under ./<domain>/*, bundlers can tree-shake unused code paths and you can opt into specific models without importing the entire package.

Type safety

Each domain exposes .schema.ts files built with Zod. They act as runtime guards and also infer TypeScript types. For instance:

import { CustomerSchema } from 'mobionejs/customer/schema';

const parsed = CustomerSchema.parse(input);
// parsed is fully typed and safe to forward to API clients

Whenever the public API introduces new fields or deprecates existing ones, the corresponding schema and generated types will be updated here first.

API coverage

The SDK focuses on data structures. You are expected to call the REST endpoints yourself (using fetch, Axios, etc.). The package ships:

  • Request & response DTOs for REST endpoints.
  • Enumerations and constants used in API payloads.
  • Conversion utilities (e.g. helpers that map API responses into UI-friendly shapes).
  • Transitional CMoT* modules for backwards compatibility—new code should target the namespace exports shown above.

If a public API resource is missing, open an issue or PR so we can add the schema and helpers.

Project layout

  • src/<domain>/ – Domain-specific models, factories, schemas, utilities.
  • src/internal/ – Implementation details not exported publicly.
  • dist/ – Generated artifacts (CJS/ESM bundles + .d.ts files via tsup).
  • scripts/ – Local tooling (export guards, changelog checks, release helpers).

Scripts

Commonly used npm scripts:

  • npm run build – Clean + compile with tsup (generates CJS/ESM + types).
  • npm run test:dev – Jest in watch mode (reused from the private SDK).
  • npm run verify – Full quality gate (lint, tests, build, export checks, size-limit).
  • npm run size – Inspect bundle size; pairs with npm run analyze for visualisation.
  • npm run minify – Produces a minified reference bundle for quick spot checks.

See docs/development.md for the complete workflow and release commands.

Contributing

We welcome fixes and feature additions! Please:

  1. Read docs/development.md for guidance on local development.
  2. Adhere to Conventional Commits with ClickUp IDs (type(scope): message CU-xxxxx).
  3. Run npm run verify:strict before submitting a PR—CI enforces the same checks.

License

ISC © MobiDevel AB