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-shadow-app

v0.3.0

Published

Create ShadowJS apps with Vite, TypeScript/JavaScript

Downloads

13

Readme

create-shadow-app

npm version Build Status License: MIT TypeScript Node.js Version

Create ShadowJS apps with one command! This CLI tool helps you bootstrap new ShadowJS projects with Vite and TypeScript or JavaScript.

Fast • 🎯 Type-Safe • 📦 Zero Config • 🎨 Modern

✨ Features

  • 🚀 Instant Setup: Create projects in seconds with Vite
  • 🎯 TypeScript Ready: Full TypeScript support with strict configuration
  • 📱 Multiple Templates: Choose from 2 starter templates
  • Zero Config: Works out of the box with sensible defaults
  • 🛣️ Router Support: Built-in client-side routing with ShadowJS Router
  • 🎨 TailwindCSS Ready: Optional TailwindCSS v4 integration with pre-configured styles
  • 📚 Git Integration: Automatic git repository initialization
  • 🧪 Well Tested: Comprehensive test suite with Vitest
  • 🔒 Security First: Regular security audits and dependency updates

Templates

Counter

A simple counter app with interactive buttons - perfect for learning ShadowJS basics.

Todo App

An interactive task management application with full CRUD operations.

📋 Requirements

  • Node.js: 20.0.0 or higher
  • npm: 8.0.0 or higher (usually comes with Node.js)

🚀 Installation & Usage

Quick Start

# Using npx (recommended)
npx create-shadow-app my-app

# Using npm
npm create shadow-app my-app

# Using yarn
yarn create shadow-app my-app

# Using pnpm
pnpm create shadow-app my-app

Global Installation

# Install globally
npm install -g create-shadow-app

# Use the CLI
create-shadow-app my-app

Interactive Setup

The CLI will guide you through the setup process:

  1. Project Name: Enter the name of your project
  2. Language: Choose between TypeScript or JavaScript
  3. Template: Select one of the available templates
  4. Router: Choose whether to add ShadowJS Router for client-side routing
  5. TailwindCSS: Choose whether to use TailwindCSS v4 for styling
  6. Git Repository: Choose whether to initialize a git repository

Project Structure

After setup, your project will have this structure:

my-app/
├── index.html
├── package.json
├── vite.config.js (or vite.config.ts if TypeScript selected)
├── tsconfig.json (if TypeScript selected)
└── src/
    ├── main.jsx (or main.tsx if TypeScript selected)
    ├── App.jsx (or App.tsx if TypeScript selected)
    ├── style.css (or tailwind.css if TailwindCSS selected)
    └── vite-env.d.ts (if TypeScript selected)

Note: If you choose TailwindCSS, the style.css file will contain TailwindCSS imports and pre-configured styles instead of traditional CSS.

Getting Started

After creating your project:

cd my-app
npm install
npm run dev

Your app will be running at http://localhost:3000

Features

Git Integration

When you choose to initialize a git repository, the CLI will:

  • Run git init in your project directory
  • Add all project files to git
  • Create an initial commit with the message "Initial commit"

Router Integration

When you choose to add ShadowJS Router, the CLI will:

  • Add @shadow-js/router as a dependency
  • Set up a simple router configuration in main.jsx (or main.tsx if TypeScript selected)
  • Create a route for the root path (/) that renders your App component
  • Update the App component to work with the router

This provides a foundation for building multi-page applications with client-side routing.

TailwindCSS Integration

When you choose to use TailwindCSS, the CLI will:

  • Add tailwindcss and @tailwindcss/vite as dependencies
  • Configure Vite to use the TailwindCSS plugin
  • Set up a tailwind.css file with Tailwind imports and pre-configured styles
  • Include utility classes and component styles for your chosen template

The TailwindCSS setup includes:

  • Base styles: Reset and typography using Tailwind's base layer
  • Component styles: Pre-styled components for cards, buttons, and layouts
  • Utility classes: Common patterns used in the template
  • Responsive design: Mobile-first responsive utilities

You can start using TailwindCSS classes immediately in your JSX/TSX components:

function MyComponent() {
  return (
    <div className="bg-white rounded-lg shadow-lg p-6">
      <h2 className="text-2xl font-semibold text-gray-800 mb-4">Hello World</h2>
      <button className="bg-blue-500 hover:bg-blue-600 text-white font-bold py-2 px-4 rounded">
        Click me
      </button>
    </div>
  );
}

🛠️ Development

Local Development

# Clone the repository
git clone https://github.com/shadowjs-dev/shadow.git
cd shadow/packages/create-shadow-app

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

# Start development mode
npm run dev

Available Scripts

  • npm run build - Build the project
  • npm run dev - Build in watch mode
  • npm run test - Run test suite
  • npm run test:coverage - Run tests with coverage
  • npm run lint - Run ESLint
  • npm run lint:fix - Fix ESLint issues
  • npm run format - Format code with Prettier
  • npm run typecheck - Run TypeScript type checking

🤝 Contributing

We welcome contributions! Please see our Contributing Guide for details on:

  • 🐛 Reporting bugs
  • ✨ Requesting features
  • 🛠️ Setting up a development environment
  • 📝 Code style and standards
  • 🧪 Testing guidelines
  • 📄 Documentation standards

Contributors

📚 Documentation

🆘 Support

📄 License

MIT License - see LICENSE for details.

Built with ❤️ by Jehaad AL-Johani for the ShadowJS ecosystem.

⭐ Show Your Support

If you find this project helpful, please give it a star on GitHub! It helps others discover the project and motivates continued development.

GitHub stars