// Initialize ORM in development mode
const orm = new WebORM({
endpoint: 'http://localhost',
projectId: 'demo-project',
databaseId: 'demo-database',
development: true
});// Define schema with validation rules
const db = await orm.init([{
name: 'tasks',
schema: {
title: { type: 'string', required: true },
completed: { type: 'boolean', default: false },
priority: { type: ['low','medium','high'] }
}
}]);// db.table('tasks').create({...})
// db.table('tasks').all()
Filter by Priority:
// db.table('tasks').query({priority})
// db.table('tasks').delete(id)
No tasks found. Add one above!
Development Mode: This demo uses Appwrite ORM's development mode. All data is stored locally in browser cookies. No real Appwrite server is needed, making it perfect for testing and prototyping!