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

@moreillon/group-manager-vue-picker

v0.0.2

Published

[![npm version](https://badge.fury.io/js/group_manager_vue_picker.svg)](https://badge.fury.io/js/group_manager_vue_picker)

Downloads

368

Readme

Vue Group & User Picker (Vue 3)

npm version

A Vue 3 + TypeScript component library that provides GroupPicker and UserPicker components for selecting groups and users from an API.

✨ Background

In Vue 2, this functionality was split into two separate packages:

  • @moreillon/vue_group_picker
  • @moreillon/vue_user_picker

After migrating to Vue 3, both have been merged into a single package to:

  • simplify installation
  • unify API design
  • share internal logic (fetching, auth, composables)
  • improve maintainability

👉 Despite the merge, usage remains very similar, so migrating from Vue 2 should feel familiar.

📦 Installation

npm install group_manager_vue_picker

🚀 Usage

Import components

import { GroupPicker, UserPicker, Loader } from "group_manager_vue_picker";

🧩 GroupPicker

Basic Example

<template>
  <GroupPicker
    :groupManagerApiUrl="apiUrl"
    :groupManagerFrontUrl="frontUrl"
    :accessToken="accessToken"
    @selection="onSelection"
  />
</template>

<script setup lang="ts">
import { ref } from "vue";
import { GroupPicker, type GroupItem } from "group_manager_vue_picker";

const apiUrl = ref("https://api.example.com");
const frontUrl = ref("https://frontend.example.com");
const accessToken = ref<string | null>(null);

function onSelection(group: GroupItem) {
  console.log("Selected group:", group);
}
</script>

Props

| Prop | Type | Description | | --------------------------- | ---------------- | ------------------------------ | | groupManagerApiUrl | string | API base URL | | groupManagerFrontUrl | string | Frontend URL (for links) | | accessToken | string \| null | Bearer token | | selectedGroupId | string \| null | Pre-selected group | | usersWithNoGroup | boolean | Show "users with no group" | | distinguishOfficialGroups | boolean | Separate official/non-official |

Emits

| Event | Payload | | ----------- | ----------- | | selection | GroupItem |

👤 UserPicker

Basic Example

<template>
  <UserPicker
    :groupManagerApiUrl="apiUrl"
    :userManagerFrontUrl="frontUrl"
    :accessToken="accessToken"
    @selection="onUser"
  />
</template>

<script setup lang="ts">
import { ref } from "vue";
import { UserPicker } from "group_manager_vue_picker";

const apiUrl = ref("https://api.example.com");
const frontUrl = ref("https://frontend.example.com");
const accessToken = ref<string | null>(null);

function onUser(user: any) {
  console.log("Selected user:", user);
}
</script>

How it works

UserPicker internally uses GroupPicker:

  1. User selects a group

  2. Users are fetched from:

    /v3/groups/{group_id}/members
  3. A searchable user list is displayed

Props

| Prop | Type | Description | | ---------------------- | ---------------- | ------------------ | | groupManagerApiUrl | string | API base URL | | groupManagerFrontUrl | string | Group frontend URL | | userManagerFrontUrl | string | User frontend URL | | accessToken | string \| null | Bearer token |

Emits

| Event | Payload | | ----------- | ------- | | selection | User |

🧪 Playground

A playground app is included for testing:

  • Configure API URL, token, and options
  • Switch between GroupPicker and UserPicker
  • Inspect selection results

🧱 Included Components

  • GroupPicker
  • UserPicker
  • Loader