@shopware-ag/meteor-admin-sdk

中文文档
6.16.0发布于 2026/11/02MITTypeScriptESM + CJS构建来源已验证

The Meteor SDK for the Shopware Administration.

原始使用文档
文档目录3 节
  1. Installation
  2. Features
  3. Examples

meteor-admin-sdk

Tests NPM Package

The meteor-admin-sdk is a JavaScript library for all Shopware 6 App and Plugin developer which want an easy way to extend and customize the administration.

See Documentation

Installation

Using NPM:

Install it to your package.json

npm i --save @shopware-ag/meteor-admin-sdk

and import it in your app:

// import everything
import * as sw from '@shopware-ag/meteor-admin-sdk';

// or import only needed functionality
import { notification }  from '@shopware-ag/meteor-admin-sdk';

Using CDN:

Import the source from the CDN

// use the latest version available
<script src="https://unpkg.com/@shopware-ag/meteor-admin-sdk/cdn"></script>

// use a fix version (example here: 1.2.3)
<script src="https://unpkg.com/@shopware-ag/[email protected]/cdn"></script>

and then you can access it with the global variable sw.

sw.notification.dispatch({
  title: 'My first notification',
  message: 'This was really easy to do'
})

Features

  • 🏗 Works with Shopware 6 Apps and Plugins: you can use the SDK for your plugins or apps. API usage is identical.
  • 🎢 Shallow learning curve: you don't need to have extensive knowledge about the internals of the Shopware 6 Administration. Our SDK hides the complicated stuff behind a beautiful API.
  • 🧰 Many extension capabilities: from throwing notifications, accessing context information or extending the current UI. The feature set of the SDK will gradually be extended, providing more possibilities and flexibility for your ideas and solutions.
  • 🪨 A stable API with great backwards compatibility: don't fear Shopware updates anymore. Breaking changes in this SDK are an exception. If you use the SDK, your apps and plugins will stay stable for a longer time, without any need for code maintenance.
  • 🧭 Type safety: the whole SDK is written in TypeScript which provides great autocompletion support and more safety for your apps and plugins.
  • 💙 Developer experience: have a great development experience right from the start. And it will become better and better in the future.
  • 🪶 Lightweight: the whole library is completely tree-shakable and dependency-free. Every functionality can be imported granularly to keep your bundle as small and fast as possible.

Examples

Throw a notification:

sw.notification.dispatch({
  title: 'My first notification',
  message: 'This was really easy to do'
})

Get the system currency:

const currency = await sw.context.getCurrency();

Subscribe for UI locale changes:

let currentLocale = 'en-GB';

sw.context.subscribeLocale(({ locale }) => {
  currentLocale = locale;
})

See more examples in the Documentation.

版本与发布记录

@shopware-ag/meteor-admin-sdk 共发布 81 个版本,首次发布于 2024/01/15;过去 12 个月发布了 19 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
6.16.0latest2026/11/021 天前
6.15.02026/10/011 个月前
6.14.12026/08/282 个月前
6.14.02026/08/202 个月前
6.13.02026/08/122 个月前
6.12.02026/08/062 个月前

其他发布通道:alpha → 5.5.0-iap.8。

关于 @shopware-ag/meteor-admin-sdk 的常见问题

@shopware-ag/meteor-admin-sdk 是什么?

用于商店软件管理的Meteor SDK。

如何安装 @shopware-ag/meteor-admin-sdk?

在项目目录运行 npm install @shopware-ag/meteor-admin-sdk,或使用 pnpm add / yarn add / bun add。

@shopware-ag/meteor-admin-sdk 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@shopware-ag/meteor-admin-sdk 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@shopware-ag/meteor-admin-sdk 可以商用吗?

@shopware-ag/meteor-admin-sdk 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@shopware-ag/meteor-admin-sdk 还在维护吗?

最新版本 6.16.0 发布于 2026/11/02(1 天前);至今共发布 81 个版本,其中过去 12 个月发布了 19 个;首次发布于 2024/01/15。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。