Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including drug with all npm packages installed. Try it out:

drug lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("drug/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

drug v0.0.3

Isomorphic web framework for React and Redux

Isomorphic web framework for React and Redux.

Basic principles:

  • Convention over configuration. Everything is working out of the box.
  • Targeted on buildin SPA and isomorphic applications.
  • Components dispatch events.
  • Events are processed in dispatcher.
  • Dispatcher is an independent entity. It's a hashmap, where the key is an event name, the value is a handler.
  • Event handler (action) generates a new app state.
  • State is immutable, one instane of the app has only one state.
  • Sate is passed into the root component, it's parts are passed to child components as props.
  • Each component has an access to the context, components use it to interact with the outer world.
  • Context is able to dipathc message and construct app urls.
  • App context is implemented using React context.
  • All async task are implemented using promises.

Project generator (drug-cli):

  • Is installed globally.
  • Fetches the template of a new project from GitHub (drug init or drug create my-app)
  • It is possible to specify the version of app template you wish to create project from.
  • Templates of the generators are in the project folder, you can customize them.
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free