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

cannon-blog

v0.0.13

Published

A ReactJS Blogging engine

Downloads

42

Readme

Cannon

A server and client side ReactJS powered blogging engine.

Please note Cannon is not ready yet! By all means try and use it but you'll definitely run into lots of problems. I'm keeping a rough plan of work in the Trello board.

How

Cannon is run as a series of ExpressJS middlewares that you run on a server locally whilst building and developing your site. Once you're ready to deploy, Cannon provides you with a tool to generate a directory of static files containing your application. These can then be pushed live (GitHub Pages, Amazon S3, for example) to any host that can store static files. No server is needed in production, and your site will work in clients with and without JavaScript enabled.

The idea from Cannon and a lot of the approach is taken from How we built the new gocardless.com.

Getting Started

Cannon is currently very unstable and should not be considered ready for use. As it gets to that stages more documentation will be written.

Your first step is to create a new empty folder for your project and run:

npm init
npm install --save cannon-blog

This will create a new project and install cannon-blog. Cannon provides a script for initialising a new project:

cannon-init

The init script will install other dependencies required (React, Express and others) and then create a small site for you containing an index page and one blog post.

You can then fire up the development server:

./node_modules/.bin/cannon-dev

And in another tab, the webpack server which will generate and serve the clientside bundle.

./node_modules/.bin/cannon-webpack

And visit http://localhost:8123 to see your new blog in all its glory.

Note that the very first time you run cannon-dev, you will see an error. Currently you have to hit the site first for the bundle to be correctly generated. Then you can restart the server and everything should work. This is on the list of TODOs!

Adding pages and posts

Coming Soon

Available Middlewares

Coming Soon