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

generator-mtaproject

v0.1.6

Published

Creates a fully configured and deployable MTA project

Readme

generator-mtaproject

A powerful Yeoman generator for creating fully configured SAP MTA projects with SAP CAP, SAP Fiori, and automated SAP BTP deployment support.

Please note: On Windows, make must be installed. Otherwise, the script will fail during mbt build before deployment.

Features

  • Freely configurable project name
  • Optional cds add components:
    • hana
    • workzone-standard
    • approuter
    • xsuaa
    • mta
  • Optional creation of:
    • example schema.cds
    • example CAP service
  • Create any number of SAP Fiori apps using the @sap/fiori generator
  • Automatic deployment to multiple SAP BTP targets
  • Automatic maintenance of redirect URIs in xs-security.json
  • Automatic generation of a README.md containing:
    • service URLs
    • application URLs
    • target-specific information
  • Configuration files can be saved and reused later

Requirements

The following tools must be installed globally:

  • Node.js
  • Yeoman
  • SAP CDS Development Kit
  • SAP Fiori Generator

Install required tools:

npm install -g yo
npm install -g @sap/cds-dk
npm install -g @sap/generator-fiori

SAP CLI Tools Installation Tutorial

A dedicated video tutorial showing how to install the SAP CLI tools is available here:

https://youtu.be/4gPXgPQLRsg


Installation

Install the generator globally:

npm install -g generator-mtaproject

Usage

Create a new project:

yo mtaproject

Use a previously saved configuration:

yo mtaproject --configfile <saved configfile>

Example:

yo mtaproject --configfile myproject-config.json

What the Generator Can Do

SAP CAP Project Setup

Automatically creates and configures:

  • CAP project structure
  • HANA configuration
  • XSUAA configuration
  • Approuter configuration
  • MTA configuration
  • Work Zone support

Example CDS Content

Optional generation of:

  • db/schema.cds
  • CAP service definitions
  • Example entities and projections

SAP Fiori App Generation

The generator can create multiple SAP Fiori applications during setup.

Internally it uses:

  • @sap/generator-fiori

This allows flexible generation of:

  • SAP Fiori Elements apps
  • SAPUI5 freestyle apps
  • OData V4 applications

Multi-Target Deployment

Supports automatic deployment to multiple SAP BTP targets.

Examples:

  • DEV
  • TEST
  • QA
  • PROD

The generator can automatically:

  • build the MTA
  • deploy the application
  • configure destinations
  • maintain redirect URIs

Automatic Redirect URI Maintenance

The generator automatically updates:

xs-security.json

with the required redirect URIs for all generated applications and SAP BTP targets.


Auto-Generated README

A project-specific README.md can be generated automatically containing:

  • service URLs
  • application URLs
  • target information
  • deployment information

Configuration Files

During generation, settings can optionally be saved into a configuration file.

Benefits:

  • reuse configurations
  • quickly recreate projects
  • modify settings later
  • standardize project templates

Example:

yo mtaproject --configfile customer-a.json

Roadmap

  • Roles and authorization setup

    • 2 example services with 2 roles
    • automatic xs-security.json updates
    • automatic approuter xs-app.json updates
  • Mock users and roles in package.json

  • Add build:cf scripts to all generated apps

  • Optional standard template app (without Yeoman)

  • Re-deployment to all targets after redirect URI updates

  • Hybrid mode support

    • bind to ONE target only
    • IMPORTANT: only ONE target
  • Add draft support to CAP services

  • Cross Navigation configuration in manifest.json

  • OData 4.01 compatibility checks

  • Automatic destination configuration:

    • srv-api
    • (projectName)-srv-api
  • CI/CD integration using GitHub Actions

    • GitHub-hosted runners
    • self-hosted runners

Example Workflow

  1. Start the generator
  2. Select CAP components
  3. Create sample CDS model
  4. Generate SAP Fiori apps
  5. Configure SAP BTP targets
  6. Deploy automatically
  7. Receive generated documentation

Technologies

  • Node.js
  • Yeoman
  • SAP CAP
  • SAP HANA
  • SAP BTP
  • SAP Fiori
  • SAPUI5
  • MTA
  • XSUAA
  • Approuter

License

MIT

History

  • 0.1.1 : Initial release with core features
  • 0.1.2 : Automatic deployment and redirect URI maintenance
  • 0.1.3 : ci/cd Push to npmjs.com
  • 0.1.4 : Bugfixes (logs, deployment) - Add Readme
  • 0.1.5 : Using console.log() instead of this.log() for better output formatting
  • 0.1.6 : Service Name adjustment, roles (xs-security.json and service), mock users in package.json