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 🙏

© 2024 – Pkg Stats / Ryan Hefner

esy-react-cli

v2.0.9

Published

Transform your React development workflow with this lightning-fast CLI tool that empowers you to launch production-ready apps in seconds. Seamlessly scaffold modern React applications with zero configuration, powered by battle-tested templates and optiona

Downloads

742

Readme

ESy React CLI

Description

esy-react-cli is a minimalist, yet robust command-line interface tool designed to streamline React development and compete with popular options like create-react-app. By automating component creation and project scaffolding, esy-react-cli aims to boost developer productivity and efficiency. Named after the build tool it uses, "ESBuild", the CLI leverages cutting-edge technology to deliver a fast, lightweight, and user-friendly development experience. With optional AI-powered features, esy-react-cli offers intelligent code generation capabilities to further enhance the development process.

AI Integration

esy-react-cli includes optional AI-powered features that are disabled by default and require explicit user opt-in to enhance the development experience. All AI capabilities are implemented with complete transparency - the source code is open for review on GitHub, and the project maintains a strict policy regarding API key management, where keys are never stored within the codebase. For security and privacy, users manage their own API keys locally through environment variables, with no keys ever transmitted to or stored on the project's servers. The CLI maintains full functionality without AI integration, ensuring developers have complete control over their development experience.

Key Features

  • Faster Project Setup: Create a new React project with a single command, esyr project.
  • Streamlined Component Creation: Generate reusable components with esyr component, saving time and promoting consistency.
  • Custom Paths for Scaffolding: Define custom paths for all commands within a project.
  • Intelligent Scaffolding: Leverage AI-powered features to scaffold pages, hooks, and other project elements (opt-in).
  • Transparent AI Integration: The AI capabilities are fully open-source and respect user privacy by enabling local API key management.
  • Minimal Footprint: esy-react-cli is a lightweight tool that avoids bloat, making it a lean alternative to create-react-app.

Usage

Once installed, you can start using esy-react-cli to create new React projects and manage your components. Refer to the Commands section for a list of available commands and their descriptions.

Supported Models: | Id | Model | Vendor | API Access | | ---| --- | --- | --- | | claude-3-sonnet-20240229 | Claude Sonnet (new) | Anthropic | https://www.anthropic.com/api |

NPM Registry Installation

  1. npm i -g esy-react-cli

Local Installation

  1. cd into the project directory
  2. npm i
  3. npm run link

Default Folder Structure

Settings are stored in a .env file in the root of the project or cli installation. On first run of each command, the user will be prompted to set a custom path for future use of that command. The default structure is as follows:

{project name}/
├── public/
├── scripts/
├── src/
│   ├── pages/{page name}/
│   ├── components/{component name}/
│   ├── contexts/
│   ├── hooks/
│   ├── workers/
│   ├── content-scripts/
│   ├── pop-ups/

To clear out settings and any api keys set, run esyr reset.

Commands

| Cmd | Short Cmd | Description | AI Support | | --- | --- | --- | --- | | esyr project | esyr p | Create a new react project | - | | esyr page | N/A | Create a page in a react project | ✓ | | esyr component | esyr c | Create a component in a react project | ✓ | | esyr hook | esyr h | Creates a context + provider for a react project | - | | esyr context | esyr ctx | Creates a context + provider for a react project | - | | esyr service-worker | esyr sw | Create a service worker in a react project | - | | esyr browser-ext | esyr ext | WIP - Initializes a react project as a browser ext (experimental) | - | | esyr content-script | esyr cs | WIP - Creates a content script for a react project that has a browser ext (experimental) | - | | esyr reset | esyr rs | Removes the local env file that has API keys and any user preferences. | - |

Release Notes

Version 2

  • esyr page and esyr component now offer code generation with Claude Sonnet.
  • Optional path setting for all commands.
  • Optional file overwrite for all commands. (existing files)
  • Added a meta-DX feature to allow for ease of install locally.
  • Config reset command added.
  • Added fun messages to commands for a more enjoyable experience.

Version 1

  • Scaffold a new React project with esyr project and create various components.

Contributing

We welcome contributions from the community! If you find any issues or have suggestions for improvements, please feel free to open a GitHub issue or submit a pull request.

If you excel at prompt engineering, please review my System Prompt! I'd love to hear your thoughts on how to improve it. Claude System Prompt

Issues/Bugs

If you encounter any issues or bugs while using esy-react-cli, please report them on the GitHub Issues page. Use the provided issue template to ensure that your bug report contains all the necessary information for us to investigate and address the problem.

License

This project is licensed under the MIT License.