Skip to content

torresgol10/runts

Repository files navigation

RunTS ⚡

RunTS is a powerful, browser-based TypeScript and Node.js playground powered by WebContainers. It allows you to run secure, ephemeral Node.js environments directly in your browser without any server-side execution.

It serves as a lightweight, instant alternative to local setups for testing snippets, prototyping ideas, or exploring NPM packages.

✨ Features

  • In-Browser Node.js: Powered by WebContainers for secure, local execution.
  • TypeScript Support: First-class TypeScript support with IntelliSense and ATA (Automatic Type Acquisition).
  • NPM Package Manager: Install and use any package from the NPM registry instantly.
  • Multi-File Support: Work with multiple files using a tabbed interface.
  • Themes: Beautiful built-in themes including Dracula, Monokai, and the default "RunTS Dark" (featuring TypeScript Blue).
  • Snippets: Save and manage your favorite code snippets for quick access.
  • Environment Variables: Securely manage env vars for your experiments.
  • PWA Ready: Installable as a native-like app on your device.
  • Shareable: Share your code snippets via URL.
  • Offline Support: Works offline thanks to PWA capabilities (booting requires initial connection).

🚀 Getting Started

Prerequisites

  • Node.js (Latest LTS recommended)
  • A modern browser that supports WebContainers (Chrome-based browsers are currently best supported).

🛠️ Tech Stack

  • Core: React 19, Vite, TypeScript
  • Runtime: WebContainers API
  • Editor: Monaco Editor
  • Styling: Tailwind CSS 4
  • State: Zustand
  • Icons: Lucide React
  • Testing: Vitest, Playwright

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published