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

reactstream-web

v1.0.4

Published

Web interface for ReactStream analysis and component development

Readme

ReactStream Web Interface

A web-based interface for ReactStream that provides an interactive environment for React component development, testing, and analysis. Similar to playcode.io, it features a 4-panel layout with code editor, component preview, analysis results, and console output.

ReactStream Web Interface

Features

  • Interactive Code Editor - Monaco-based editor with syntax highlighting and code completion
  • Live Component Preview - Real-time rendering of your React components
  • Component Analysis - Analyze your components for best practices and potential issues
  • Console Output - View logs, errors, and warnings in real-time

Getting Started

Prerequisites

Quick Start with Docker

  1. Clone the repository:
git clone [email protected]:reactstream/server.git
git clone https://github.com/reactstream/web.git
cd server
  1. Start the application using Docker Compose:
docker-compose up -d
  1. Access the application in your browser:

Environment

sudo apt update && sudo apt upgrade -y
sudo apt install -y git nodejs npm nginx certbot python3-certbot-nginx

Local Development Setup

Install dependencies:

npm install

Build the frontend:

npm run build

Start the server:

npm start
  1. Access the application in your browser:

Project Structure

reactstream-web/
├── docker-compose.yml       # Docker Compose configuration
├── Dockerfile               # Docker image definition
├── package.json             # Node.js dependencies and scripts
├── webpack.config.js        # Webpack configuration
├── server.js                # Express server handling API and socket.io
├── src/                     # Frontend source code
│   ├── index.html           # Main HTML template
│   ├── index.js             # React entry point
│   ├── App.js               # Main React component
│   ├── styles.css           # Global styles
│   └── components/          # React components
│       ├── Editor.js        # Code editor component
│       ├── Preview.js       # Component preview panel
│       ├── Analysis.js      # Analysis results panel
│       └── Console.js       # Console output panel
├── temp/                    # Temporary storage for component files
└── dist/                    # Built frontend files (generated)

Usage

  1. Write or paste your React component code in the editor panel
  2. Click "Analyze" to check your component for issues and best practices
  3. Click "Run" to see your component rendered in the preview panel
  4. View console output for logs, errors, and warnings

Domain Configuration

To use the custom domain (www.reactstream.com):

  1. Add an entry to your hosts file:
# On Linux/Mac
sudo nano /etc/hosts

# On Windows
# Edit C:\Windows\System32\drivers\etc\hosts as administrator
  1. Add the following line:
127.0.0.1 www.reactstream.com
  1. Save the file and restart your browser

Development

Building the Frontend

npm install dotenv babel-loader webpack webpack-cli html-webpack-plugin css-loader style-loader

# Development build with watch mode
npm run dev

# Production build
npm run build

Running Tests

npm test

Linting

npm run lint

Troubleshooting

Common Issues

  1. Port conflicts

    • If port 80 or 3000 is already in use, modify the port mappings in docker-compose.yml
  2. Docker permission issues

    • Run Docker commands with sudo on Linux or ensure your user is in the docker group
  3. Node modules issues

    • Try deleting node_modules folder and package-lock.json, then run npm install again
  4. Preview not loading

    • Check if the development server is running on port 3000
    • Check browser console for CORS errors
  5. Analysis not working

    • Ensure ReactStream CLI is properly installed in the Docker container
    • Check server logs for execution errors

Quick Commands Reference

# Start with Docker
docker-compose up -d

# Stop Docker containers
docker-compose down

# View logs
docker-compose logs -f

# Install dependencies
npm install

# Build frontend
npm run build

# Start server
npm start

# Development mode
npm run dev

Contributing

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

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • ReactStream - The CLI tool that powers the analysis and component serving
  • Monaco Editor - The code editor that powers VS Code
  • Socket.IO - For real-time communication between client and server
  • Express - Web server framework
  • React - UI library