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 🙏

© 2026 – Pkg Stats / Ryan Hefner

xceling-pagetemplate

v0.0.40

Published

This is the PageTemplate module for use with the xceling-* suite.

Readme

The xceling-* suite is a work new to nodejs, and as such should not be relied on. I am actively working on this, however, and hope to see a useful version available before spring of '15.

This code is based on PHP based CMS I developed and is currently in production use on a good number (the only number I can give is more then 30) websites. These websites include the small personal and some large commercial ones.

If you are interested in helping move this nodejs project forward or would like to see the PHP version contact me at [email protected]

DYNASITE-PAGETEMPLATE NOTES

This module contains the 'class' that encapsulates a dynamic page template definition that is stored in the database (see README.txt in ./stores).

The 'class' is required with an object that specifies the storage type to use (see below). The storage module must be located in the stores subdirectory and follow this naming convention: [storage type]-store.js. See stores/README.txt for storage module requirements.

usage: var PageTemplate = require('xceling-pagetemplate')({store: 'mongo'}); var pgt; PageTemplate.getSingleObject({ID:2, Flags:PageTemplate.FLAG_ACTIVE}, function(err, paget) { if(!err) pgt = paget; else util.log(err); }); -- or -- pgt = new PageTemplate({see PageTemplate definition for options});

Public 'class' methods

  • PageTemplate.getSingleObject(args, fn)
  • Method that returns a single PageTemplate instance.
  • args = object of items to search by (see instance properties below) using name:value - such as {ID:5}
  • fn = a callback function(error_message, page_instance) where error_message will be null if the PageTemplate instance was successfully created.

The internal instance properties structure is not referenced directly - instead all outside references are through the getters and setters:

  • page_instance.ID = getter only, this id is set internally and is an integer unique to this entry in the table.
  • page_instance.Title = getter and setter, this is an arbitrary value usually a string, this is the displayed entry title
  • page_instance.URL = getter and setter, this is an arbitrary value usually a string, this is a url friendly representation of the title
  • page_instance.Description = getter and setter, this is an arbitrary value usually a string, this is a description used for internal purposes.
  • page_instance.Flags = getter and setter, an integer reflecting the or'd values of the appropriate Page flags.
  • page_instance.TimeStamp = getter only, this is a Linux timestamp used for internal purposes.

Public instance methods