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

gloriajs

v2.2.3

Published

Gloria is a NodeJS simple static website generator.

Downloads

8

Readme

Gloria - static site generator

gloria is spanish for glory, also the name of my mom and the name was available in npm

V2 is deprecating lots of old functions, make sure to read the migrating docs. We're also slowly moving into typescript, and while I think it should work very well for your projects, legally I need to remind you that this is a satire of other projects.

It currently supports having a content management system using MD files and tailwind CSS, with some bugs, but the main functionality and philosophy have been accomplished.

This project aims to be a substitute for jekyll, to help you create static websites without depending on ruby.

Because of its ease of use, extensibility and support for md files, is also great for creating websites out of documentatation that lives in a source code.

Community

We're going to have a discord or something some day.

Quickstart

Gloria aims to be the easiest simple static web generator there is, get yourself a good looking website for your portfolio, projects, community or hobbies in less than 5 minutes.

Web

Fork the quick start theme repo and modify _config.yml, add and change pages, and publish to your github pages for free.

Locally

Add gloria as a dependency yarn add gloriajs and follow build and deploy instructions. We're using a yarn.lock.

Custom domains

Github pages offers support for custom domains, follow the instructions on their docs.

JS.org Offers free domains to open source

Installation

For more information check our website.

Npm Registry

To install from the npm registry run yarn add gloriajs or npm install gloriajs.

Github packages

Add the @gloriajs scope to your .npmrc or your project before installing. If added globally it only needs to be done once, but is better to add it on each project so your collaborators don't have to do it too before getting started. I can't remember my npm login, but once I figure it out we can also publish there I guess.

@gloriajs:registry=npm.pkg.github.com

Install by

npm i @gloriajs/gloria

Usage

Now gloria is globally installed in your computer, and you can run commands like gloria --version to retrieve the version. Or if installed per project you can use npx.

Locally

Clone this repo and point to it from another one adding this line to your dependencies:

    "gloria-local": "./node_modules/gloria-local/bin/gloria"

Then you can add scripts to your package.json as:

    "gloria-local": "./node_modules/gloria-local/bin/gloria"

And use gloria from that folder like:

npm run gloria-local -- --version

Commands

  • collect - [output] traverses the include-paths and saves information about the available files
  • copy - [path] [dest] copies the static files from source paths to dest folders
  • extract - [dest] finds metadata and frontmatter information from every collected file
  • prebuild - [dest] creates the output placeholders so they can be processed
  • build - [path] [dest] interpolates the content into the layout
  • css:tailwind - [path] [dest] runs tailwind in the html output
  • scripts - [path] [dest] @TODO processes scripts
  • write - [dest] writes production version to disk
  • cleanup - [dest] @TODO: cleans up temp files after a successful build
  • version - returns the current package version

The commands all should work on their own, and the ones that combine multiple steps do it very nicely by using promises, we pass the project around, and store and read from its properties, to create new commands or amplify existing ones, for plugins and templates, review the data structure.

Development and contributing

Refer to our Contributing page and local installation instructions.

Here's our @TODO in no particular order for inspiration:

  • [x] Write the previous commands to restore basic features
  • [x] Fix build so it interpolates the parsed markdown
  • [x] Recreate documentation website
  • [ ] Move to typescript
  • [ ] Delete unused files
  • [ ] Data sources
  • [x] interpolations
  • [ ] bug: only excluding first condition

Data structure

The current data structure is something like:

const project = {
    prebuilt: {
        html,
        css,
    },
};

Once we're in typescript it will be much easier to see by referencing the interfaces.

CSS

I'm using tailwind coz it seemed easy, should be quite extendable and possible to include other css pre-processors, or change the configuration flag.

Tests

I removed this line ./node_modules/.bin/mocha --reporter spec and need to add it later, but now that we're using TS and new testing tools have come out, perhaps we don't need mocha.

Troubleshooting

Try on your own or open an issue describing your problem.

Go for a walk and wait.

google analytics

I recommend not tracking vanity metrics when you could be going for a walk, but if you must, add it to the layout or wait for a way to append_to_head using metadata from a page.

Slava Ukraini

Gloria and Slava are the same word. A friend named Slava told me.