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

darko

v0.3.6

Published

A Node.js port of popular site generator Jekyll.

Downloads

148

Readme

Darko

A Node.js port of popular site generator Jekyll.

Status

Works:

  • darko build
  • darko serve
  • darko serve --watch

Will be working shortly, stay tuned:

  • darko new

Most of Jekyll special filters are implemented in Darko now. See this list. But I've left out textilize.

Try

$ npm install darko -g
$ z thx.github.io   # cd into a jekyll site.
$ darko serve

Now point your browser to http://localhost:4000.

If you're working on project repos and there's no CNAME used, there must be a baseurl set in your project's _config.yml file. In that case, say your project name is my-project, you'll need to point your browser to http://localhost:4000/my-project.

Why?

Jekyll is an awesome tool. It is the de facto static site generator for it being the generator of github pages. I've been using it for long. Most of my web sites are developed with Jekyll, such as:

But when I tried introducing this wonderful tool to my colleagues I was a bit out of luck. Mac users were bothered by Ruby, Python, and Pygments installation. Windows users encountered more issues, mostly encoding related.

Hence I create Darko to address those issues. It should:

  • have less requirements, which makes it easier to install.
  • works just like Jekyll, which makes the use of it transparent to servers that support Jekyll currently.

Windows 下安装、使用 Jekyll 诸多不便,尤其是不了解 Ruby 的同学。早前的版本还要人肉修补 编码问题,在随 github-pages gem 中指定的 jekyll 版本中已经修复,但目前仍有如下不便:

  • 需要安装 Ruby
  • 需要安装 Python
  • 需要安装 pygments

可以看到,有不少学习成本,为了写点文档竟然要装这么多东西,有点不好接受。

所以有了 Darko ,它有如下目标:

  • 减少依赖,Node.js 就够了。
  • 兼容 Jekyll ,对服务端透明,使用 Darko 开发的网站代码,推送到 gh-pages 效果不变。

About the Name

The name of this project, Darko, is a tribute to one of my favorite movies called Donnie Darko.

Darko 来自电影《Donnie Darko》, 我扮文艺青年的时候,喜欢说这是我最喜欢的电影,因为它够小众,剧情初看复杂实际简单,我的 英文名字就取自这部电影的主演 Jake Gyllenhaal。

我本想取名 Jekyll.js ,但是要做到 100% 与 Jekyll 保持一致太难了,而且对追求 100% 的人 来说,他们应该不介意直接用 Jekyll 本身。我搞定 80% 就好。

Tribute

nico

The markdown and syntax highlighting part of code are shamelessly copied from @lepture's static site generator, nico.

@lepture's one of my Node.js hero.

liquid-node

Without @sirlantis' liquid-node, darko won't be possible.

component, commander.js, and others

util.log, util.error, and util.fatal are all improvised from component the package manager by TJ.