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

playground-azure

v1.2.0

Published

OAuth2 Azure Playground - Interactive web application for testing Microsoft Graph APIs

Readme

Azure OAuth2 Playground

🚀 Interactive web application for testing Microsoft Graph APIs with OAuth2 authentication.

Quick Start

  1. Run the playground:
npx playground-azure
  1. Set up ngrok tunnel:
ngrok http 3000 --url=your-custom-domain.ngrok.io
  1. Open the ngrok https URL in your browser and start testing Microsoft Graph APIs!

Features

Auto-Save Configuration - Changes save automatically as you work
🔐 OAuth2 Flow - Secure Microsoft Graph authentication
💬 Teams Chat APIs - Send messages, read chats
📅 Calendar APIs - Manage events and schedules
🔄 Token Management - Auto-refresh, revoke, persistent storage
📋 JSON Viewer - Copy API responses with one click
Instant Setup - No installation required with npx

Usage

1. Start the Playground

# Default port 3000
npx playground-azure

# Custom port
npx playground-azure --port=8080

# Show help
npx playground-azure --help

2. Set Up ngrok Tunnel (Required)

Set up ngrok for OAuth2 callback handling:

  1. Install ngrok: https://ngrok.com/download
  2. Start your playground: npx playground-azure
  3. In a new terminal, expose port 3000: ngrok http 3000 --url=your-custom-domain.ngrok.io
  4. Copy the https URL (e.g., https://abc123.ngrok.io)
  5. Update your Azure AD redirect URI to: https://abc123.ngrok.io/api/auth/callback

3. Configure Azure AD

  1. Open your ngrok https URL in your browser
  2. Go to Configuration tab
  3. Enter your Azure AD app credentials:
    • Client ID - From your Azure app registration
    • Tenant ID - Your organization's directory ID
    • Client Secret - Generated secret value
  4. Configuration saves automatically ✅

4. Select API Scopes

  • Click quick-add buttons for common scopes
  • Add custom Microsoft Graph scopes
  • All changes auto-save instantly

5. Generate Access Token

  1. Click "Generate Access Token"
  2. Sign in with your Microsoft account
  3. Token saves automatically for reuse

6. Test APIs

  • Try pre-built Microsoft Graph endpoints
  • View formatted JSON responses
  • Copy specific values with built-in buttons
  • Test Teams, Calendar, and Profile APIs

Available APIs

👤 User Profile

  • Get user information
  • Read profile properties

💬 Microsoft Teams Chat

  • List your chats
  • Send chat messages
  • Read chat history

📅 Calendar

  • Get upcoming events
  • Create new meetings
  • Schedule with attendees

Azure AD Setup

Need an Azure AD app? Here's the quick setup:

  1. Azure Portal → Azure Active Directory → App registrations → New
  2. Authentication → Add redirect URI: https://your-ngrok-url.ngrok.io/api/auth/callback
  3. API Permissions → Microsoft Graph → Add permissions you need
  4. Certificates & secrets → New client secret → Copy the value

Common permissions to add:

  • User.Read - Basic profile
  • Calendars.Read - View calendar
  • Chat.Read - Read Teams chats

Command Options

# Run on default port 3000
npx playground-azure

# Run on custom port
npx playground-azure --port=8080

# Show help and features
npx playground-azure --help

Why Use This?

🔥 Instant Testing - No setup, just run and test Microsoft Graph APIs
🛡️ Secure - All data stays local, nothing sent to third parties
💾 Persistent - Tokens and config survive restarts
🎯 Focused - Built specifically for Microsoft Graph API testing
📱 Teams Ready - Perfect for Teams app development

Requirements

  • Node.js 18+ (automatically handled by npx)
  • Azure AD application registration
  • Microsoft Graph API permissions

Ready to test Microsoft Graph APIs? Just run:

npx playground-azure