| title | Utilities & Tools |
|---|---|
| description | Command-line tools and utilities for ObjectUI development |
ObjectUI provides a comprehensive suite of command-line tools and utilities to streamline your development workflow. These tools help you scaffold projects, create plugins, integrate with data sources, and develop with enhanced tooling support.
Browse available utilities:
- CLI - Project scaffolding and development server
- Create Plugin - Plugin template generator
- Runner - Universal application runtime
- ObjectStack Adapter - Connect to ObjectStack backend
@object-ui/cli - Command-line interface for scaffolding and running ObjectUI applications.
- Project scaffolding from JSON schemas
- Built-in development server (Express + Vite)
- JSON/YAML schema support
- Hot module reloading
npm install -g @object-ui/cli
objectui --help@object-ui/create-plugin - Interactive CLI tool for creating ObjectUI plugins.
- Plugin template generation
- Interactive configuration prompts
- Best practices scaffolding
- TypeScript support
npm install -g @object-ui/create-plugin
create-plugin my-awesome-plugin@object-ui/runner - Universal runtime for running ObjectUI applications.
- Standalone demo application
- Plugin testing environment
- Development playground
- Example implementations
cd packages/runner
pnpm dev@object-ui/data-objectstack - Data adapter for connecting to ObjectStack backends.
- ObjectStack client integration
- Automatic data binding
- CRUD operations support
- Query builder integration
npm install @object-ui/data-objectstack @objectstack/clientThe ObjectUI CLI provides a streamlined workflow for building applications:
# 1. Create a new project
objectui init my-app
# 2. Start the development server
cd my-app
objectui dev
# 3. Build for production
objectui buildCreating plugins is simplified with the create-plugin utility:
# 1. Generate plugin scaffold
create-plugin my-plugin
# 2. Implement your component
cd my-plugin/src
# Edit index.tsx
# 3. Test your plugin
pnpm dev
# 4. Publish to npm
pnpm publishConnect to ObjectStack backends with the data adapter. @object-ui/data-objectstack
is headless — it exports no React components and no hooks. You create a plain
DataSource with createObjectStackAdapter and inject it at the renderer boundary
through @object-ui/react's SchemaRendererProvider:
import { createObjectStackAdapter } from '@object-ui/data-objectstack';
import { SchemaRenderer, SchemaRendererProvider } from '@object-ui/react';
import type { ObjectGridBlockNode } from '@object-ui/types';
const dataSource = createObjectStackAdapter({
baseUrl: 'https://api.example.com',
token: 'your-api-token', // optional when auth is handled elsewhere
});
// The block's props go in its `properties` bag, as `@objectstack/spec` declares them.
const schema: ObjectGridBlockNode = {
type: 'object-grid',
properties: {
objectName: 'account',
columns: ['name', 'owner', 'created'],
},
};
export function App() {
return (
<SchemaRendererProvider dataSource={dataSource}>
<SchemaRenderer schema={schema} />
</SchemaRendererProvider>
);
}new ObjectStackAdapter(config) is the class form of the same factory, and
SchemaRenderer also takes an explicit dataSource prop when you would rather
inject per render than through context. See
ObjectStack Data Adapter for the full config,
the API reference, and how a schema node's own dataSource key (the spec's
per-element binding — what to query, not how to reach the backend) differs
from the adapter above.
All ObjectUI utilities share these characteristics:
- ✅ Easy to Use - Simple CLI interfaces
- ✅ Best Practices - Follow framework conventions
- ✅ Type-Safe - Full TypeScript support
- ✅ Well Documented - Comprehensive guides
- ✅ Actively Maintained - Regular updates
- CLI Documentation - Learn how to use the ObjectUI CLI
- Create Plugin Guide - Build your first plugin
- Plugin Concepts - Learn how plugins work in detail
Can't find what you're looking for? Check out: