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

@routeflow/types

v1.0.23

Published

Auto-generated TypeScript types from the RouteFlow API OpenAPI specification

Readme

@routeflow/types

Auto-generated TypeScript types from the RouteFlow API OpenAPI specification.

Installation

npm install @routeflow/types

Usage

Friendly Type Aliases

Import commonly used types from the /exports subpath:

import type { Run, Stop, Driver, CreateRunRequest } from '@routeflow/types/exports';

const run: Run = {
  id: '123',
  name: 'Morning Deliveries',
  status: 'DRAFT',
  // ...
};

Raw OpenAPI Types

For advanced usage (path-based typing, type utilities):

import type { paths, components, operations } from '@routeflow/types';

// Extract request body for a specific endpoint
type CreateRunBody = paths['/api/runs']['post']['requestBody']['content']['application/json'];

// Access any schema directly
type RunSchema = components['schemas']['RunResponseDto'];

Type Generation

Types are auto-generated from the RouteFlow API's OpenAPI specification using openapi-typescript.

Generate from Local API

# Start the API first
cd ../routeflow-api && npm run start:dev

# Generate types
npm run generate

Generate from Production API

npm run generate:prod

Package Structure

routeflow-types/
├── src/
│   ├── index.ts      # Auto-generated types (DO NOT EDIT)
│   └── exports.ts    # Friendly type aliases
├── dist/             # Compiled output
├── package.json
└── README.md

Available Types

Entities

  • User, Organization
  • Run, Stop, Driver, Document
  • TrackingStatus, TrackingLocation

Request Types

  • LoginRequest, RegisterRequest
  • CreateRunRequest, UpdateRunRequest
  • CreateStopRequest, UpdateStopRequest
  • CreateDocumentRequest

Enums

  • RunStatus - DRAFT, ASSIGNED, IN_PROGRESS, COMPLETED, CANCELLED
  • StopStatus - PENDING, EN_ROUTE, ARRIVED, DELIVERED, etc.
  • StopType - PICKUP, DELIVERY, BOTH
  • DocumentType - POD, PHOTO, SIGNATURE, etc.

Pagination

  • PaginatedRuns, PaginatedStops, PaginatedDrivers

Raw Types

  • paths - All API endpoints with their methods
  • components - All schemas, parameters, responses
  • operations - All operation definitions

Development

# Install dependencies
npm install

# Generate types (requires API running on localhost:3001)
npm run generate

# Build
npm run build

# Type check
npm run type-check

License

MIT