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

manjui

v3.6.0

Published

Vue UI library & design system based on Nightshade UI (nightshade)

Downloads

724

Readme

Manjui

Vue UI library & design system based on Nightshade UI (nightshade).

Adds blocks and sections to the library to experiment with quicker landing page and website building.

These add ons are very experimental and still under development. So please use at your own risk.

Installation

NPM Package (when published)

npm install manjui

Local Development / Monorepo Usage

For monorepo setups or local development, you can use a file reference in your package.json:

{
  "dependencies": {
    "manjui": "file:../../libs/manjui"
  }
}

Then run:

npm install

Usage

1. Import Components and Styles

// In your main app file (e.g., app.ts or main.ts)
import * as manjuiComponents from 'manjui';

// Import manjui styles
import 'manjui/stylesheets/variables.css';
import 'manjui/stylesheets/baseline.css';

// Register components globally (Vue 3 example)
const app = createApp(App);

for (const [name, component] of Object.entries(manjuiComponents.components || {})) {
    app.component(name, component);
}

2. Use Components in Templates

<template>
  <VGroup gap="2">
    <Title>Welcome to Manjui</Title>
    <Text>A Vue UI library for rapid development</Text>
    <Divider />
    <HGroup gap="1">
      <Btn>Primary</Btn>
      <Btn variant="secondary">Secondary</Btn>
    </HGroup>
  </VGroup>
</template>

3. Available Components

  • Layout: VGroup, HGroup, HStack, Sizer
  • Typography: Title, Subtitle, Text, Link
  • Form: InputText, InputBase
  • UI Elements: Btn, Tab, TabCap, Icon, Image, Circle, Divider
  • Utilities: ThemeToggle, LanguageToggle

4. Theme Management

Manjui includes a built-in theme manager that supports light, dark, and auto modes.

Configuration

You can customize the localStorage key used by the theme manager:

// Using the theme plugin
import { themePlugin } from 'manjui';

app.use(themePlugin, {
  themeStorageKey: 'my-app-theme' // Default: 'theme'
});

// Or using BaseApp
import { BaseApp } from 'manjui';

const app = new BaseApp(vueApp, mesh, {
  themeStorageKey: 'my-app-theme'
});

Usage

<template>
  <!-- Use the ThemeToggle component -->
  <ThemeToggle />

  <!-- Or use the ThemeManager directly -->
  <Btn @click="toggleTheme">Toggle Theme</Btn>
</template>

<script>
export default {
  inject: ['themeManager'],

  methods: {
    toggleTheme() {
      this.themeManager.toggleTheme();
    }
  }
}
</script>

5. Language Toggle

The LanguageToggle component provides a simple, elegant UI for language selection (e.g., "EN | PT"). It's presentation-only and doesn't handle translations itself:

<template>
  <LanguageToggle
    :languages="['en', 'pt']"
    :current="currentLanguage"
    @change="handleLanguageChange" />
</template>

<script>
export default {
  data() {
    return {
      currentLanguage: 'en'
    };
  },

  methods: {
    handleLanguageChange(lang) {
      this.currentLanguage = lang;
      // Handle language change in your app
      // (update i18n, fetch translations, etc.)
    }
  }
}
</script>

Props:

  • languages (Array): List of language codes to display (default: ['en', 'pt'])
  • current (String): Currently active language (default: 'en')

Events:

  • @change: Emitted when a language is selected, passes the language code

Styling:

  • Active language is highlighted in primary color with bold weight
  • Inactive languages are muted and become brighter on hover
  • Languages are separated by a pipe "|" character
  • Designed for 2 languages but supports more if needed

Note: This component only provides the UI. You'll need to implement translation logic in your application (see your app's i18n setup or create a LanguageManager service).

6. Styling

Manjui uses CSS custom properties for theming. The main style files to import are:

  • manjui/stylesheets/variables.css - Core design tokens
  • manjui/stylesheets/baseline.css - Base styles and resets
  • manjui/stylesheets/full.css - Complete stylesheet (alternative to importing separately)

Development

# Install dependencies
npm install

# Run development server
npm run dev

# Build library
npm run build

# Lint code
npm run lint

Acknowledgments

This project is based on the Nightshade library by Boris Okunskiy.

Name is inspired by Manjū, my German Shepherd dog.