Skip to content
pubscout

vania

2.1.0, released 4 weeks ago by vdart.dev

A fast backend framework for Dart with routing, ORM, migrations, and middleware.

$ flutter pub add vania
Source repository

What it does

Vania runs an HTTP server, handles routing and middleware pipelines, and connects to an ORM, migrations, and validation system. It allows developers to build APIs and backend applications in Dart using a driver-agnostic database architecture.

AI-written summary of version 2.1.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to build a backend or API server in Dart.
  • You need an expressive framework with routing, ORM, and migrations out of the box.

Skip it when

  • You are building a client-side Flutter app that only consumes APIs.
  • You require a built-in database driver inside the core package rather than a separate driver.

Strengths

  • Batteries-included backend toolkit including routing, ORM, validation, and sessions.
  • Driver-agnostic database layer allows easy switching between MySQL, PostgreSQL, and MongoDB.
  • Fast performance and expressive syntax.

Weaknesses

  • Requires separate companion driver packages to interact with specific databases.
  • Ecosystem is smaller compared to Node.js or Go backend alternatives.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
8

Install vania_cli, run 'vania create project_name', and set up a database driver package.

import 'package:vania/http/response.dart';
import 'package:vania/route.dart';

Router.get('/health', () => Response.json({'status': 'ok'}));
Router.post('/users/{id}', userController.update).whereInt('id');

Alternatives

Packages that do the same job and could replace vania.

  • shelf

    Choose shelf if you want a lightweight, highly modular web server composition library rather than a full batteries-included framework.

Works with

Packages commonly used together with vania: ones it builds on, ones built on it, and its own family.