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

html-raw-template

v0.3.0

Published

A HTML Raw Template Framework

Downloads

7

Readme

HTML Raw Template

A lightweight bundler for HTML template projects that packages your raw HTML, CSS, and JavaScript files into a clean distribution folder, perfect for delivering source code templates to clients.

Pre-requirements

  • NodeJS v18

Quick Start

# install packages
npm install

# start development
npm run dev

# build source code
npm run build

# start local server
npm run start

Project Structure

project/
├── dist/
├── node_modules/
├── scripts/
├── src/
│   ├── assets/
│   │   ├── js/
│   │   ├── modules/
│   │   └── scss/
│   ├── components/
│   ├── data/
│   ├── layouts/
│   ├── pages/
│   ├── partials/
│   └── web/
├── .gitignore
├── config.js
└── package-lock.json
└── package.json
└── README.md

Root Files

  • config.js: Central configuration file for build settings, paths, and project options
  • .gitignore: Specifies which files Git should ignore

Main Directories

dist/

  • The distribution directory containing the final built files
  • Generated automatically during build process
  • Contains optimized and processed files ready for deployment
  • Should not be edited directly as contents are overwritten during builds

node_modules/

  • Contains all npm package dependencies
  • Managed by npm, should not be edited manually
  • Not committed to version control

scripts/

  • Contains build automation scripts
  • Custom Node.js scripts for development and production builds
  • Task runners and build process utilities

src/

Source files directory containing all project source code

src/assets/
  • js/: JavaScript files
    • Application-specific JavaScript code
    • Entry points for JavaScript bundles
  • modules/: External JavasScript/CSS Libraries
    • Standalone JavaScript/CSS functionality
    • Use folders to organize libraries and name them systematically
  • scss/: SCSS stylesheets
    • Global styles
    • Component-specific styles
    • Variables and mixins
src/components/
  • Reusable HTML components
  • Each component should be self-contained
  • Example components:
    • Navigation bars
    • Buttons
    • Cards
    • Forms
src/data/
  • JSON data files
  • Content that can be injected into templates
  • Configuration files for different environments
  • The filename becomes the data object key - for example, menu.json becomes data.menu
  • Example files:
    • menu.json
    • settings.yaml
    • content.json
src/layouts/
  • Base HTML layouts
  • Template files that define the basic structure
  • Example layouts:
    • default.ejs
    • blog.ejs
    • auth.ejs
src/pages/
  • Individual page templates
  • Each file represents a unique page
  • Extends layouts with page-specific content
  • Support nested folder structure in URLs
  • Example pages:
    • index.ejs
    • about.ejs
    • contact.ejs
src/partials/
  • Reusable HTML snippets
  • Smaller sections of code used across multiple pages
  • Common elements like headers and footers
  • Example partials:
    • header.ejs
    • footer.ejs
    • navigation.ejs
src/web/
  • Public web static assets
  • Files that should be copied directly to output
  • Browser and SEO-related files
  • Common files:
    • favicon.ico
    • robots.txt
    • sitemap.xml
    • manifest.json

Configuration

// Project root: config.js

export default {
  site: {
    // Default Meta Title
    title: "Title | Template",

    // Default Meta Description
    description: "Description | Template",

    // Default Site Base Path, ex: href="{basePath}/web/css/app.min.css"
    basePath: "",
  },

  // Bundle Configuration
  bundle: {
    js: {
      // Concat order for /src/assets/modules folder
      order: ["jquery-*/**/*.js", "hammer-*/**/*.js", "bootstrap-*/**/*.js"],
    },
  },
};