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

v2.0.0

Published

CLI tool for creating and managing LARC applications

Downloads

200

Readme

create-larc-app

Official CLI tool for creating and managing LARC applications.

Quick Start

# Create a new LARC app
npx create-larc-app my-app

# Or with options
npx create-larc-app my-app --template=dashboard --yes

Features

  • 🚀 Zero Config - No build step required
  • 📦 Template System - Start with pre-built templates
  • 🔥 Hot Reload - Development server with live updates
  • 🎨 Component Generator - Scaffold new components quickly
  • 📚 Registry Integration - Add components from the LARC registry

Commands

create-larc-app

Create a new LARC application:

npx create-larc-app <project-directory> [options]

Options:

  • -t, --template <template> - Template to use (minimal, dashboard, blog)
  • -y, --yes - Skip prompts and use defaults
  • --no-install - Skip npm install
  • --no-git - Skip git initialization

Examples:

# Interactive mode
npx create-larc-app my-app

# With template
npx create-larc-app my-dashboard --template=dashboard

# Skip prompts
npx create-larc-app my-app --yes

larc dev

Start development server:

larc dev [options]

Options:

  • -p, --port <port> - Port number (default: 3000)
  • --no-open - Don't open browser
  • --no-hot - Disable hot module reload

Example:

larc dev --port=8080

larc add

Add a component from the registry:

larc add <component> [options]

Options:

  • -y, --yes - Skip confirmation

Examples:

# Interactive
larc add pan-card

# Skip confirmation
larc add @larcjs/ui --yes

# By npm package
larc add @username/my-component

larc generate

Generate boilerplate code:

larc generate <type> <name> [options]

Alias: larc g

Options:

  • -d, --dir <directory> - Output directory (default: src/components)

Examples:

# Generate a component
larc generate component my-widget

# Generate in custom directory
larc g component my-widget --dir=src/widgets

larc preview

Preview production build:

larc preview [options]

Options:

  • -p, --port <port> - Port number (default: 4000)

Project Structure

my-app/
├── index.html          # Entry point
├── src/
│   ├── app.js         # Main application
│   └── components/    # Custom components
├── public/
│   ├── styles.css    # Global styles
│   └── assets/       # Static assets
├── larc.config.json  # LARC configuration
├── package.json
└── README.md

larc.config.json

Configuration file for LARC projects:

{
  "version": "1.0.0",
  "importmap": {
    "imports": {
      "@larcjs/core": "https://cdn.jsdelivr.net/npm/@larcjs/core@latest/dist/index.js",
      "@larcjs/ui": "https://cdn.jsdelivr.net/npm/@larcjs/ui@latest/dist/index.js"
    }
  },
  "devServer": {
    "port": 3000,
    "hot": true,
    "open": true
  }
}

Templates

minimal

Basic starter with essential structure:

  • Clean HTML/CSS/JS setup
  • Import map configuration
  • Example component structure

dashboard

Admin dashboard starter:

  • Pre-built layout with sidebar
  • Navigation components
  • Data table examples
  • Chart integration

blog

Blog/content site starter:

  • Article layout
  • Markdown rendering
  • Routing setup
  • Content components

Development Workflow

  1. Create project:

    npx create-larc-app my-app
    cd my-app
  2. Start dev server:

    npm run dev
  3. Add components:

    larc add pan-card
  4. Generate custom components:

    larc generate component my-widget
  5. Build for production:

    # No build needed! Just deploy your files

Hot Module Reload

The dev server includes hot reload:

  • Watches src/, public/, and HTML files
  • Auto-refreshes on changes
  • SSE-based communication
  • Zero configuration

Import Maps

LARC uses native import maps for dependency management:

<script type="importmap">
{
  "imports": {
    "@larcjs/core": "https://cdn.jsdelivr.net/npm/@larcjs/core@latest/dist/index.js"
  }
}
</script>

Managed automatically via larc.config.json.

No Build Step

LARC embraces the no-build philosophy:

  • Native ES modules
  • Import maps for dependencies
  • Direct CDN usage
  • Browser-native features

Requirements

  • Node.js 18+
  • Modern browser with:
    • ES Modules support
    • Import Maps support
    • Custom Elements support

Contributing

See CONTRIBUTING.md

License

MIT

Links