dart_admin 0.1.0 copy "dart_admin: ^0.1.0" to clipboard
dart_admin: ^0.1.0 copied to clipboard

A Django-inspired extensible Admin Dashboard for Dart backend frameworks (Shelf, Dart Frog, Serverpod).

Changelog #

All notable changes to dart_admin will be documented in this file.

0.1.0 Initial Release #

Core & Domain Architecture #

  • Framework-agnostic AdminSite central registry for managing resources, auth providers, session managers, and audit logging.
  • AdminResource<T> schema definition with support for listDisplay, searchFields, listFilters, defaultSortBy, custom actions, and permission gates (canView, canAdd, canChange, canDelete).
  • Comprehensive AdminField and AdminFieldType system supporting 11 field types (text, textarea, integer, number, boolean, email, password, enumeration, date, dateTime, url) with validation, coercion, and formatting.
  • AdminAdapter<T> abstraction and reference InMemoryAdapter<T> implementation.

SQLite ORM & Automatic Migrations #

  • SqlQueryBuilder parameterized query engine for SELECT, COUNT, WHERE, LIKE, IN, ORDER BY, LIMIT, and OFFSET.
  • SqliteOrmAdapter<T> with automated table generation and automatic schema synchronization (syncTableSchema()) via ALTER TABLE ... ADD COLUMN when new model fields are added.

Persistent Authentication & Security #

  • SqliteAuthProvider storing admin credentials in SQLite (_admin_users) with salted SHA-256 password hashing and auto-seeding.
  • SessionManager issuing HMAC-SHA256 signed session cookies with configurable time-to-live and revocation tracking.
  • Wildcard permission system supporting *.*, resource.*, and resource.action checks.

Audit Trails #

  • SqliteAuditLogger tracking create, update, delete, and bulk action operations into _admin_audit_logs.

Modern UI Engine & HTTP Router #

  • Zero-frontend-build-step server-rendered responsive HTML/CSS/JS engine.
  • Dark & Light mode toggle with persistent local storage state.
  • Live search, multi-field filters, column sorting, pagination, and bulk selection checkboxes.
  • Standardized REST JSON API (/api/{resource}) for every registered model.

Framework Adapters & Examples #

  • Native Shelf adapter (adminSite.toShelfHandler()).
  • Native Dart Frog adapter (adminSite.toDartFrogAdapter()).
  • Native Serverpod and dart:io adapter (adminSite.handleHttpRequest(request)).
  • Complete runnable example applications for Shelf, Dart Frog, and Serverpod with both regular application APIs and admin dashboards.
0
likes
160
points
33
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Django-inspired extensible Admin Dashboard for Dart backend frameworks (Shelf, Dart Frog, Serverpod).

Repository (GitHub)
View/report issues

Topics

#admin #dashboard #shelf #serverpod #dart-frog

License

MIT (license)

Dependencies

crypto, meta, shelf, sqflite_common, sqflite_common_ffi

More

Packages that depend on dart_admin