Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

playground-y

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

playground-y

Generate API playgrounds from OpenAPI specifications

latest
Source
npmnpm
Version
0.1.9
Version published
Maintainers
1
Created
Source

OpenAPI Playground Generator

Generate beautiful, interactive API playgrounds from OpenAPI specifications.

Screenshot 2025-11-18 at 3 26 08 PM Screenshot 2025-11-18 at 3 26 27 PM

DEMO

https://coingecko-y.vercel.app/

Quick Start

Prerequisites:

  • Node.js 18+

Generate a playground instantly:

npx playground-y <spec-file> <output-directory>

Example:

npx playground-y examples/coingecko-spec.json my-playground
cd my-playground
pnpm install
pnpm dev

Usage

Installation (Optional)

You can install the CLI globally for repeated use:

npm install -g playground-y

Generate Playground

playground-y <spec-path> <output-path> [options]

Available Aliases:

  • playground-y
  • playgroundy
  • pgy
  • openapi-playground

Options:

  • --force: Force overwrite of existing output directory
  • --api-key KEY: Pre-configure API key (stores in .env, hides auth field from users)
  • --theme THEME: Set default theme (light, dark, or coffee)
  • --workspace-image URL|FILE: Workspace logo/image
  • --no-interactive: Skip interactive prompts

Features

Beautiful UI - Modern, responsive design with light/dark/coffee themes
Fast - TypeScript generator is ~10x faster than alternatives
🎯 Type-safe - Full TypeScript support throughout
🎨 Customizable - Themes, branding, and configuration via x-ui-config
📝 OpenAPI 3.x - Full support with intelligent defaults
🚀 Production ready - Generates Next.js 16 apps

Migration from Python

The generator is now TypeScript-based! The Python generator has been retired in favor of a faster, more maintainable TypeScript implementation.

If you have existing workflows, simply replace:

# Old (Python)
python generate.py spec.json output

# New (TypeScript) 
npx playground-y spec.json output

All features are maintained with improved performance.

Contributing

See CONTRIBUTING.md for guidelines.

License

MIT

Keywords

openapi

FAQs

Package last updated on 19 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts