Skip to main content

Vania Framework Documentation

Vania is a server-side framework for Dart, built for developers who want an expressive, batteries-included backend with the performance and type safety of Dart. It covers the full spectrum of backend development: routing, ORM, migrations, authentication, real-time communication, caching, mail, and more.

Vania follows a modular architecture. The core package ships everything you need for a production API server. Optional packages extend it with database drivers, Redis, Elasticsearch, GraphQL, gRPC, Swagger, and WebSockets — install only what your project requires.


Table of Contents

Getting Started

Core Framework

Database & ORM

Packages

Project Architecture

Tutorials

Sample Walkthroughs

Guided tours of the runnable apps in the examples/ folder — start here if you learn best by reading working code.

Deployment


Requirements

  • Dart SDK >=3.9.0 <4.0.0
  • A database driver package if using the ORM (MySQL, PostgreSQL, or MongoDB)

Quick Start

# Install the CLI
dart pub global activate vania_cli

# Create a new project
vania create my_app

# Navigate and run
cd my_app
vania serve

Your server is now running at http://localhost:8000.

Package Overview

PackageDescriptionVersion
vaniaCore framework2.0.0
vania_authJWT authentication, guards, gates, personal access tokens1.0.0
vania_mysqlMySQL database driver1.0.0
vania_postgresqlPostgreSQL database driver1.0.0
vania_mongodbMongoDB database driver1.0.0
vania_redisRedis cache driver, pub/sub, Lua scripting1.0.0
vania_elasticsearchElasticsearch client with query builder1.0.0
vania_graphqlGraphQL server with subscriptions1.0.0
vania_grpcgRPC server and client1.0.0
vania_swaggerOpenAPI 3.0 documentation and Swagger UI1.0.0
vania_websocketWebSocket channels, presence, and broadcasting1.0.0
vania_cliCLI for scaffolding, serving, and migrations1.0.0