Skip to content

mahimailabs/openorca-ui

Repository files navigation

OpenOrca UI

OpenOrca UI is a frontend-only React package set for agent operations interfaces.

It ships in three packages:

  • @openorca-ui/core for shared types and data contracts
  • @openorca-ui/react for reusable OpenOrca components
  • @openorca-ui/theme for the branded provider and full dashboard shell

Most users should start with @openorca-ui/theme.

Quick Start

Install the packages:

npm install @openorca-ui/core @openorca-ui/react @openorca-ui/theme

Use It On A React Page

The fastest way to use OpenOrca is to render the full dashboard shell.

src/main.tsx

import { createRoot } from "react-dom/client";
import App from "./App";
import "@openorca-ui/theme/styles.css";

createRoot(document.getElementById("root")!).render(<App />);

src/App.tsx

import { OpenOrcaDashboard, OpenOrcaProvider } from "@openorca-ui/theme";

export default function App() {
  return (
    <OpenOrcaProvider>
      <OpenOrcaDashboard />
    </OpenOrcaProvider>
  );
}

Start From Scratch With Vite

Create a new app:

npm create vite@latest my-openorca-app -- --template react-ts
cd my-openorca-app
npm install
npm install @openorca-ui/core @openorca-ui/react @openorca-ui/theme

Then replace src/main.tsx and src/App.tsx with the examples above.

Start the app:

npm run dev

What OpenOrcaProvider Does

OpenOrcaProvider already includes:

  • React Query provider
  • theme provider
  • tooltip provider
  • toaster notifications

You do not need to wire those separately for the default dashboard setup.

What You Get By Default

With @openorca-ui/theme, you get:

  • the full OpenOrca dashboard shell
  • built-in demo/mock state
  • theme styling via @openorca-ui/theme/styles.css
  • frontend-only behavior with no backend required

Frontend-Only Mode

This repo is currently frontend-only.

That means:

  • no database is required
  • no Express server is required
  • the dashboard works with built-in demo data
  • some interactions are simulated for UI/demo purposes

This makes it easy to embed OpenOrca into a React app without standing up backend infrastructure first.

Package Overview

@openorca-ui/core

Use this package when you need OpenOrca domain types and shared data contracts.

@openorca-ui/react

Use this package when you want lower-level OpenOrca components and hooks to build your own custom layout.

@openorca-ui/theme

Use this package when you want the full branded OpenOrca experience with the least setup.

Local Development

From this repo:

npm install
npm run check
npm run build
npm run dev
npm run docs:dev

The demo app is served through Vite and shows the same OpenOrcaProvider + OpenOrcaDashboard integration path documented above.

The VitePress docs site lives in docs/ and can be built with:

npm run docs:build

The VitePress site is configured with a GitHub Pages base path of /openorca-ui/. Deployments should run from GitHub Actions using the workflow in .github/workflows/deploy-docs.yml, which builds docs/.vitepress/dist. In the repository Pages settings, set the deployment source to GitHub Actions.

Example Consumer Shape

The included demo uses the same pattern you should use in your own app:

  • import @openorca-ui/theme/styles.css once at app entry
  • wrap your page in OpenOrcaProvider
  • render OpenOrcaDashboard

Next Step

If you want more control than the full dashboard shell, start composing your own pages with @openorca-ui/react.

License

MIT

Credits

The idea was inspired from Ian's brilliant work - OpenOrca

Releases

No releases published

Packages

 
 
 

Contributors

Languages