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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@ramses-superapp/ramses-mini-app-cli

v1.0.8

Published

a cli tool for creating mini-app templates

Readme

Ramses Mini-App CLI Tool

Overview

The Ramses Mini-App CLI tool is a command-line utility designed to scaffold MiniApp projects for the Ramses SuperApp ecosystem. It provides pre-defined templates to help developers quickly set up a MiniApp project with the necessary structure and configuration.

Features

  • Choose from multiple predefined MiniApp templates.
  • Generate a new MiniApp project with a user-specified name.
  • Automatically structures the project directory and files based on the selected template.

Installation

Ensure you have Node.js installed (version 14+ recommended).

Install the CLI tool globally using npm:

npm install -g @ramses-superapp/ramses-mini-app-cli

After installation, you can invoke the CLI using:

create-ramses-mini-app

Usage

Running the CLI

  1. Open your terminal.

  2. Run the following command:

    create-ramses-mini-app
  3. Follow the prompts:

    • Project Template: Choose a template from the available options.
    • Project Name: Enter a name for your MiniApp. The name should only include letters, numbers, underscores (_), or hyphens (-).
  4. The CLI will create a new directory with the specified project name and populate it with the chosen template.


Project Structure

Directory Layout

/
├── templates/               # Contains predefined project templates
│   ├── mini-app-hello-world # Example template
│   └── [other templates]    # Additional templates
├── index.js                 # CLI entry point
├── createDirectoryContents.js # Handles directory and file creation
└── package.json             # Metadata and configuration

File Breakdown

index.js

The main entry point for the CLI. It:

  • Uses inquirer to prompt the user for input.
  • Reads available templates from the templates/ directory.
  • Validates and processes the user’s input.
  • Calls createDirectoryContents to scaffold the new project.

Key highlights:

  • Ensures project names follow a strict naming convention.
  • Dynamically lists all available templates in the templates/ directory.

createDirectoryContents.js

Handles the copying of template files and directories into the newly created project.

Key functionality:

  • Reads the template directory.
  • Recursively copies files and subdirectories to the new project.
  • Replaces .npmignore with .gitignore to support version control systems.

package.json

Defines the CLI package, including:

  • Entry point (index.js).
  • Command (create-ramses-mini-app).
  • Dependency (inquirer for interactive prompts).

Creating a New Template

To add a new template:

  1. Create a new folder inside the templates/ directory.
  2. Add the required files and directories for your template.
  3. The new template will automatically appear in the CLI’s template selection.

Example Workflow

  1. Run the CLI tool:

    create-ramses-mini-app
  2. Select the mini-app-hello-world template.

  3. Enter the project name, e.g., my-awesome-mini-app.

  4. The CLI creates a folder structure like:

    /my-awesome-mini-app/
    ├── index.html
    ├── main.js
    └── ScreenOne.json
  5. Start developing your MiniApp!


Troubleshooting

Permission denied error:

Ensure you have the necessary write permissions for the target directory.

sudo create-ramses-mini-app

Node.js compatibility issues:

Update to the latest LTS version of Node.js.


Future Enhancements

  • Adding custom templates via external repositories.
  • Template versioning and updates.
  • Interactive preview of templates before selection.