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

fbreactor

v0.0.5

Published

Generator for React

Readme

FB Reactor for React JS

A simple, super fast scaffolding tool for Facebook's React JS framework. Within seconds you can create a full React project structure with stubbed out component files.

Install

Good old npm:

npm install -g fbreactor

CLI Usage:

Create new reactorfile

All configuration is driven off of reactorfile.js. This is kept in your project root directory and specifies settings like the source root for React framework.

fbreactor create reactorfile

This creates a standard reactorfile with your React source directory at /src.

fbreactor create reactorfile --basedir /app

Creates a reactorfile with /app as your Reactor root.

Create React framework structure

Use create framework to build the initial structure for React components.

fbreactor create framework

If you are using a standard reactorfile, this will result in the following directories being created:

  • /src
    • /components
    • /stores
    • /actions
    • /libs
    • /mixins

If you have specified something different for you React root then src will be replaced with that.

Creating new components

This is comething you'll be doing for the life of the project. Whenever you need a completely new component in React, it requires creating many files and a ton of copy/paste/remove. Not anymore!

fbreactor create component --name MyThing

This will create a new Component, Store, Action, and Lib for your component called MyThing.

  • /src
    • /components
      • my_thing.jsx
    • /stores
      • my_thing.js
    • /actions
      • my_thing.js
    • /libs
      • my_thing.js
    • /mixins

Generated component my_thing.jsx

/** @jsx React.DOM */
var React = require('react'),
    Fluxxor = require('fluxxor'),
    FluxChildMixin = Fluxxor.FluxMixin(React),
    StoreWatchMixin = Fluxxor.StoreWatchMixin;

var MyThingComponent = React.createClass({

    mixins: [FluxChildMixin, StoreWatchMixin("MyThingStore")],

    getInitialState: function() {
        return {};
    },

    getStateFromFlux: function() {
        return {
            MyThingStore: flux.store("MyThingStore").getState()
        };
    },

    render: function() {
        return (
            <div>Nothing here yet...</div>
        );
    }
});

module.exports = MyThingComponent;