A lightweight, intelligent VS Code extension that adds clickable ▶ Run {scriptName} buttons directly above your package.json scripts.
Perfect for JavaScript and TypeScript developers navigating between frontend and backend / monorepo workspaces. No more typing out long terminal commands or opening separate terminal panels—just click and code.
Features
Broad Ecosystem Support: Built natively for JS and TS projects.
Instant Execution: Adds a CodeLens "▶ Run" button above every script in your package.json.
Smart Package Manager Detection: Automatically scans your project workspace for lockfiles and runs the script using the correct tool.
Detects pnpm
Detects bun
Detects yarn
Defaults to npm
Zero Configuration: It just works out of the box.
How to Use
Open any JS/TS project containing a package.json file (like Next.js, Express, etc.).
Open the package.json file.
Click the ▶ Run {scriptName} button hovering above any script (e.g., dev, build, start).
A VS Code terminal will automatically open and execute the command using your project's preferred package manager.
Roadmap (Coming Soon)
I am actively working on expanding Click Script beyond the JavaScript/TypeScript ecosystem! Upcoming updates will include native support for:
Python (via pyproject.toml, Makefile, or inline if __name__ == "__main__":)
Go (via Taskfile, Makefile, or inline func main())
Rust (Cargo support)
Feedback & Contribute
Found a bug or have a language you want supported?
Open an issue on GitHub or submit a pull request!
Requirements
Visual Studio Code v1.80.0 or higher
A workspace with a valid project containing a package.json file.
Release Notes
1.0.0
Official 1.0 Launch!
Full support for JavaScript and TypeScript environments.
Added CodeLens provider for package.json.
Implemented smart lockfile detection for pnpm, bun, yarn, and npm.