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

node-sitefile

v0.0.5

Published

Bootstrap Express webserver for misc. resources using Sitefile

Downloads

8

Readme

Node Sitefile

:Version: 0.0.5 :Status: Development :package: Changelog_

.. image:: https://badge.fury.io/js/node-sitefile.png :target: http://badge.fury.io/js/node-sitefile :alt: NPM

.. image:: https://gemnasium.com/dotmpe/node-sitefile.png :target: https://gemnasium.com/dotmpe/node-sitefile :alt: Dependencies

.. image:: https://david-dm.org/dotmpe/node-sitefile.svg?style=flat-square :target: https://david-dm.org/dotmpe/node-sitefile :alt: Dependencies

:project:

.. image:: https://coveralls.io/repos/dotmpe/node-sitefile/badge.png :target: https://coveralls.io/r/dotmpe/node-sitefile :alt: Coverage

.. image:: https://secure.travis-ci.org/dotmpe/node-sitefile.png :target: https://travis-ci.org/dotmpe/node-sitefile :alt: Build

.. .. image:: https://img.shields.io/github/issues/dotmpe/node-sitefile.svg :target: http://githubstats.com/dotmpe/node-sitefile/issues :alt: GitHub issues

:repository:

.. image:: https://badge.fury.io/gh/dotmpe%2Fnode-sitefile.png :target: http://badge.fury.io/gh/dotmpe%2Fnode-sitefile :alt: GIT

.. include:: doc/.defaults.rst

Intro

Sitefile is a local website server for (project) documentation or notebooks. It is targetted at users/authors of plain-text, file-based content. It aims to add hypertext capabilities to documents of the literal kind, and any other interpreted language.

.. TODO get some screenshots here, and point to the rest of the docs.

It at as of 0.0.5-dev supports a couple of markup formats, a diagramming languages, has some initial database support and other Node.JS native languages.

The main documentation is written in reStructuredText format for the Python Docutils publisher. But as many other formats are available as routers can be written for, currently: Markdown, Stylus, SASS/SCSS, Coffee Script, Graphviz and others.

Quickstart

Have a Sitefile.yaml or .json and fire up sitefile from this directory.

E.g. to serve a simple little site::

sitefile: 0.0.5-dev routes: _my_markdown_routes: md:/*.md _my_stylus_routes: styl:/*.styl media: static:media/ ChangeLog: du.rst2html:ChangeLog.rst

That's it! This expands to routes for all *.md and *.styl files, serves anything in media at /media/, and has another static URL path that renders the changelog with Docutils.

The idea is to leave as much as the aspects of the resources to some in-filesystem object or other local service, wether a document, metadatafile or database. That said the Sitefile.yml can also hold options, and currently cat gets pretty crammed. But future plans include making it optional, and parameterize simple Sitefile sessions through command line arguments.

The Sitefile.yaml with node-sitefile and the list of routers in lib/sitefile/routers for now provides the best starting point for support.

Behind the scenes better documentation and testing is being setup. See the dev_ docs.

.. important::

The syntax will change for 0.1 and/or 1.0

Installation

For a stale version::

npm install node-sitefile

For the latest version, get the project (clone, download) and inside folder::

npm install -g

Or just make bin/sitefile available on your path wherever you want.

Testing

::

npm install npm test

Test specifications are in test/mocha/.

Versions

See changelog_.

Documentation

  • Docco docs__

  • Development Docs <doc/dev.rst>_

.. __: /doc/literate

Further reading

  • Sitefile planet <doc/sitefile-planet.rst>_ on alternatives, similar ideas; status quo and prior art.

.. This is a reStructuredText document.

.. Id: node-sitefile/0.0.5 ReadMe.rst