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 πŸ™

Β© 2025 – Pkg Stats / Ryan Hefner

create-zen

v1.7.0

Published

✨ Create a new web development project with modern setup powered by Vite πŸš€

Readme

Typing SVG

A premium Vite starter kit for rapid web development, designed to streamline your development process. It comes pre-configured with essential tools like TypeScript, Vite, SCSS, and modern UI components.

✨ Features

  • πŸš€ Vite: Next-generation frontend tooling for a blazing fast development experience
  • πŸ›‘οΈ TypeScript: Strong typing for more robust and maintainable code
  • 🎨 SCSS: CSS with superpowers, enabling variables, nesting, and mixins
  • πŸ”§ ESLint & Prettier: Code quality and formatting tools
  • ⚑ PostCSS: Advanced CSS processing with plugins
  • πŸ“ Handlebars: Templating engine for clean HTML organization
  • πŸŒ€ Lenis: Buttery smooth scrolling experience
  • 🎭 Ready-to-use Components: Tabs, Modals, Accordions, Theme Switcher
  • πŸ“± Responsive Design: Mobile-first approach with modern breakpoints
  • πŸŒ™ Dark/Light Theme: Built-in theme switching with persistence
  • πŸ“¦ Modern Build: Optimized for production with tree-shaking

πŸš€ Getting Started

Prerequisites

Installation

You can create a new project using npm create:

npm create zen@latest

Why @latest? This ensures you always get the most recent version of the ZEN starter kit. Without it, npm might use a cached or outdated version.

The tool will interactively prompt you to:

  1. Enter your project name (with a default fallback)
  2. Choose between two versions:
    • Standard Version: Full-featured with all components
    • Lite Version: Lightweight for static sites

This makes it easy to get started without remembering command line arguments and gives you flexibility to choose the right version for your needs.

πŸ› οΈ Available Scripts

  • npm run dev - Starts the development server
  • npm run host - Starts the development server, accessible on your local network
  • npm run build - Builds the project for production
  • npm run preview - Serves the production build locally for preview
  • npm run lint - Lints the TypeScript files in the project
  • npm run lint:fix - Lints and automatically fixes problems in TypeScript files

πŸ“ Project Structure

