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

@shopware-ag/create-meteor-extension

v0.0.1

Published

create-meteor-extension CLI

Readme

@shopware-ag/create-meteor-extension

A CLI tool for scaffolding new Meteor Admin SDK extensions for Shopware 6. This tool generates a complete project setup with Vue 3, TypeScript, and Vite, allowing you to quickly start building custom extensions for the Shopware Administration.

What is Meteor?

Meteor is Shopware's Admin SDK that enables developers to extend the Shopware Administration with custom UI components and functionality without modifying the core. Extensions built with Meteor run in isolated iframes and communicate with the Shopware Administration through a secure messaging system.

Features

  • Modern Stack: Vue 3, TypeScript, and Vite for fast development and optimal performance
  • Ready-to-use Template: Includes example locations (dashboard card and product tab) to get started
  • Pre-configured Development Environment: ESLint, Prettier, and TypeScript configuration out of the box
  • Hot Module Replacement: Vite development server with instant updates
  • Internationalization: Built-in i18n support with example translations (German and English)
  • Component Library: Integrates @shopware-ag/meteor-component-library for consistent UI

Usage

You can run the CLI directly using npx (recommended) or install it globally:

# Using npx (recommended - always uses latest version)
npx @shopware-ag/create-meteor-extension

# Or install globally
npm install -g @shopware-ag/create-meteor-extension
create-meteor-extension

The CLI will interactively prompt you for:

  • Extension name: Must contain only lowercase letters, numbers, and hyphens (e.g., my-awesome-extension)

Note: The CLI will always create a folder named meteor-app (as required by Shopware 6.7+ plugin structure), but the extension name you provide will be used in package.json, README, and other configuration files.

Non-Interactive Mode

For CI/CD environments and automation, you can use the CLI in non-interactive mode:

npx @shopware-ag/create-meteor-extension --name my-extension --output-dir meteor-app

Options:

  • --name: Extension name (required in non-interactive mode). Must contain only lowercase letters, numbers, and hyphens.
  • --output-dir: Output directory name (optional, defaults to meteor-app).

Example:

# Create extension with custom name
npx @shopware-ag/create-meteor-extension --name my-awesome-extension

# Create extension with custom output directory
npx @shopware-ag/create-meteor-extension --name my-extension --output-dir custom-folder

If the --name flag is not provided, the CLI will run in interactive mode and prompt for input.

What Gets Created

The CLI generates a complete project structure in a folder named meteor-app:

meteor-app/
├── src/
│   ├── locations/           # Vue components for different admin locations
│   │   ├── exampleDashboard.vue
│   │   └── exampleProductTab.vue
│   ├── assets/              # Styles and static assets
│   ├── app.ts               # Application entry point
│   ├── bootstrap.ts         # SDK initialization
│   ├── locations.ts         # Location configuration
│   └── main.ts              # Main entry point
├── snippet/                 # Translation files
│   ├── de-DE.json
│   └── en-GB.json
├── public/                  # Static assets
├── package.json             # Dependencies and scripts
├── vite.config.ts           # Vite configuration
├── tsconfig.json            # TypeScript configuration
└── eslint.config.ts         # ESLint configuration

For Shopware 6.7+ plugins, this should be placed in custom/plugins/yourPlugin/src/Resources/app/meteor-app.

Key Dependencies

  • @shopware-ag/meteor-admin-sdk: Core SDK for Shopware Admin extensions
  • @shopware-ag/meteor-component-library: UI component library matching Shopware's design system
  • Vue 3: Progressive JavaScript framework
  • Vue Router: Client-side routing
  • Vite: Next-generation frontend tooling

Getting Started

After creating your extension:

  1. Navigate to the generated directory:
cd meteor-app
  1. Install dependencies:
npm install
# or
pnpm install
  1. Install and activate the Extension in Shopware.

Development Workflow

  1. Type Checking: Run npm run type-check to validate TypeScript types
  2. Linting: Run npm run lint to check and fix code style issues

Available Scripts

  • npm run type-check - Run TypeScript compiler check
  • npm run lint - Lint and fix code with ESLint
  • npm run format - Format code with Prettier

Extension Locations

The generated template includes two example locations:

  1. Dashboard Card (example-dashboard-before-content): Appears on the Shopware dashboard
  2. Product Tab (example-product-tab): Adds a custom tab to product detail pages

You can easily add more locations by:

  1. Creating a new Vue component in src/locations/
  2. Registering it in src/locations.ts
  3. Configuring the location in src/bootstrap.ts

Requirements

  • Node.js 18+
  • npm or pnpm
  • Shopware 6 instance for testing your extension

CLI Development

To work on the CLI itself:

# Run locally without building
./packages/create-meteor-extension/bin/create-meteor-extension [arguments]

# Build the CLI
npm run build

# Run tests
npm test

The CLI automatically detects development mode and runs TypeScript files directly using ts-node, so no build step is required during development.

Technical Details

This CLI is built with Gluegun, a toolkit for building command-line apps. It uses EJS templates to generate customized project files based on your input.

License

MIT - see LICENSE