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

@simcorp-mel/simui

v1.0.2

Published

Reusable Vue 3 and PrimeVue application shell with configurable branding, axios, and optional authentication.

Downloads

97

Readme

SIMUI

SIMUI est maintenant un projet separe du referentiel applicatif Animax. Ce dossier constitue le depot source de la librairie version 1.0.2.

Le package est prepare pour une publication npm sous le nom @simcorp-mel/simui. Le nom non scope simui est deja pris sur npm.

Le dossier contient maintenant deux usages dans le meme projet:

  • une application de demonstration et de documentation lancee avec Vite
  • une sortie librairie construite dans dist-lib pour etre consommee par d'autres apps

Demarrage

npm install
npm run dev

Le build complet produit a la fois l'app et la librairie:

npm run build

Point d'entree librairie

Le package exporte:

  • createSimUIApp
  • defineSimUIConfig, configureSimUI, getSimUIConfig
  • le shell principal et les stores/composables utiles
  • le CSS construit via l'export ./styles.css

Le point d'entree de demo est configure dans src/simui/demo.config.js.

Depuis la version 1.0.1, une application consommatrice peut injecter ses propres pages via routes.additionalChildren tout en reutilisant le shell, la topbar, la sidebar et les preferences du package. Depuis cette mise a jour, elle peut aussi remplacer une vue starter existante via routes.replaceChildren, par exemple dashboard. Depuis la version 1.0.2, l'installation du package cree aussi une base locale dans src quand les fichiers n'existent pas encore.

Scaffold automatique du projet consommateur

Lors de l'installation de SIMUI dans un projet Vue, le package cree si besoin:

  • src/views/DashboardView.vue pour remplacer rapidement le dashboard
  • src/simui.routes.js pour brancher le remplacement du dashboard
  • src/composables, src/stores et src/services avec des fichiers README de depart

La documentation reste fournie par la vue integree de SimUI via la route simui-docs.

Le scaffold est idempotent: un fichier deja present n'est jamais ecrase.

Configuration rapide

La configuration centralisee couvre:

  • app: nom, titre, sous-titre, description
  • branding: nom affiche, shortName, tagline, logoUrl, supportEmail
  • navigation: items du menu et placeholder de recherche
  • appearance, layout, features
  • axios: baseURL, timeout, defaultHeaders, withCredentials
  • auth: enabled, mode, loginEndpoint, meEndpoint, redirectOn401, tokenResolver
  • storage: cles localStorage pour eviter les collisions entre applications
  • routes: noms internes, remplacements de vues starter et routes enfants additionnelles pour les pages metier

Exemple minimal:

import { createSimUIApp, defineSimUIConfig } from '@simcorp-mel/simui'

const config = defineSimUIConfig({
  app: {
    name: 'My Product',
    subtitle: 'Back office operations'
  },
  branding: {
    name: 'My Product',
    shortName: 'MP',
    logoUrl: '/logo.svg'
  },
  auth: {
    enabled: false,
    mode: 'disabled'
  }
})

await createSimUIApp({ config })

Exemple d'ajout de page metier dans une application consommatrice:

defineSimUIConfig({
  navigation: {
    items: [
      { key: 'home', label: 'Accueil', icon: 'pi pi-home', routeName: 'dashboard' },
      { key: 'orders', label: 'Commandes', icon: 'pi pi-briefcase', routeName: 'orders-board' }
    ]
  },
  routes: {
    additionalChildren: [
      {
        path: 'operations/orders',
        name: 'orders-board',
        component: () => import('./views/OrdersBoardView.vue'),
        meta: { title: 'Orders board', section: 'Operations', layoutKey: 'orders-board' }
      }
    ]
  }
})

Exemple de remplacement du dashboard fourni par SimUI:

defineSimUIConfig({
  navigation: {
    items: [
      { key: 'home', label: 'Accueil', icon: 'pi pi-home', routeName: 'dashboard' }
    ]
  },
  routes: {
    replaceChildren: [
      {
        name: 'dashboard',
        component: () => import('./views/MyDashboardView.vue'),
        meta: { title: 'Mon dashboard', section: 'Operations', layoutKey: 'dashboard' }
      }
    ]
  }
})

Exemple avec le scaffold local genere automatiquement:

import { simUIStarterRoutes } from './simui.routes'

defineSimUIConfig({
  routes: {
    replaceChildren: simUIStarterRoutes.replaceChildren,
    additionalChildren: simUIStarterRoutes.additionalChildren
  }
})

Authentification

Trois modes sont prevus en V1:

  • disabled: aucun guard ni ecran de login
  • demo: login visuel avec session locale sans backend
  • jwt: login via axios, compatible avec /login_check et /auth/me

Exemple JWT:

defineSimUIConfig({
  auth: {
    enabled: true,
    mode: 'jwt',
    loginEndpoint: '/login_check',
    meEndpoint: '/auth/me',
    redirectOn401: true
  },
  axios: {
    baseURL: 'https://api.example.com'
  },
  storage: {
    authTokenKey: 'my-product-access-token',
    authUserKey: 'my-product-auth-user'
  }
})

Axios

Le client axios partage la configuration runtime de SimUI et applique automatiquement:

  • baseURL et timeout
  • headers par defaut
  • jeton d'auth quand il existe
  • redirection sur 401 si l'auth JWT est activee

Documentation embarquee

L'application demo expose une vue Documentation dans la navigation. Elle presente:

  • l'initialisation du package
  • les variables de branding
  • la configuration axios
  • les modes d'authentification

Verification

npm run build
npm run lint
npm pack --dry-run

Publication npm

Quand le scope npm @simcorp-mel est pret:

npm login
npm publish --access public