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

devstore

v1.0.0

Published

πŸš€ Smart CLI to run, build and ship apps with Docker (local β†’ remote β†’ build)

Readme

πŸš€ DevStore

A smart CLI to run, build, and ship apps with Docker β€” effortlessly.

DevStore simplifies Docker workflows by automatically handling image resolution, builds, and container execution with a clean developer experience.


✨ Features

  • ⚑ Smart Execution Pipeline

    • Local β†’ Remote β†’ Build (automatic fallback)
  • πŸ”₯ Force Rebuild

    • Rebuild images anytime using --build
  • πŸ“¦ Optional Push

    • Push images to Docker Hub with --push
  • 🧠 Auto Port Detection

    • Avoid conflicts with automatic port switching
  • 🧹 Container Cleanup

    • Removes old containers before running
  • πŸ› οΈ Project Initialization

    • Generate Docker setup using init docker
  • πŸ’‘ Developer-Friendly CLI

    • Clean logs and predictable behavior

πŸ“¦ Installation

Global install

npm install -g devstore

πŸš€ Quick Start (Recommended for Beginners)

# 1. Initialize Docker setup
devstore init docker

# 2. Run your app
devstore run my-app

πŸ‘‰ DevStore will:

  • Create a Dockerfile
  • Build your app
  • Run it automatically

πŸš€ Commands

πŸ”Ή Initialize project (Docker setup)

devstore init docker

Creates a production-ready Dockerfile based on your project.


πŸ”Ή Run an application

devstore run <image>

Example:

devstore run my-app

πŸ”Ή Run with custom port

devstore run my-app -p 4000:3000

πŸ”Ή Force rebuild image

devstore run my-app --build

πŸ”Ή Build and push to Docker Hub

devstore run username/my-app --build --push

⚠️ Make sure you're logged in:

docker login

🧠 Execution Flow

DevStore follows a smart execution strategy:

1. Check if image exists locally
2. If not β†’ check remote registry (Docker Hub)
3. If not β†’ build image from Dockerfile
4. Optionally push image
5. Run container

βš™οΈ Options

| Option | Description | | ------------ | --------------------------------- | | -p, --port | Port mapping (default: 3000:3000) | | --build | Force rebuild image | | --push | Push image to Docker Hub |


πŸ§ͺ Example Output

ℹ️  Using local image: my-app
ℹ️  Cleaning old container: my-app
ℹ️  Starting container...
⚠️  Port 3000 busy β†’ switching to 3001
βœ… Running at http://localhost:3001 πŸš€

❗ Requirements

  • Docker installed and running
  • Node.js 18 or higher

πŸ“ Project Structure

src/
 β”œβ”€β”€ commands/        # CLI commands (init, run)
 β”œβ”€β”€ service/docker/  # Docker logic (build, run, push)
 β”œβ”€β”€ utils/           # logger, helpers

⚠️ Common Issues & Fixes

❌ Port already in use

Bind for 0.0.0.0:3000 failed

βœ… DevStore auto-fixes this by switching ports.


❌ No Dockerfile found

failed to read dockerfile

βœ… Run:

devstore init docker

❌ Push failed

docker push error

βœ… Fix:

docker login

πŸ“Œ Notes

  • A Dockerfile is required for building images
  • DevStore can generate one using init docker
  • Image push requires proper naming (username/image)

πŸ› οΈ Roadmap

  • [ ] devstore logs (view container logs)
  • [ ] devstore stop (stop running container)
  • [ ] Auto-detect frameworks (Next.js, Express)
  • [ ] Deployment support

🀝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

πŸ‘¨β€πŸ’» Author

Monu Panwar


πŸ“„ License

MIT License


⭐ Support

If you find this project useful, consider giving it a ⭐ on GitHub!