zen-starter/
β”œβ”€β”€ components/                    # Reusable HTML partials
β”‚   β”œβ”€β”€ accordion.html            # Accordion component template
β”‚   β”œβ”€β”€ footer.html               # Footer component template
β”‚   β”œβ”€β”€ header.html               # Header component template
β”‚   β”œβ”€β”€ modal.html                # Modal component template
β”‚   └── tabs.html                 # Tabs component template
β”œβ”€β”€ pages/                        # Project pages
β”‚   β”œβ”€β”€ 404.html                  # 404 error page
β”‚   └── index.html                # Main application page
β”œβ”€β”€ public/                       # Static assets
β”‚   β”œβ”€β”€ fonts/                    # Font files
β”‚   └── images/                   # Image assets
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ scripts/                  # TypeScript source code
β”‚   β”‚   β”œβ”€β”€ components/           # UI component classes
β”‚   β”‚   β”‚   β”œβ”€β”€ Accordion.ts      # Accordion component logic
β”‚   β”‚   β”‚   β”œβ”€β”€ BackTopButton.ts  # Back to top button
β”‚   β”‚   β”‚   β”œβ”€β”€ Header.ts         # Header component logic
β”‚   β”‚   β”‚   β”œβ”€β”€ Tabs.ts           # Tabs component logic
β”‚   β”‚   β”‚   β”œβ”€β”€ Theme.ts          # Theme switcher
β”‚   β”‚   β”‚   └── index.ts          # Component exports
β”‚   β”‚   β”œβ”€β”€ services/             # Service layer
β”‚   β”‚   β”‚   β”œβ”€β”€ api.ts            # API utilities
β”‚   β”‚   β”‚   β”œβ”€β”€ scroll.ts         # Smooth scroll service
β”‚   β”‚   β”‚   β”œβ”€β”€ storage.ts        # Local storage wrapper
β”‚   β”‚   β”‚   └── index.ts          # Service exports
β”‚   β”‚   β”œβ”€β”€ types/                # TypeScript type definitions
β”‚   β”‚   β”‚   └── global.d.ts       # Global type definitions
β”‚   β”‚   β”œβ”€β”€ utils/                # Utility functions
β”‚   β”‚   β”‚   └── modal.ts          # Modal utilities
β”‚   β”‚   └── main.ts               # Main entry point
β”‚   └── styles/                   # SCSS stylesheets
β”‚       β”œβ”€β”€ core/                 # Core styles
β”‚       β”‚   β”œβ”€β”€ components/       # Component styles
β”‚       β”‚   β”‚   β”œβ”€β”€ back-top-button.scss
β”‚       β”‚   β”‚   β”œβ”€β”€ footer.scss
β”‚       β”‚   β”‚   β”œβ”€β”€ header.scss
β”‚       β”‚   β”‚   β”œβ”€β”€ modal.scss
β”‚       β”‚   β”‚   └── index.scss
β”‚       β”‚   β”œβ”€β”€ helpers/          # SCSS helpers
β”‚       β”‚   β”‚   β”œβ”€β”€ functions.scss
β”‚       β”‚   β”‚   β”œβ”€β”€ media.scss
β”‚       β”‚   β”‚   β”œβ”€β”€ mixins.scss
β”‚       β”‚   β”‚   └── index.scss
β”‚       β”‚   β”œβ”€β”€ fonts.scss        # Font definitions
β”‚       β”‚   β”œβ”€β”€ globals.scss      # Global styles
β”‚       β”‚   β”œβ”€β”€ reset.scss        # CSS reset
β”‚       β”‚   β”œβ”€β”€ typography.scss   # Typography styles
β”‚       β”‚   β”œβ”€β”€ utils.scss        # Utility classes
β”‚       β”‚   β”œβ”€β”€ variables.scss    # SCSS variables
β”‚       β”‚   └── index.scss        # Core styles index
β”‚       └── main.scss             # Main stylesheet
β”œβ”€β”€ .eslintrc.js                  # ESLint configuration
β”œβ”€β”€ .prettierrc                   # Prettier configuration
β”œβ”€β”€ index.html                    # Landing page
β”œβ”€β”€ package.json                  # Project dependencies
β”œβ”€β”€ postcss.config.js             # PostCSS configuration
β”œβ”€β”€ tsconfig.json                 # TypeScript configuration
└── vite.config.js                # Vite configuration

🎯 Key Components

UI Components

  • Accordion: Collapsible content sections with smooth animations
  • Tabs: Tabbed interface with keyboard navigation
  • Modal: Lightweight modal system with backdrop
  • Header: Responsive navigation with mobile menu
  • BackTopButton: Smooth scroll-to-top functionality
  • ThemeToggle: Dark/light theme switcher

Services

  • Scroll: Lenis-powered smooth scrolling
  • Storage: Type-safe local storage wrapper
  • API: HTTP request utilities

Utilities

  • Modal Management: Easy modal initialization and control
  • Type Definitions: Comprehensive TypeScript types

🎨 Styling

The project uses a well-organized SCSS structure:

  • Variables: Centralized design tokens
  • Mixins: Reusable style patterns
  • Functions: SCSS utility functions
  • Media Queries: Responsive breakpoint helpers
  • Component Styles: Modular component styling
  • Utility Classes: Helper classes for common patterns

πŸ”§ Configuration

Vite Configuration

  • Multi-page application support
  • SCSS preprocessing with modern compiler API
  • PostCSS integration with autoprefixer
  • Handlebars templating support
  • Optimized build output

TypeScript Configuration

  • Strict type checking
  • Modern ES modules
  • Path mapping for clean imports

Code Quality

  • ESLint with TypeScript support
  • Prettier for consistent formatting
  • Pre-commit hooks ready