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

d-pac.cms

v0.5.7

Published

> Digitaal platform voor het assessment van competenties

Readme

d-pac Dependency StatusdevDependency Status

Digitaal platform voor het assessment van competenties

NOT PRODUCTION READY

Not by a long shot.

Getting started

Installation

$ npm install

Configuration

d-pac.cms uses .env files to configure your environment. At the very least a single .env file should be present, but it's advisable to use separate files for each environment. The .env files are excluded from git, since they contain sensitive information, but a .EXAMPLE.env file is provided which contains sample settings. You can copy this file and rename it to .env and modify the settings as needed.

Settings

E.g.

CLOUDINARY_URL=cloudinary://aaaaaaaaaaaaaaaaaaaaaaaaaaaa@keystone-demo
MONGO_URI=mongodb://localhost/d-pac-tool
PORT = 3020
LOGGER = [:date] - :remote-addr - :method :url HTTP/:http-version :status :res[content-length] - :response-time ms
DEBUG = dpac:*
CORS_ALLOWED_ORIGINS = http://localhost:9000
CORS_ALLOWED_METHODS = GET,POST,PATCH,OPTIONS,DELETE,PUT
CORS_ALLOWED_HEADERS = X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-Type, Date, Request-UUID, Accept-Encoding
CORS_EXPOSED_HEADERS = Request-UUID
CORS_DISABLED = true

A large number of settings are necessary to allow a proper functioning of the underlying KeystoneJS framework, see Keystone demo documentation for an explanation of CLOUDINARY_URL, MANDRILL_APIKEY, MANDRILL_USERNAME, EMBEDLY_APIKEY, COOKIE_SECRET, MONGO_URI, GA_DOMAIN, GA_PROPERTY, PORT

However, a number of custom settings are optionally set as well:

  • LOGGER: Configures the Morgan logger instance, see documentation for logger formats.
  • DEBUG: Configures the debug instance, see documentation on usage.
  • CORS_DISABLED: Enables/disables CORS for your d-pac.csm instance.
  • CORS_ALLOWED_ORIGINS: Provide a space-delimited list of URL's that are allowed to execute CORS requests.
  • CORS_ALLOWED_METHODS: Restrict which methods are allowed in CORS requests.
  • CORS_ALLOWED_HEADERS: Restrict which headers are allowed in CORS requests.
  • CORS_EXPOSED_HEADERS: Restrict which headers will be exposed in CORS request responses.

Multiple Environments

As mentioned before generally it's a good idea to have a .env file for each environment d-pac.cms will be running on. Set all default options in your plain .env file and provide environment-specific settings in the various other env files.

E.g.

# file: .env
CLOUDINARY_URL=cloudinary://aaaaaaaaaaaaaaaaaaaaaaaaaaaa@keystone-demo
PORT = 3020
# file: .env.staging
MONGO_URI=mongodb://localhost/d-pac-tool-staging
# file: .env.production
MONGO_URI=mongodb://localhost/d-pac-tool

Use the NODE_ENV environment variable to define which settings will be used. This can be done in a number of ways, either:

  1. Export the NODE_ENV variable in your .bashrc (or .profile or...) file, e.g.
# file: .bashrc (or similar)
export NODE_ENV=production
  1. Set it on the CLI when starting d-pac.cms
$ NODE_ENV=production node server.js
  1. Pass it as a flag to grunt, when using grunt to run the various tasks:
$ grunt deploy --env=staging

Deployment

D-pac uses flightplan to separate deployment automation from other automated tasks, see documentation for a detailed explanation.

Configuration

Flight manifests are automatically loaded from a flights directory. A flights/example.js file is provided to show how to set it up. You need a flight manifest file for each deployment target.

E.g. let's say we have a "staging" and "production" server we want to deploy to, then the flights directory needs to contain a file for each: staging.js and production.js.

Usage

$ fly staging

Will do a full deployment to whatever server you configured in staging.js.

Sub-targets:

$ fly qa:staging

Runs some quality assurance tools

Contributing

Testing

TBD

Previewing

$ grunt serve

Publishing the docs

$ grunt publish

D-PAC Copyright (C) 2014 d-pac http://www.d-pac.be