Installation#

SignalX can be installed in several ways depending on your project setup.

Create a New Project#

The fastest way to get started is with our CLI:

Terminal
npm create @sigx@latest my-app

This will scaffold a new project with:

  • Vite for development and building
  • TypeScript configuration
  • SignalX and the Vite plugin pre-configured

Add to Existing Project#

Using npm#

Terminal
npm install sigx @sigx/vite

Using pnpm#

Terminal
pnpm add sigx @sigx/vite

Using yarn#

Terminal
yarn add sigx @sigx/vite

Configure Vite#

Add the SignalX plugin to your Vite configuration:

TypeScript
// vite.config.ts
import { defineConfig } from 'vite';
import { sigxPlugin } from '@sigx/vite';

export default defineConfig({
    plugins: [sigxPlugin()],
});

TypeScript Configuration#

For the best TypeScript experience, update your tsconfig.json:

JSON
{
    "compilerOptions": {
        "jsx": "preserve",
        "jsxImportSource": "sigx",
        "moduleResolution": "bundler"
    }
}

Package Versions#

SignalX follows semantic versioning. Current packages:

PackageVersionDescription
sigx0.1.5Core runtime
@sigx/vite0.1.5Vite plugin
@sigx/router0.1.5Client-side router
@sigx/store0.1.5State management
@sigx/daisyui0.1.5UI components

Next Steps#