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

@daolvera/bootstrap-angular-schematic

v1.0.1

Published

Angular schematic that generates a fully-configured Angular application with Bootstrap, pre-built services, and common UI components

Readme

@daolvera/bootstrap-angular-schematic

An Angular schematic that generates a fully-configured Angular application with Bootstrap 5+, ng-bootstrap, pre-built services, and common UI components. Save hours of setup time with a production-ready foundation for your Angular projects.

Quick Start

# Create a new Angular project (if needed)
ng new my-app --routing --style=scss
cd my-app

# Add the schematic
ng add @daolvera/bootstrap-angular-schematic

# Start development server
ng serve

Open http://localhost:4200 to see your Bootstrap-enabled Angular app!

Features

  • Angular 19+ with standalone components
  • Bootstrap 5.3+ fully integrated
  • ng-bootstrap components
  • Responsive Layout with header, footer, and mobile sidebar
  • Pre-built Services: Spinner, Modal, Navigation, Notification, Theme
  • Sample Pages with routing configured
  • SCSS Setup with variables and global styles
  • Dark Mode theme toggle
  • Production-ready configuration

Requirements

  • Node.js >= 18.19.0
  • npm >= 10.0.0
  • Angular CLI >= 19.0.0

What Gets Generated

src/
├── app/
│   ├── components/        # UI components
│   │   ├── header/        # Responsive navigation bar
│   │   ├── footer/        # Multi-column footer
│   │   ├── sidebar/       # Mobile navigation menu
│   │   ├── layout/        # App layout wrapper
│   │   ├── spinner/       # Loading overlay
│   │   ├── notifications/ # Toast messages
│   │   └── theme-toggle/  # Dark mode toggle
│   ├── services/
│   │   ├── spinner.service.ts      # Loading state
│   │   ├── modal.service.ts        # Modal dialogs
│   │   ├── navigation.service.ts   # Sidebar control
│   │   ├── notification.service.ts # Toast notifications
│   │   └── theme.service.ts        # Theme management
│   ├── pages/
│   │   ├── home/          # Landing page
│   │   ├── about/         # About page
│   │   └── not-found/     # 404 page
│   ├── interceptors/      # HTTP interceptors
│   ├── models/            # TypeScript interfaces
│   └── utils/             # Form utilities & validators
├── styles/
│   ├── _variables.scss    # Bootstrap customization
│   ├── _global.scss       # Global styles
│   └── styles.scss        # Main stylesheet
└── environments/          # Environment configs

Usage Examples

Spinner Service

import { SpinnerService } from './services/spinner.service';

constructor(private spinner: SpinnerService) {}

async loadData() {
  this.spinner.show('Loading...');
  try {
    await this.fetchData();
  } finally {
    this.spinner.hide();
  }
}

Modal Service

import { ModalService } from './services/modal.service';
import { SampleModalComponent } from './components/sample-modal/sample-modal.component';

constructor(private modalService: ModalService) {}

openModal() {
  const modalRef = this.modalService.open(SampleModalComponent, {
    title: 'My Modal',
    size: 'lg',
    centered: true
  });
  
  modalRef.result.then(
    (result) => console.log('Closed:', result),
    (reason) => console.log('Dismissed:', reason)
  );
}

Notification Service

import { NotificationService } from './services/notification.service';

constructor(private notification: NotificationService) {}

showSuccess() {
  this.notification.success('Operation completed!');
}

showError() {
  this.notification.error('Something went wrong');
}

Theme Service

import { ThemeService } from './services/theme.service';

constructor(private theme: ThemeService) {}

toggleTheme() {
  this.theme.toggleTheme();
}

// Get current theme
const currentTheme = this.theme.currentTheme; // 'light' or 'dark'

Customization

Bootstrap Variables

Edit src/styles/_variables.scss:

$primary: #0066cc;
$secondary: #6c757d;
$success: #28a745;
// ... customize colors, fonts, spacing, etc.

SCSS Global Styles

Edit src/styles/_global.scss for custom global styles.

Component Customization

All generated components are in your project and fully customizable. Modify HTML, SCSS, and TypeScript as needed.

Installation Options

# Standard installation
ng add @daolvera/bootstrap-angular-schematic

# Skip npm install (install dependencies manually later)
ng add @daolvera/bootstrap-angular-schematic --skip-install

# Manual installation (if ng add doesn't work)
npm install @daolvera/bootstrap-angular-schematic
ng generate @daolvera/bootstrap-angular-schematic:ng-add

Common Questions

Can I use this with an existing project?
Yes, but it will overwrite some files (app.component.ts, app.config.ts, etc.). Review changes carefully or use with new projects.

Can I remove components I don't need?
Yes, delete the component files and remove their imports from the layout.

How do I customize the header/footer?
Edit the HTML/SCSS files in src/app/components/header/ and src/app/components/footer/.

Can I use a different Bootstrap theme?
Yes, modify the Bootstrap variables in src/styles/_variables.scss or import a custom theme.

Contributing

Contributions are welcome! See CONTRIBUTING.md for guidelines.

Development

For developers working on this schematic:

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run build:watch

# Test
npm test

# Clean build
npm run clean

See DEVELOPMENT.md for detailed development documentation.

Changelog

See CHANGELOG.md for version history.

License

MIT