🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@simplemodule/client

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@simplemodule/client

[![npm](https://img.shields.io/npm/v/@simplemodule/client.svg)](https://www.npmjs.com/package/@simplemodule/client)

latest
npmnpm
Version
0.0.39
Version published
Maintainers
1
Created
Source

@simplemodule/client

npm

Vite plugin and utilities for building SimpleModule frontend modules.

Installation

npm install @simplemodule/client

Quick Start

// vite.config.ts
import { defineModuleConfig } from '@simplemodule/client/module';

export default defineModuleConfig({
  moduleName: 'Products',
});
// app.tsx
import { resolvePage } from '@simplemodule/client/resolve-page';

createInertiaApp({
  resolve: resolvePage,
  // ...
});

Key Features

  • defineModuleConfig -- Vite configuration factory for module library builds
  • resolvePage -- dynamic page resolver that loads module bundles by route name
  • Vite vendor plugin -- bundles shared dependencies (React, Inertia) for module consumption

FAQs

Package last updated on 22 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts