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

@pexcode/qds-status-sdk

v1.0.1

Published

Shared Vue composables for package status and events with built-in en/ar locales.

Readme

@pexcode/qds-status-sdk

Shared Vue 3 composables for package status and package events, with built-in English and Arabic translations. Use it in any Vue + Vite (or Vue 3) project to keep status/event logic and labels in one place.

Features

  • Package status – Status codes, labels, colors, and icons (e.g. Waiting, Delivered, In Transit).
  • Package events – Event codes and labels (e.g. Created, OutForDelivery, PickedUpByClient).
  • Built-in locales – Static JSON for en and ar; no vue-i18n required.
  • TypeScript – Full types exported.

Installation

Your project must use Vue 3.

npm install @pexcode/qds-status-sdk

Usage

Pass the current language ('en' or 'ar') into the composables. Labels are resolved from the package’s own locale files.

Package status

import {
  usePackageStatus,
  PackageStatus,
  type SupportedLocale,
} from '@pexcode/qds-status-sdk'

const lang: SupportedLocale = 'ar' // or 'en'

const {
  packageStatusList,
  generalPackageStatusList,
  getPackageStatusLabel,
  getPackageStatusColor,
  getPackageStatusIcon,
  PackageStatus,
} = usePackageStatus(lang)

// List with translated labels (for dropdowns, filters, etc.)
packageStatusList.forEach((item) => {
  console.log(item.label, item.color, item.icon)
})

// Single status label/color/icon by value
const label = getPackageStatusLabel(PackageStatus.Delivered)
const color = getPackageStatusColor(PackageStatus.InTransit)
const icon = getPackageStatusIcon(PackageStatus.OutForDelivery)

Package events

import {
  usePackagesEvent,
  PackageEvent,
  type SupportedLocale,
} from '@pexcode/qds-status-sdk'

const lang: SupportedLocale = 'en'

const {
  packageEventList,
  getPackageEventLabel,
  getPackageEventColor,
  getPackageEventIcon,
  PackageEvent,
} = usePackagesEvent(lang)

const label = getPackageEventLabel(PackageEvent.Created)
const color = getPackageEventColor(PackageEvent.DeliveryFailed)

Use with your app’s locale

If you already have a locale (e.g. from vue-i18n or a ref), pass it in:

import { useI18n } from 'vue-i18n'
import { usePackageStatus, type SupportedLocale } from '@pexcode/qds-status-sdk'

const { locale } = useI18n()
const lang = computed<SupportedLocale>(() =>
  locale.value === 'ar' ? 'ar' : 'en'
)

const { packageStatusList, getPackageStatusLabel } = usePackageStatus(lang.value)

When the locale changes, call the composable again with the new value (or refactor so the composable receives a reactive lang and returns reactive data).

Supported locales

| Code | Language | |------|----------| | en | English | | ar | Arabic |

Type: SupportedLocale = 'en' | 'ar'. Default is 'en' when omitted or invalid.

Exports

Types

  • SupportedLocale'en' | 'ar'
  • PackageStatusType – status code union
  • PackageStatusLabelType – status item shape (value, labelKey, label?, color, icon)
  • PackageEventType – event code union

Status

  • PackageStatus – status code constants (e.g. PackageStatus.Delivered, PackageStatus.InTransit)
  • packageStatusListStatic – raw status list (no translated labels); use for static data
  • generalStatusList – grouped statuses (all, pending, delivering, delivered, etc.)
  • usePackageStatus(language?) – composable returning packageStatusList (with labels), helpers, and constants

Events

  • PackageEvent – event code constants
  • packageEventList – list of event definitions
  • usePackagesEvent(language?) – composable returning helpers and constants

Build (for package maintainers)

npm install
npm run build

Output is in dist/. The dist folder is what gets published.

License

MIT · Pexcode and QuickdeliverySystem