A minimal example demonstrating the ObjectStack Protocol with a simple Task management application.
This example serves as a quick-start reference for learning ObjectStack basics. It demonstrates:
- Simple object definition with essential field types
- Basic configuration using
objectstack.config.ts - Minimal setup to get started quickly
For a comprehensive example with advanced features (workflows, validations, multiple views, dashboards), see the CRM Example.
examples/todo/
├── src/
│ ├── domains/
│ │ └── todo/
│ │ └── task.object.ts # Task object definition
│ └── client-test.ts # Client SDK usage example
├── objectstack.config.ts # Application manifest
└── README.md # This file
- Task Object (
todo_task) with essential and advanced field types
- ✅ Text (
subject) - Task title (required field) - ✅ Date (
due_date) - Due date tracking - ✅ Boolean (
is_completed) - Completion status with default value - ✅ Rating (
priority) - 3-star priority rating system - ✅ Color (
category_color) - Color picker with HEX format and preset colors - ✅ Code (
code_snippet) - JavaScript code editor with line numbers - ✅ Rich Text (
notes) - Formatted text with full editor capabilities
- Object capabilities:
apiEnabled,trackHistory - Custom icon (
check-square) - Name field configuration
- Commented action example showing future extensibility
This package is part of the examples workspace. You can build it, run it as an API server, or just use it for reference.
# From the monorepo root
pnpm run serve:todo
# Or from this directory
pnpm run serveThe server will start on http://localhost:3000 providing:
- GraphQL API endpoint:
http://localhost:3000/graphql - REST API endpoints based on the object definitions
# Install dependencies (from monorepo root)
pnpm install
# Build the example
pnpm --filter @object-ui/example-todo build
# Run type checking
pnpm --filter @object-ui/example-todo typecheck- Start Here - Simple task object, basic configuration
- Learn Protocols - Basic Examples - Protocol examples and patterns
- Next Step - CRM Example - Advanced features, workflows, validations, UI components
- Then - Official Documentation - Complete protocol reference
- Getting Started Guide
- Basic Protocol Examples - Learn individual protocols
- Object Schema Reference
- Field Types Reference
- CRM Example - Full-featured reference implementation
MIT