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

@ulu/frontend-vue

v0.2.0-beta.8

Published

A modular and tree-shakeable Vue 3 component library for the Ulu frontend

Readme

@ulu/frontend-vue

Vue component library for the Ulu frontend ecosystem.

This library provides a set of reusable, themeable, and accessible Vue 3 components. It is designed to be modular, allowing you to import only the components and features you need, ensuring your application remains lightweight and performant.

Installation

Install the library and its required peer dependencies.

npm install @ulu/frontend-vue

Usage

Using the library involves three main steps: setting up the SCSS, registering the Vue plugins, and importing the components you need.

1. SCSS Setup

Import the main stylesheet into your project's primary SCSS file. This will bring in all the necessary styles for the components.

// Import Ulu Vue component styles
@use "@ulu/frontend-vue/scss" as ulu-vue;

// Configure
@include ulu-vue.plugin-toast-set((
  "background-color" : gray
));

// Output (plugins/component) stylesheets that you use
@include ulu-vue.plugin-toast-styles();

2. Plugin Registration

This library uses a plugin-based system to configure core features and functionality. You'll need to register them in your main application entry point (e.g., src/main.js).

Core Plugin (Required)

The corePlugin is required to set up the library's foundational settings, such as the icon system, which is used by many components.

// src/main.js
import { createApp } from 'vue';
import App from './App.vue';
import router from './router'; // Your vue-router instance

import { corePlugin } from '@ulu/frontend-vue';

const app = createApp(App);

app.use(router);

// Register the core plugin
app.use(corePlugin, {
  // Optional: You can override default settings here.
  // For example, to use FontAwesome's static CSS classes instead of the Vue component:
  // fontAwesomeStatic: true, 
});

app.mount('#app');

Optional Plugins

Other plugins for features like responsive breakpoints, global modals, and toast notifications can be registered as needed.

// src/main.js
import { breakpointsPlugin, modalsPlugin, toastPlugin } from '@ulu/frontend-vue';

// ...
app.use(breakpointsPlugin);
app.use(modalsPlugin, { /* your global modal configurations */ });
app.use(toastPlugin, { /* default toast options */ });
// ...

3. Component Usage

Components are designed to be imported individually. This approach is highly recommended as it allows build tools like Vite or Webpack to tree-shake unused components, keeping your final application bundle as small as possible.

Example:

<script setup>
  import { UluButton, UluAlert } from '@ulu/frontend-vue';
</script>

<template>
  <UluAlert type="success" title="Success!">
    This is an alert component.
  </UluAlert>

  <UluButton primary to="/">Click Me</UluButton>
</template>

Resources

Snippets

Resolver

Resolver for unplugin-vue-components is available to use like:

// vite.config.js

import { defineConfig } from "vite";
import Components from "unplugin-vue-components/vite";
import { UluUnpluginResolver } from "@ulu/frontend-vue/resolver";

export default defineConfig({
  plugins: [
    // ...
    Components({ 
      resolvers: [
        UluUnpluginResolver()
      ]
    }),
    // ...
  ],
  // ...
});