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

@sadu-dev/medusa-plugin-itrk

v0.0.4

Published

Medusa plugin for syncing IT-Recht Kanzlei legal documents and exposing them to storefronts.

Readme

@sadu-dev/medusa-plugin-itrk

npm version npm downloads publish workflow node license

@sadu-dev/medusa-plugin-itrk is a Medusa v2 plugin that keeps your storefront legal pages in sync with updates from IT-Recht Kanzlei (https://www.it-recht-kanzlei.de/), a German legal content provider for ecommerce shops.

In practice, the plugin accepts IT-Recht Kanzlei XML updates, stores the latest document version per sales channel and language, and serves those documents through a store API so your frontend can always show current legal texts (for example terms and conditions, privacy policy, imprint, and withdrawal information).

Maintained by SADU Development e.U. at https://sadu.at.

Compatibility

  • Node.js >=20
  • Medusa packages >=2.12.0 <3

What it includes

  • POST /integrations/itrk for ITRK XML requests
  • GET /store/itrk/:doc_type for storefront document retrieval
  • A dedicated itrk module with persisted legal-document records
  • Medusa plugin option validation via exported Zod schema

Install

pnpm add @sadu-dev/medusa-plugin-itrk

Then register the plugin in your Medusa backend's medusa-config.ts file at the project root (<your-medusa-project>/medusa-config.ts):

import { defineConfig } from "@medusajs/framework/utils"
import type { ItrkPluginOptionsInput } from "@sadu-dev/medusa-plugin-itrk/types"

export default defineConfig({
  plugins: [
    {
      resolve: "@sadu-dev/medusa-plugin-itrk",
      options: {
        token: "your-itrk-token",
        channels: [
          {
            salesChannelId: "sc_...",
            accountId: "account-1",
            accountName: "Main Store",
            languages: ["de", "en"],
            countries: ["DE", "AT"],
            targetUrls: {
              agb: "https://store.example/legal/agb",
              datenschutz: "https://store.example/legal/privacy",
              impressum: "https://store.example/legal/imprint",
              widerruf: "https://store.example/legal/withdrawal",
            },
          },
        ],
      } satisfies ItrkPluginOptionsInput,
    },
  ],
})

meta_shopversion is derived automatically from the installed @medusajs/medusa version.

Choose the token value yourself and enter the same value in both Medusa and IT-Recht Kanzlei. IT-Recht Kanzlei does not issue or generate this token for you.

IT-Recht Kanzlei Setup

When configuring the API URL in IT-Recht Kanzlei, enter only your Medusa backend base URL.

Do not append /integrations/itrk manually.

Exported types

  • @sadu-dev/medusa-plugin-itrk
  • @sadu-dev/medusa-plugin-itrk/types

The package exports itrkPluginOptionsSchema, ItrkPluginOptions, and ItrkPluginOptionsInput.

Development

pnpm build
pnpm lint
pnpm test:unit

Publishing

The package is built with Medusa's plugin build command before publish:

pnpm build
npm publish

The published package contains the built .medusa/server output and package metadata only.

License

MIT