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

markem

v0.0.28

Published

Markem ==================================================

Downloads

87

Readme

Markem

Zero-Configuration Static Site Generator

By Michael Yin

Markem is a zero-configuration, markdown based, simple, Github-friendly, static site generator and publisher. There's only one template needed to generate hell a lot of self-hyperlinked documents and push them to your GithubPage. Or if you feel lazy to setup layout, we got a few skeletons for you.

How to generate a personal page in 10 seconds?

Let's assume you have all your documents prepared as markdown format in one of your Github repo. (and you didn't forget README.md)

And, make sure you have nodejs installed.

Then install markem through npm:

sudo npm install markem -g

Then head to your local Github repo, type

$ markem

Whaooo~, if everything goes fine, you shall see these:

1. twitter-boostrap
Which one do you want to use: 1
'markem.conf' created.
git url: [email protected]:layerssss/markem.git
Cloning branch 'gh-pages' into 'markem.out'
Branch 'gh-pages' does not exists. creating...
Generating content...
[gh-pages 4c03711] compiled by markem
 30 files changed, 75 insertions(+), 20037 deletions(-)
 ...some git log

Pushing back into origin...
Done.

There you go, wait for a few minutes(if its the first time you markem), then you can see your page on http://USERNAME.gitub.com/REPONAME/.

How it works?

Thanks to Github for providing us such a excellant service. Read more about it on Github Help

How does it compare to other site generators?

Markem don't mess up with your repo stucture. All the configuraion is in markem.conf. You can place your docs all arroud in your repo. Yeah, anywhere. Then readers can both read your docs on your page or fork&edit then on github.com.

Ok, markem is just a tool simply can turns markdowns into html, and push them back to github. It's not designated to make a real website/press. It's a tool for really really busy UNIX hackers who's busy hacking on something else, and have no time to write layouts and configuration for a little bunch of docs/slides. So we can in NO WAY call it a CMS, comparing to other tools.

If you need more functionalities, here are some other great tools for you:

  • jekyll site generator from Github, in Ruby
  • docpad flexible site generator make in nodejs, with lots of plugins&skeletons

What if I want to make a USERNAME.github.com page?

Good, markem works fine in this case. You just need to put your docs in a git branch other than 'master' (e.g. 'docs'). And markem will change your target branch from 'gh-pages' to 'master'.

Features

  • use only one layout.jade as your template
  • static files support
  • automatic publishing
  • pre-made skeletons!

Installation

sudo npm install markem -g

Usage

  Usage: markem [options]

  Options:

    -h, --help          output usage information
    -V, --version       output the version number
    -o, --out <dir>     output the generated site to <dir> instead of pushing to GtihubPage
    -v, --verbose       output additional logs
    -s, --source <dir>  use specific doc source instead of cwd
    -j, --json <json>   additional data bound to globals

License

(The MIT License)

Copyright (c) 2012-2012 Michael Yin [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.