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

@agamya/bigship-sdk

v2.2.0

Published

TypeScript SDK for Bigship.in External Outbound API (shipping, orders, rates, tracking, etc.)

Readme

@agamya/bigship-sdk

CI npm version License: MIT

TypeScript SDK for the Bigship.in External Outbound API — shipping, orders, rates, tracking, and more.

Disclaimer: Community project based on publicly available Bigship API documentation. Not officially affiliated with Bigship.in. Legal contact: [email protected].

Features

  • Type-Safe — Zod schemas for runtime validation, full TypeScript inference
  • Auto-Authentication — Login once, token cached automatically
  • Retry with Backoff — Exponential backoff with full jitter, configurable
  • Event HooksonBeforeRequest, onResponse, onError, onRetry
  • Pluggable Logger — Bring your own Winston, pino, or console logger
  • Full API Coverage — All 16 Bigship API endpoints
  • Convenience MethodsmanifestAndGetAWB, getShipmentDetails, createAndFinalizeShipment
  • Workflow Builder — Fluent create → withCourier → manifest → finalize API
  • Sub-path Exports — Tree-shakeable imports for ./errors, ./core, ./utils

Installation

npm install @agamya/bigship-sdk

Documentation

| Document | Description | |----------|-------------| | Complete Guide | Architecture, step-by-step B2C/B2B walkthroughs, error handling, configuration, utilities, migration | | Examples | 10 runnable code examples covering every SDK feature | | CHANGELOG | Breaking changes, new features, migration checklist |

Quick Links

API Reference

| Method | Description | Endpoint | |--------|-------------|----------| | getWalletBalance() | Get wallet balance | GET /api/Wallet/balance/get | | getCourierList(category) | List available couriers | GET /api/courier/get/all | | getCourierTransporterList(id) | List transporters for a courier | GET /api/courier/get/transport/list | | getPaymentCategory(category) | List payment modes | GET /api/payment/category | | addWarehouse(payload) | Add a warehouse | POST /api/warehouse/add | | getWarehouseList(page, size) | List warehouses (paginated) | GET /api/warehouse/get/list | | addSingleOrder(payload) | Create B2C order | POST /api/order/add/single | | addHeavyOrder(payload) | Create B2B order | POST /api/order/add/heavy | | manifestSingle(payload) | Manifest B2C order | POST /api/order/manifest/single | | manifestHeavy(payload) | Manifest B2B order | POST /api/order/manifest/heavy | | getShippingRates(orderId) | Get shipping rates for order | GET /api/order/shipping/rates | | cancelShipments(awbs[]) | Cancel shipments | PUT /api/order/cancel | | calculateRate(payload) | Calculate shipping rates | POST /api/calculator | | getShipmentData(id, orderId) | Get AWB/Label/Manifest | POST /api/shipment/data | | trackShipment(id, type) | Track by AWB or LRN | GET /api/tracking | | manifestAndGetAWB(orderId, courierId) | Manifest + fetch AWB | Helper | | getShipmentDetails(orderId) | Get AWB + label + manifest | Helper | | createAndFinalizeShipment(config) | Create → Manifest → Get all | Helper |

Examples

| File | Description | |------|-------------| | setup-and-config.ts | Client initialization, all config options, AbortController, custom logger | | b2c-complete-flow.ts | Full B2C lifecycle (10 steps with inline comments) | | b2b-complete-flow.ts | B2B heavy order: ewaybill, multi-box, LRN tracking | | rate-calculation.ts | Prepaid, COD, B2B rate comparison | | warehouse-management.ts | Warehouse CRUD with pagination | | error-handling.ts | All 5 error classes, type guards, helper methods | | hooks-and-monitoring.ts | Event hooks, metrics collection, custom LoggerAdapter | | nextjs-integration.ts | Next.js App Router (Server Actions + Route Handlers) | | browser-file-upload.ts | Browser file upload with base64 conversion | | all-workflows.ts | Side-by-side: manual vs helpers vs workflow builder |

License

MIT

Support

GitHub Issues