PHPackages                             kaiseki/wp-inpsyde-assets - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. kaiseki/wp-inpsyde-assets

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

kaiseki/wp-inpsyde-assets
=========================

Companion module for inpsyde/assets

1.0.0(1mo ago)087MITPHPPHP ^8.2CI passing

Since Jun 2Pushed 3w ago2 watchersCompare

[ Source](https://github.com/kaisekidev/kaiseki-wp-inpsyde-assets)[ Packagist](https://packagist.org/packages/kaiseki/wp-inpsyde-assets)[ Docs](https://github.com/kaisekidev/kaiseki-wp-inpsyde-assets)[ RSS](/packages/kaiseki-wp-inpsyde-assets/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (19)Versions (2)Used By (0)

kaiseki/wp-inpsyde-assets
=========================

[](#kaisekiwp-inpsyde-assets)

Companion module for [`inpsyde/assets`](https://github.com/inpsyde/assets) that registers a Vite build's `manifest.json` entries as WordPress assets and wires up a Vite dev-server client.

It provides:

- **`ViteManifestLoader`** — an `inpsyde/assets` webpack-style loader that parses a Vite `manifest.json` into `Script`/`Style` assets (by extension), with optional handle prefixing and a configurable directory URL.
- **`ViteManifestRegistry`** — a `kaiseki/wp-hook` `HookProviderInterface` that, on the `inpsyde/assets` setup action, loads the configured manifests, applies per-handle script/style filters, optionally tags scripts as ES modules, and registers them with the `AssetManager`.
- **`ViteClient`** — injects the `@vite/client` dev script into the page when the Vite dev server is running (detected on local/development environments via `kaiseki/wp-env`).

Installation
------------

[](#installation)

```
composer require kaiseki/wp-inpsyde-assets
```

Requires PHP 8.2 or newer.

Usage
-----

[](#usage)

Register `ConfigProvider` with your laminas-style config aggregator and activate the providers via `kaiseki/wp-hook`. Configure the manifests and the dev-server client under their config keys:

```
use Kaiseki\WordPress\InpsydeAssets\Registry\ViteManifestRegistry;
use Kaiseki\WordPress\InpsydeAssets\ViteClient\ViteClient;

return [
    'vite_client' => [
        'host' => 'localhost',
        'port' => 5173,
    ],
    'vite_manifest' => [
        // list of manifest.json paths, or callables receiving the ViteClient
        'files'         => [get_theme_file_path('dist/manifest.json')],
        'autoload'      => true,
        'handle_prefix' => 'theme-',
        'es_modules'    => true,
        // optional per-handle filters: handle => callable|bool
        'scripts'       => [],
        'styles'        => [],
    ],
    'hook' => [
        'provider' => [
            ViteClient::class,
            ViteManifestRegistry::class,
        ],
    ],
];
```

`VITE_HOST` and `VITE_PORT` environment variables override the configured dev-server host/port.

Development
-----------

[](#development)

```
composer install
composer check   # check-deps, cs-check, phpstan
```

License
-------

[](#license)

MIT — see [LICENSE](LICENSE).

###  Health Score

42

↑

FairBetter than 88% of packages

Maintenance95

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 57.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

30d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1c3a6b11aea9668c9e9ca0c0f8515ef114d344acb552c695d715d35d5b388ea4?d=identicon)[woda](/maintainers/woda)

---

Top Contributors

[![davidmondok](https://avatars.githubusercontent.com/u/3883758?v=4)](https://github.com/davidmondok "davidmondok (11 commits)")[![wolfgangschaefer](https://avatars.githubusercontent.com/u/26325205?v=4)](https://github.com/wolfgangschaefer "wolfgangschaefer (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kaiseki-wp-inpsyde-assets/health.svg)

```
[![Health](https://phpackages.com/badges/kaiseki-wp-inpsyde-assets/health.svg)](https://phpackages.com/packages/kaiseki-wp-inpsyde-assets)
```

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k455.6M9.5k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

706130.3M13.2k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31182.0M2.4k](/packages/illuminate-container)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k49](/packages/ecotone-ecotone)[symfony/type-info

Extracts PHP types information.

20069.8M269](/packages/symfony-type-info)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k41](/packages/civicrm-civicrm-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
