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

@mydrift/ngx-dwex

v0.1.2

Published

Angular UI shell library with Material 3 theming, workspace navigation, tabs, profile mode, and responsive layout

Downloads

19

Readme

Dwex — Angular UI Shell Library

An Angular library that provides a complete application shell with navigation, theming, tabs, split views, workspace switching, and responsive layout. Built on Angular Material M3.

Install

npm install @mydrift/ngx-dwex

Minimal Example

import { Component } from '@angular/core';
import { Shell, ShellWorkspace, NavItem } from '@mydrift/ngx-dwex';

@Component({
  selector: 'app-root',
  imports: [Shell],
  template: `
    <dwex-shell
      [workspaces]="workspaces"
      [settingsNavItems]="settingsNav"
      [settingsRoute]="'/settings'"
      [enableTabs]="true">
      <div shell-branding>My App</div>
    </dwex-shell>
  `
})
export class App {
  workspaces: ShellWorkspace[] = [
    {
      id: 'main', label: 'Main', icon: 'home',
      navItems: [
        { label: 'Dashboard', route: '/dashboard', icon: 'dashboard' },
        { label: 'Profile', route: '/profile', icon: 'person' },
      ]
    }
  ];

  settingsNav: NavItem[] = [
    { label: 'Appearance', route: '/settings/appearance', icon: 'palette' },
  ];
}

Shell Inputs

| Input | Type | Default | Description | |-------|------|---------|-------------| | workspaces | ShellWorkspace[] | [] | Workspace configurations with nav items | | settingsNavItems | NavItem[] | [] | Settings section navigation | | settingsRoute | string | '/settings' | Base route for settings | | enableTabs | boolean | false | Enable browser-style tab bar | | profileMode | boolean | false | Built-in profile menu with avatar & sign-out | | userName | string | '' | Name shown in profile menu | | userEmail | string | '' | Email shown in profile menu | | userAvatar | string | '' | Avatar image URL | | profileRoute | string | '/profile' | Profile page route |

| Output | Type | Description | |--------|------|-------------| | signOut | void | Emitted on sign-out click |

Content Projection

| Selector | Location | |----------|----------| | [shell-branding] | Toolbar left — logo, app name | | [shell-actions] | Toolbar right — custom buttons |

Key Interfaces

interface ShellWorkspace {
  id: string;
  label: string;
  icon: string;
  navItems: NavItem[];
  showOn?: 'both' | 'mobile' | 'desktop';
}

interface NavItem {
  label: string;
  icon: string;
  route?: string;
  section?: boolean;
  divider?: boolean;
  showOn?: 'both' | 'mobile' | 'desktop';
}

Services

| Service | Purpose | |---------|---------| | ThemeService | Light/dark/system mode, 5 color palettes, localStorage persistence | | TabService | Tab lifecycle — open, close, pin, reorder, close others/right/all | | SplitViewService | Secondary pane — open route/component, resize, toggle orientation | | KeyboardShortcutService | Global keyboard shortcut registration | | LoadingService | Counter-based loading state | | PwaService | Offline detection, service worker updates |

Components

| Component | Selector | Purpose | |-----------|----------|---------| | Shell | <dwex-shell> | Main application shell | | PageTitle | <dwex-page-title> | Page header with title, subtitle, and action projection | | TabBar | <dwex-tab-bar> | Tab bar (used internally, can be standalone) |

Built-in Settings Pages

import {
  AppearanceSettingsPage,
  AccountSettingsPage,
  NotificationsSettingsPage,
  PrivacySettingsPage,
  AdvancedSettingsPage
} from '@mydrift/ngx-dwex';

Features

  • Workspaces — Multiple navigation contexts, toolbar switcher, auto-detects active workspace from route
  • Tabs — Auto-created on navigation, pin/unpin, drag reorder, context menu with close actions and split view
  • Split View — Open any route in a secondary pane; right-click or Ctrl+click nav items; resizable divider
  • Theming — M3 tokens, 5 palettes (violet/blue/green/red/orange), light/dark/system, auto-persisted
  • Profile Mode — Avatar, name, email, settings link, sign-out in a toolbar menu
  • Responsive — Mobile bottom nav, slide-in sidebar, 3-state desktop sidenav (expanded/compact/collapsed)
  • PWA — Offline banner, service worker update detection

Documentation

See the full Customization Guide for detailed API docs, examples, and CSS overrides.

License

MIT