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

@tobulevicius/reactor

v1.1.3

Published

🧰 A React project creation tool easing the symbiosis between React and Tailwind. Takes the brunt of the work in installing and configuring Tailwind and Craco on top of React 🔥

Downloads

7

Readme

Reactor - Simplify the React and Tailwind symbiosis.

 ____                 _
|  _ \ ___  __ _  ___| |_ ___  _ __
| |_) / _ \/ _` |/ __| __/ _ \| '__|
|  _ <  __/ (_| | (__| || (_) | |
|_| \_\___|\__,_|\___|\__\___/|_|

react tailwind

npm npm version npm version

Reactor is a tool that sits on top of create-react-app and configures Tailwind and Craco to create ready-to-use TypeScript or JavaScript, Tailwind projects.

Reactor will create a new React project utilising create-react-app (This wheel doesn't need to be reinvented). It will then install and configure both Tailwind and Craco by creating config files and updating the scripts within your package.json file so that you're ready to get started straight away.

This tool was born out of frustration on my end when creating new personal projects, the extra steps to trudge through to get Tailwinds ready was a bother on my end. So I figured, in typical developer fashion, I would spend hours creating this tool and learning how hard it is to create your own damn spinner in a terminal that isn't extremely janky (Gave up, found a great package that deals with it for me.) whilst having a breakdown over terminal text colour, to save myself and hopefully you about 2-5 minutes of extra setup.

Usage

npx @tobulevicius/reactor [options]

I recommend using this via npx for the cleanliness. It will do it's thing and then disappear before you know it. On the other hand, you can of course download the package and run it via:

reactor [options]

Options

--typescript or -t
Creates a TypeScript enabled React project. If this option is not supplied the project will default to JavaScript.
--tailwind or -tw
Enables Tailwind installation and configuration. If this option is not supplied the project will not have Tailwind configured.

Examples

npx @tobulevicius/reactor -t -tw
Will create a React project that has TypeScript enabled and Tailwind installed and configured.

npx @tobulevicius/reactor -tw
Will create a JavaScript React project that has Tailwind installed and configured.


Thanks!

Thank you for any users of Reactor and for any support. This is an incredibly simple project, however I hope it makes life a little easier and gets your ideas flowing into code a little quicker!

@tobulevicius

Generic badge

Generic badge

Good-To-Knows

React installation instant failure.

If the React installation step, or any of them for the matter, fails almost instantly with an exit code of 1. The highest likelyhood is that the folder that you ran the command in is not named to the NPM standard. Spaces and special characters in the name of the folder will cause issues in NPM.