Skip to main content

Introduction to Capela

Capela lets you write application code as if you're building in-memory apps, while automatically generating a complete environment with sharded database and admin UI. It simplifies development by providing a unified approach to building applications.

What is Capela?​

Capela enables developers to write applications naturally and intuitively. It handles database management, API development, and UI creation, letting you focus on your application's core functionality.

Capela automatically generates:

  • A complete database structure
  • API endpoints
  • An admin UI
  • AI integration through ChefProcess

Key Features​

  • In-Memory Programming Model: Write code as if running in memory, with Capela handling persistence
  • Automatic API Generation: RESTful API endpoints are generated automatically
  • Built-in Admin UI: Manage your application data through a built-in interface
  • AI Integration: Add AI capabilities using ChefProcess
  • Type Safety: Strong typing ensures reliability
  • Scalability: Built-in support for sharded databases

Example Application​

Here's a simple Capela application:

class Hello(Node):
count: int = Field(default=0)

def say_hello_to(self, name: str):
self.count += 1
return f"Hello, {name}! The count is: {self.count}"

This application:

  • Defines a Hello class that inherits from Node
  • Tracks the number of greetings with a count field
  • Provides a say_hello_to method that returns a greeting

When deployed, this becomes available through a RESTful API and admin UI.

Next Steps​