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

sidekick-library-generator

v0.1.0

Published

Sidekick library generator for AEM Edge Delivery Services projects

Readme

Sidekick Library Generator

A CLI tool for generating Sidekick libraries for AEM Edge Delivery Services projects.

Installation

npm install

Prerequisites

Before using the tool, you need to set up your AEM API key:

export AEM_API_KEY=your-api-key

For security reasons, the API key must be provided via environment variable. Never commit your API key to version control or share it in logs or error messages.

Usage

node cli.js generate [--org <organization>] [--project <project>] --site <site> [--force]

Required:

  • --site: Site URL (e.g., https://www.aem.live)

Optional:

  • --org: Organization name (e.g., adobe). If not provided, will be automatically detected from git remote.
  • --project: Project name (e.g., helix-website). If not provided, will be automatically detected from git remote.
  • --force: Force generation even if blocks directory exists. Without this option, the command will fail if blocks have already been generated.

Required environment variable:

  • AEM_API_KEY: Your AEM API key for authentication

Examples:

# Using explicit organization and project names
export AEM_API_KEY=your-api-key
node cli.js generate --org adobe --project helix-website --site https://www.aem.live/

# Using automatic git remote detection (requires git remote to be configured)
export AEM_API_KEY=your-api-key
node cli.js generate --site https://www.aem.live/

# Force overwrite existing blocks
export AEM_API_KEY=your-api-key
node cli.js generate --site https://www.aem.live/ --force

The tool automatically detects the organization and project names from your git remote URL if not provided. This works with both SSH ([email protected]:organization/project.git) and HTTPS (https://github.com/organization/project.git) remote URLs.

Security Best Practices

API Key Management

The tool requires an AEM API key for authentication, which must be provided via the AEM_API_KEY environment variable. This is a security requirement to prevent accidental exposure of sensitive information.

Best practices for API key management:

  • Never commit API keys to version control
  • Use environment variables in production environments
  • Consider using a secrets management service for production deployments
  • Rotate API keys regularly
  • Use the minimum required permissions for the API key
  • Never share API keys in logs, error messages, or documentation

Environment Variables

For production use, it's recommended to set up environment variables in your deployment environment. This helps prevent accidental exposure of sensitive information in shell history or logs.

Development

Project Structure

  • cli.js: Main CLI entry point
  • setup.js: Setup functionality for generating library structure
  • generate_library.js: Library generation implementation
  • block_helpers.js: Helper functions for block processing
  • template/: Directory containing template files

Adding New Features

  1. Add new commands in cli.js
  2. Create corresponding implementation files
  3. Update tests if applicable
  4. Update documentation

License

UNLICENSED