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

vite-plugin-balafon

v1.0.30

Published

balafon+vite plugin helper

Readme

balafon-vite-plugin

goal

help handling balafon project configuration.

require

  • balafon php framework ([https://balafon.igkdev.com/get-download])
  • balafon cli must be installed as global path (and be executable for UNIX system)
  • php8+

check with this command:

balafon --version

installation

npm -i vite-plugin-balafon

or

yarn add vite-plugin-balafon

Note: this package depend on cli-color and vite package

usage

  • in vite.config.js
import balafon from 'balafon-vite-plugin'

export default defineConfig({
    // ...
    plugins:[
        // ...
        balafon()
    ]
})

in application

  • virtual:balafon-corejs : to inject balafon core script. used in development to gain access to balafon.core.js library. will inject $igk as globalVariable and globalThis.igk

-- usage

import 'virtual:balafon-corejs'; 
$igk(...);
  • virtual:balafon-corecss: inject framework dynamic core css.

  • virtaul:balafon-project-settings : retrieve controller application session depend of the plugins (dev|production must be dynamic resolved)

option to pass to balafon config

{
    "leaveIndexHtml": {
        "type":"boolean",
        "description":"do not remove index.html"
    },
    "cwdir":{
        "type":"string",
        "description":"controller working directory"
    },
    "controller":{
        "type":"string",
        "description":"target controller name"
    },
    "useRoute":{
        "type":"boolean",
        "description":"active plugin use of routes definition"
    },
    "usePiniaStore":{
        "type":"boolean",
        "description":"active plugin use of pinia store"
    },
    "logo":{
        "type":"string",
        "description":"location to .svg logo relative to application working directory to be included "
    },
    "defaultUser":{
        "type":"string",
        "description":"login of the user to uses"
    },
    "buildCoreAssetOutput":{
        "type":"string",
        "description": "sub assets folder wher to store core assets. default will be \"balafon/\""
    },
    "buildCoreJSAsAsset":{
        "type":["boolean"],
        "description":"ask to deploy CoreJs as asset"
    },
    "buildCoreCssAsAsset":{
        "type":["boolean"],
        "description":"ask to deploy CoreCss as assets"
    },
    "buildIconLibAsAsset":{
        "type":"boolean",
        "default":false,
        "description":"ask to deploy Icons libraries as assets"
    },
    "icons":{
        "type":"object",
        "description":"manage svg icons for the projects"
    },
    "componentUri":{
        "type":"string",
        "description": "indicate entry component server."
    }

}

plugins createApp Override

import { createApp } from 'virtual:balafon-vite-app'
import { createSSRApp } from 'virtual:balafon-vite-app'

declerate icons for production

library: string => [folder_that_contains_svg_or_vue, list_of_file_to_import]

  • Features I18n

"formats" in json spécifie formatting to used

or "text.formats" the new text to use

RELEASE