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

wafflery

v1.1.0

Published

Wafflery bakes one page apps

Downloads

6

Readme

wafflery

Wafflery bakes one-page apps and provides you with a small utility to bootstrap and load your application in the browser or Cordova/Phonegap application.

Installation

npm install -g wafflery

Getting Started

  1. Make a new directory
  2. Run: wafflery init
  3. Serve some waffles: wafflery serve
  4. Go to localhost:1337/loader and see the magic. There is nothing. I know.
  5. Use the -p or -h arguments to set a port or host respectively

Serving waffles as a daemon

Run wafflery serve --daemon to run Wafflery as a daemon. You can use -p and -h to set the port or host respectively.

Run wafflery serve --stop to stop serving waffles.

Wafflery 101

Wafflery contains a server which builds your application and a small loader that takes care of downloading bootstrapping your application. You don't have to to use the loader, but it helps with getting started. The entry point for browserify is app/waffle-loader.

Using the Client Loader

  1. The browser makes a request to localhost:1337/loader
  2. Wafflery replies with all the files that can be found in the loader/ directory.
  3. This loader contains a script to fetch javascript, html and css from the server.
  4. The server builds these files using Browserify from the app/ directory.

URL endpoints

Wafflery exposes the following endpoints

/loader

This builds and loads the files in the "loader" directory.

/js

This returns all the JS in your app directory

/js/version

Returns the current version of your JS files. This is a crc32 hash of all the JS files under the app/ directory.

/css

This returns all the CSS that can be found in your app directory. Waffle supports LESS by default.

/css/version

Returns the current version of your LESS files. This is a crc32 hash of all the LESS files under the app/ directory.

/html

This returns all the HTML from your component and views directory

/html/version

This returns all the HTML from your component and views directory.

CLI Commands

Initializing the project

  1. wafflery init

Adding Views

  1. wafflery add view <viewname>

Adding Components

  1. wafflery add component <component name>

Serving files using wafflery

  1. wafflery serve, optional -p and -h arguments to select a port and hostname/ip address to bind to.

Other

waffle.json

These contain settings that are loaded into the browser and are used for the loader to know where Wafflery is serving pages.