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

redoak

v0.1.9

Published

Rapid HTML5 development tool

Readme

Overview

Thanks for checking out redoak! The aim of this project is to allow rapid prototyping of HTML without getting in the way of your usual toolchain. There are no manifestos or revolutions, just faster development.

This tool currently provides:

  • A server that serves up HTML that refreshes itself when it or any of its dependencies change.
  • A method of creating widgets, which are basically HTML snippets and coupling it with some script logic The widgets can be rendered server side or client side.
  • A mixin system that allows widgets to take on multiple features.
  • A straightforward way to split up components and test them with mock data.

Anti-goals:

  • This project will never be a comprehensive toolkit. You are encouraged to use jQuery, backbone, underscore.js, whatever with redoak! It should be possible to use this with non-node projects: django, tornado, rails, and so forth.
  • No database model middleware.
  • Live updating of client code on your production server. The websocket connection is for development purposes only.

This project is brang new and is still evolving rapidly. Please give it a try and file lots of bugs! Patches are appreciated as well.

Diving in

The best way to get the gist of it is to try it. After you install redoak, just run:

bin/redoak public/todo.html

Navigate to http://localhost:3000/, fire up your favorite editor and start playing. :) You can add files to public/, and they should be visible to the webserver.

Understanding the code

Check out lib/dependencies.js. It's responsible for parsing the HTML, picking out any CSS links or script tags, and watching them all for any changes. The other important file is lib/render.js. It processes the tree, and generates widget code and the final HTML.

Testing

There's one test. :) Try it:

node lib/reftest/reftest.js

It diffs the output of a sample oak file with the expected HTML. If nothing is outputted, congratulations, it passed!

Using it in your web app

Unless you want to contribute, I wouldn't recommend using it in anything serious. Little thought has been given to browser compatibility or how to incorporate it into a larger scope project. Optimization should be pretty straightforward, but that work hasn't been done yet.

If that didn't scare you, here's how I'm doing it so far: I just require redoak and use the express middleware with some static handlers for dependencies. For session-specific data or DB model data, I've been including a separate JS file so that everything else can stay static and cached. If you write a tag whose src starts with a / like:

<script src='/session.js'></script>

Then redoak will ignore it. There should probably be a way to render widgets from your DB on the server, eventually.