I was fed up of going to a task management service and organise my day and goals, hence presenting ManageMe - A workspace and task management dashboard with OpenClaw integration for external channels.
Quick Start
Prerequisites
- Node.js 18+
- npm, pnpm, yarn, or bun
- Appwrite instance (self-hosted or cloud)
Install
npm install
Environment Variables
Create .env.local:
# Appwrite
NEXT_PUBLIC_APPWRITE_ENDPOINT=https://your-appwrite.cloud
NEXT_PUBLIC_APPWRITE_PROJECT_ID=your-project-id
NEXT_PUBLIC_APPWRITE_DATABASE_ID=your-database-id
NEXT_PUBLIC_APPWRITE_WORKSPACES_ID=workspaces-collection-id
NEXT_PUBLIC_APPWRITE_MEMBERS_ID=members-collection-id
NEXT_PUBLIC_APPWRITE_PROJECTS_ID=projects-collection-id
NEXT_PUBLIC_APPWRITE_TASKS_ID=tasks-collection-id
NEXT_PUBLIC_APPWRITE_FILES_BUCKET_ID=files-bucket-id
NEXT_PUBLIC_APPWRITE_IMAGES_BUCKET_ID=images-bucket-id
Run
npm run dev
Open http://localhost:3000
OpenClaw Setup
ManageMe includes built-in OpenClaw integration for connecting external channels (Discord, Telegram, Slack, etc.) to your workspace.
1. Install OpenClaw
Follow the OpenClaw installation guide to set up the gateway.
2. Configure OpenClaw
Add to your ~/.openclaw/openclaw.json:
{
"skills": {
"entries": {
"manageme": {
"env": {
"MANAGEME_API_URL": "http://localhost:3000",
"MANAGEME_OPENCLAW_SECRET": "your-secret-here",
"MANAGEME_WORKSPACE_ID": "your-workspace-id"
}
}
}
}
}
3. Install the Skill
cp manageme.skill.json ~/.openclaw/skills/manageme/SKILL.md
Or manually create ~/.openclaw/skills/manageme/SKILL.md with the contents of manageme.skill.md.
4. Configure Channels
Example Discord channel setup in openclaw.json:
{
"channels": {
"discord": {
"enabled": true,
"token": {
"source": "env",
"provider": "default",
"id": "DISCORD_BOT_TOKEN"
},
"skills": ["manageme"],
"dm": {
"enabled": true
}
}
}
}
5. Set Environment Variables
export MANAGEME_API_URL="http://localhost:3000"
export MANAGEME_OPENCLAW_SECRET="your-secret-here"
export MANAGEME_WORKSPACE_ID="your-workspace-id"
export DISCORD_BOT_TOKEN="your-discord-token"
6. Start OpenClaw
openclaw start
Demo
๐ฌ Watch Demo Video
See how ManageMe works with Discord, file uploads, and real-time updates.
Usage
From Discord/Telegram/Slack
Once connected, you can manage tasks from your channel:
/create task "Review PR" --due 2024-01-15 --priority high
/list tasks
/complete task 123
/upload resource <file> --task 123
See manageme.skill.md for all available commands.
Features
- Task Management: Create, update, complete tasks
- File Attachments: Upload files to tasks (images, PDFs, documents)
- Workspaces: Organize tasks by workspace
- Projects: Group tasks into projects
- Members: Assign tasks to team members
- OpenClaw Integration: Manage tasks from external channels
API Endpoints
OpenClaw API (/api/oc/*)
For external channel integrations:
GET /api/oc/ping - Health check
GET /api/oc/tasks - List tasks
POST /api/oc/task - Create task
PATCH /api/oc/task/{id}/status - Update status
PATCH /api/oc/task/{id}/complete - Complete task
POST /api/oc/resource - Upload file attachment
Web UI API (/api/tasks/*)
For the web interface:
GET /api/tasks - List tasks (with filters)
POST /api/tasks - Create task
PATCH /api/tasks/{id} - Update task
DELETE /api/tasks/{id} - Delete task
POST /api/tasks/{id}/resource - Upload attachment
DELETE /api/tasks/{id}/resource/{fileId} - Delete attachment
File Upload
From Web UI
- Navigate to a task
- Click "Add File" or drag and drop
- File appears in attachments list
From OpenClaw
curl -X POST "http://localhost:3000/api/oc/resource?w=workspace-id" \
-H "x-openclaw-secret: your-secret" \
-F "file=@./document.pdf" \
-F "taskId=task-id"
Architecture
- Frontend: Next.js 14 (App Router)
- Styling: Tailwind CSS + Radix UI
- State: TanStack Query
- Forms: React Hook Form + Zod
- Backend: Appwrite (DB, Auth, Storage)
- API: Hono (type-safe routes)
Project Structure
src/
โโโ app/ # Next.js routes
โโโ features/ # Feature modules
โ โโโ tasks/ # Task management
โ โโโ projects/ # Project management
โ โโโ workspaces/ # Workspace management
โ โโโ openclaw/ # OpenClaw integration
โโโ components/ # Reusable UI
โโโ lib/ # Utilities
Scripts
npm run dev # Development server
npm run build # Production build
npm run lint # Lint code
Documentation
Architecture Deep Dive
OpenClaw Integration Pattern
ManageMe demonstrates a clean separation between the web interface and external channel integrations:
External Channel (Discord/Telegram/Slack)
โ
OpenClaw Gateway (Authentication, Rate Limiting, Routing)
โ
ManageMe Skill (Command Parsing, Intent Recognition)
โ
Hono API (Type-Safe Endpoints)
โ
Zod Validation (Runtime Type Checking)
โ
Appwrite (Persistence, Real-time Subscriptions)
โ
Web Frontend (React Query Cache)
Command Processing Pipeline
- Request Reception: OpenClaw receives HTTP POST from channel adapter
- Security Validation: HMAC signature verification, rate limit check
- Routing: Skill router directs to ManageMe handler
- Parsing: Natural language โ structured command (action, entity, parameters)
- Validation: Zod schemas ensure data integrity
- Execution: Business logic creates/updates resources
- Response: Formatted for specific channel (Discord embeds, Telegram markdown)
- Propagation: React Query invalidation triggers real-time updates
File Upload Architecture
// Multi-format support
interface UploadHandler {
// multipart/form-data (large files)
handleMultipart(file: File, metadata: Metadata): Promise<UploadResult>;
// application/json (base64 encoded)
handleBase64(data: string, mimeType: string): Promise<UploadResult>;
// application/octet-stream (raw binary)
handleBinary(buffer: ArrayBuffer, filename: string): Promise<UploadResult>;
// text/plain (simple text)
handleText(content: string): Promise<UploadResult>;
}
Key Insight: The FormData bug (passing FormData directly to Hono) revealed that browser and Node.js environments handle FormData iteration differently. Solution: pass plain objects, let Hono create FormData internally.
Real-time Synchronization
// Appwrite real-time subscriptions
const unsubscribe = databases.subscribe(
"tasks",
["databases.*.collections.*.documents.*"],
(response) => {
// Invalidate React Query cache
queryClient.invalidateQueries({ queryKey: ["tasks"] });
// Optimistic UI updates
queryClient.setQueryData(["tasks"], (old) =>
updateTaskInList(old, response.payload),
);
},
);
Future Roadmap
1. Webhook System
Enable external services to react to task lifecycle events:
app.post("/webhooks", async (c) => {
const { event, target, conditions } = await c.req.json();
await webhookService.register({
event: "task.created",
target: "https://api.slack.com/webhooks/...",
conditions: { priority: "high" },
});
return c.json({ id: webhookId, status: "active" });
});
Automate cross-platform workflows: task created โ post to #announcements, PR merged โ auto-complete task, file uploaded โ backup to cloud storage.
2. AI-Powered Automation
Leverage LLMs for intelligent task extraction from conversations:
app.post("/ai/suggest", async (c) => {
const { context } = await c.req.json();
const completion = await openai.chat.completions.create({
messages: [
{ role: "system", content: "Extract tasks from conversation" },
{ role: "user", content: context },
],
});
return c.json({
suggestions: JSON.parse(completion.choices[0].message.content),
});
});
Auto-create tasks from meeting notes, suggest assignees based on expertise, estimate durations from historical data.
3. Advanced Integrations
Bidirectional sync with GitHub/Linear/Jira:
app.post("/integrations/sync", async (c) => {
const sync = new SyncService(provider, credentials);
await sync.configure({ direction: "bidirectional" });
return c.json({ status: "syncing" });
});
Link tasks to PRs/issues, auto-complete on merge, PR status badges in task view, branch creation from tasks.
License
This project is licensed under the MIT License. See LICENSE for details.
Built with Hand and OpenClaw