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

create-roads

v0.1.1

Published

Scaffolding tool for Roads.js applications

Readme

create-roads

npm version Node.js Version

A scaffolding tool for Roads.js applications with TypeScript, React, and modern tooling.

Quick Start

# With npm
npm create roads@latest my-app

# With yarn
yarn create roads my-app

# With pnpm
pnpm create roads my-app

Features

  • 🚀 Two Templates: Choose between SSR (Server-Side Rendering) or SPA (Single Page Application)
  • 📦 Package Manager Detection: Automatically detects and uses your preferred package manager (npm, yarn, pnpm)
  • 🎯 TypeScript First: Fully typed codebase with TypeScript configurations
  • Modern Tooling: Tailwind CSS, ESBuild
  • 🛠 Development Ready: Includes build scripts, watchers, and development servers
  • 📋 Interactive CLI: Guided setup with validation and progress indicators

Templates

Both templates use roads for server side routing and express as a safe wrapper to handle requests, tailwind for css and react for interactivity. The main difference is how that interactivity is managed.

SSR Template (default)

  • Front end "Island" architecture optimized for most apps with standard client side interactivity.
  • Renders everything server side then serves the minimum javascript necessary to turn interactive parts interactive.
  • Leads to faster load times on devices with slow networks and websites with a lot of different pages.

SPA Template

  • Single Page Application with client-side routing for apps with more complex client side interactivity.
  • Server-side renders the first page a user lands on, and then sends the whole app up to the client for speedy transitions
  • Larger initial load time can speed up page transitions.

Usage

Basic Usage

# Create a new SSR project
create-roads my-ssr-app

# Create a new SPA project
create-roads my-spa-app --template spa

Advanced Options

# Specify template and package manager
create-roads my-app --template spa --pm yarn

# Skip dependency installation
create-roads my-app --skip-install

# Show help
create-roads --help

# Show version
create-roads --version

Available Options

| Option | Alias | Description | Values | |--------|-------|-------------|---------| | --template | -t | Choose template type | default, spa | | --package-manager | --pm | Package manager to use | npm, yarn, pnpm | | --skip-install | | Skip dependency installation | | | --help | -h | Show help message | | | --version | -v | Show version number | |

Project Structure

SSR Template Structure

my-app/
├── src/
│   ├── middleware/          # Custom Roads.js middleware
│   ├── projects/
│   │   ├── core/           # Framework utilities
│   │   └── example/        # Example application
│   │       ├── components/ # React components
│   │       └── routes.tsx  # Route definitions
│   └── server.ts           # Server entry point
├── css/                    # Source CSS files
│   └── input.css          # Tailwind input file
├── public/                 # Static assets
├── package.json
├── tsconfig.json          # Server-side TypeScript config
└── tsconfig-frontend.json # Client-side TypeScript config

SPA Template Structure

my-app/
├── src/
│   ├── components/        # Shared components
│   ├── core/             # Core utilities (router, etc.)
│   ├── pages/            # Page components
│   └── main.tsx          # Application entry point
├── css/                  # Source CSS files
│   └── input.css        # Tailwind input file
├── public/               # Static assets and HTML
├── package.json
├── tsconfig.json         # TypeScript configuration
└── tailwind.config.js    # Tailwind CSS config

Development

SSR Template Commands

# Start development server with auto-restart and file watching
npm run watch-all

# Build TypeScript and start server once
npm start

# Build TypeScript only
npm run build-js

# Build CSS only
npm run build-css

# Watch and rebuild CSS on changes
npm run watch-css

SPA Template Commands

# Start development server (builds and serves)
npm run watch-all

# Build for production
npm run build

# Start static file server only
npm start

# Build JavaScript only
npm run build-js

# Build CSS only
npm run build-css

# Watch and rebuild CSS on changes
npm run watch-css

Requirements

  • Node.js: >= 18.0.0
  • Package Manager: npm, yarn, or pnpm

License

MIT © Aaron Hedges

Related