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

compages

v0.0.5

Published

Compages is the no-compromise content management system that isn't a CMS.

Downloads

3

Readme

Compages

(this project is kind of a mess right now-- had to get it out early for internal reasons. Don't use it yet!)

Noun

  • compāges f (genitive compāgis); third declension
  1. the act of binding, fastening
  2. a bond, tie
  3. a joint
  4. a structure
  5. (figuratively) feature

Also, Compages is the no-compromise content management system that isn't a CMS.

The goal of Compages is to bring back the intuitive, file-structure-based web authoring experience of the late 1990s without losing any modern features.

It works like this: set up a site project, put whatever user-facing content you want in it (and using whatever HTML/JS/CSS languages you want).

This intuitive method always had the drawback that you lost the use of modern features-- templating, minification, alternate compile-to-html/css/js languages, database-backed-pages etcetcetc. But not anymore: Compages automatically converts Pug/Mustache/etc to HTML, LESS/Sass to CSS, compiles Javascript, and resizes and crops images.

While there may have been reasons in past years to organize projects by a strict hierarchy- CSS one place, HTML templates in another, static resources in yet another- it's no longer necessary. Our programs are smart enough know what goes where from what kind of file it is- so why not organize your content for your benefit, rather than that of the computer?

The intent is to allow the web author to jump as quickly as possible, with as few mental hurdles as possible, into building whatever they want.

Static sites are all the rage right now. Compages will glady operate as a static-site generator (using the venerable Gulp build system), and for most current uses that's absolutely sufficient. But it doesn't limit you: Compages-based sites can be served directly using Express, generating pages as needed. Or you can use Compages as a fallback, serving resources that don't change from a cache or CDN, only invoking the app for dynamic content.

Installation

  • How to make a basic page

Config

  • How to choose your template/CSS/JS engine
  • How to configure static file types (i.e. ones that get served without modification)
  • How to configure image variants (todo: get rid of MediaFile, spin to separate app)

CLI

  • Write a simple CLI project generator

API

  • Middleware
    • DB-backed pages (like a classic blog)
  • limitations (i.e. entire page list must be known at build time unless you want to make it more complicated)
  • If you want to make it more complicated
    • live-generated fallbacks
    • dynamic "app-style" pages

Gulp

  • Building
  • Staging to CDN