Skip to content

Repository files navigation

SystemForge Web

React framework for building multi-tenant SaaS applications with SystemForge.

Packages

Package Description npm
@plexusone/auth Authentication primitives npm
@plexusone/tenant Multi-tenant context npm
@plexusone/api-client HTTP client npm
@plexusone/telemetry Event instrumentation npm
@plexusone/shell Application shell npm
@plexusone/pages Pre-built pages npm
@plexusone/design-tokens Design system tokens npm

Quick Start

# Install packages
pnpm add @plexusone/shell @plexusone/auth @plexusone/tenant

# Wrap your app
import { AuthProvider } from '@plexusone/auth';
import { TenantProvider } from '@plexusone/tenant';
import { AppShell } from '@plexusone/shell';

function App() {
  return (
    <AuthProvider>
      <TenantProvider>
        <AppShell>
          <YourApp />
        </AppShell>
      </TenantProvider>
    </AuthProvider>
  );
}

Telemetry with ProductGraph

Track user behavior, journeys, and performance with ProductGraph integration:

import { TelemetryProvider, ProductGraphAdapter, usePageView, useJourneyStep } from '@plexusone/telemetry';

const adapter = new ProductGraphAdapter({
  projectId: 'my-project',
  endpoint: 'https://api.productgraph.io/v1/events',
});

function App() {
  return (
    <TelemetryProvider config={{ adapters: [adapter] }}>
      <Router />
    </TelemetryProvider>
  );
}

function CheckoutPage() {
  usePageView('/checkout');
  const { enterStep, completeStep } = useJourneyStep('payment', 'Enter Payment');

  useEffect(() => {
    enterStep();
    return () => completeStep();
  }, []);

  return <PaymentForm />;
}

Documentation

Development

# Install dependencies
pnpm install

# Build all packages
pnpm build

# Run development mode
pnpm dev

# Run tests
pnpm test

# Lint
pnpm lint

License

MIT

About

React framework for building multi-tenant SaaS applications with CoreForge.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages