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

@pega/sdk

v0.0.3

Published

Scaffold a Pega SDK application project

Readme

@pega/sdk

Create a production-ready Pega SDK application in seconds. @pega/sdk scaffolds a fully configured project — build tooling, authentication, runtime bootstrap, and optional starter components — so you can connect to your Pega server and start building right away.

Requirements

  • Node.js 20 or later
  • npm 9 or later
  • Access to a Pega Infinity server (for running the generated app)

Quick Start

npx @pega/sdk init

Answer the prompts, then:

cd my-pega-app
npm install
npm run dev

Your app starts on a local dev server. Open the printed URL in your browser.

What the CLI Asks You

Running init walks you through an interactive setup:

  1. Project name — the directory to create for your new app.
  2. AI-assisted development — optionally add agent instructions and skill files tailored to your AI coding tool:
    • GitHub Copilot (.github/copilot-instructions.md + skills)
    • Cursor (.cursor/rules/ + skills)
    • Claude Code (AGENTS.md + skills)
  3. Framework — the UI framework for your app: | Framework | Stack | | --------- | ----- | | React | Vite + React 18 + @pega/sdk-react | | Angular | Angular 18 + @pega/sdk-angular | | Web Components | Vite + Lit + @pega/sdk-wc | | React Native | Expo + @pega/sdk-react (experimental) |
  4. Starter components — optionally scaffold working component implementations you can customize, grouped by category:
    • Fields — TextInput, Dropdown, Checkbox, Date, and more
    • Templates — OneColumn, TwoColumn, DefaultForm, CaseView, and more
    • Widgets — ToDo, CaseHistory, Attachment, and more
    • Infrastructure — ActionButtons, NavBar, Stages, and more
    • Design System Extensions — AlertBanner, FieldGroup, Pulse, and more

What You Get

The generated project is ready to run and includes:

  • Pre-configured build tooling for your chosen framework
  • Pega SDK integration with authentication and runtime bootstrap
  • A sdk-config.json file for your server connection
  • Optional starter UI components you can extend
  • Optional AI coding-assistant configuration

Configure Your Pega Server

Before running the app, edit sdk-config.json in the project root with your environment details:

{
  "serverConfig": {
    "infinityRestServerUrl": "https://<your-server>/prweb",
    "appAlias": "<your-app-alias>",
    "appPortal": "<your-portal>",
    "appMashupCaseType": "<your-case-type>",
  },
  "authConfig": {
    "authService": "pega",
    "mashupClientId": "<your-oauth-client-id>",
    "mashupUserIdentifier": "<user>",
    "portalClientId": "<your-oauth-client-id>",
  },
}
  • infinityRestServerUrl — your Pega Infinity REST endpoint
  • appAlias — the application alias to load
  • mashupClientId / portalClientId — OAuth 2.0 client IDs registered in Pega

Available Scripts

Inside the generated project:

| Command | Description | | ----------------- | ------------------------------------------------------ | | npm run dev | Start the local development server | | npm run build | Create a production build | | npm run preview | Preview the production build locally (Vite frameworks) |

Troubleshooting

  • npm install fails resolving @pega/* packages — the SDK packages require access to the Pega npm registry. Configure an .npmrc with the registry URL and auth token provided by your Pega administrator.
  • Blank page / auth errors on startup — double-check the values in sdk-config.json, especially infinityRestServerUrl and the OAuth client IDs.

License

Apache-2.0