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

@piranhastudios/parcels2go

v0.0.3

Published

A starter for Medusa plugins.

Readme

@piranhastudios/parcels2go

Parcels2Go fulfillment provider plugin for Medusa v2. Adds Parcels2Go as a fulfillment option in your Medusa store, with OAuth credential management and an Admin UI for connecting your account.

Features

  • Parcels2Go fulfillment provider (rate quoting, shipment creation, cancellation, returns, label retrieval)
  • OAuth credential storage and management
  • Admin UI page for connecting/disconnecting your Parcels2Go account
  • Sandbox and production mode support

Requirements

  • Node.js >= 20
  • Medusa >= 2.12.4
  • A Parcels2Go account with an OAuth application (Client ID + Client Secret)

Installation

In your Medusa backend, run:

npx medusa plugin:add @piranhastudios/parcels2go

Then run migrations to create the OAuth credentials table:

npx medusa db:migrate

Configuration

Add the following to your medusa-config.ts:

import { loadEnv, defineConfig, Modules } from "@medusajs/framework/utils";
import { PARCELS2GO_CREDENTIALS_MODULE } from "@piranhastudios/parcels2go/modules/parcels2go/credentials-index";

module.exports = defineConfig({
  modules: {
    // Register the credentials storage module
    parcels2goCredentials: {
      resolve: "@piranhastudios/parcels2go/modules/parcels2go/credentials-index",
    },

    // Add the fulfillment provider
    [Modules.FULFILLMENT]: {
      resolve: "@medusajs/medusa/fulfillment",
      dependencies: [PARCELS2GO_CREDENTIALS_MODULE],
      options: {
        providers: [
          // ... your other providers
          {
            resolve: "@piranhastudios/parcels2go/modules/parcels2go",
            id: "parcels2go",
            options: {
              // Set to false (or remove) for production
              sandbox: true,
            },
          },
        ],
      },
    },
  },
});

Connecting Your Account

  1. In the Medusa Admin, go to Extensions → Parcels2Go
  2. Enter your Client ID and Client Secret from your Parcels2Go OAuth application
  3. Click Connect to Parcels2Go

Once connected, the status will show as active and the provider will be ready to use in your shipping options.

To create a Parcels2Go OAuth application:

  1. Log in to your Parcels2Go account
  2. Navigate to your API / Developer settings and create a new OAuth client
  3. Copy the Client ID and Client Secret into the Admin UI form integration page

Environment Variables

| Variable | Description | Default | |----------|-------------|---------| | PARCELS2GO_SANDBOX | Set to "true" to use the sandbox API | "false" |

API Routes

The plugin registers the following admin API endpoints:

| Method | Path | Description | |--------|------|-------------| | POST | /admin/parcels2go/connect | Authenticate with Client ID & Secret and store the OAuth token | | GET | /admin/parcels2go/status | Check connection status and token expiry | | POST | /admin/parcels2go/disconnect | Remove stored credentials |

Compatibility

Compatible with Medusa >= 2.12.4.