dart_admin 0.1.0
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
AdminSitecentral registry for managing resources, auth providers, session managers, and audit logging. AdminResource<T>schema definition with support forlistDisplay,searchFields,listFilters,defaultSortBy, custom actions, and permission gates (canView,canAdd,canChange,canDelete).- Comprehensive
AdminFieldandAdminFieldTypesystem supporting 11 field types (text,textarea,integer,number,boolean,email,password,enumeration,date,dateTime,url) with validation, coercion, and formatting. AdminAdapter<T>abstraction and referenceInMemoryAdapter<T>implementation.
SQLite ORM & Automatic Migrations #
SqlQueryBuilderparameterized query engine forSELECT,COUNT,WHERE,LIKE,IN,ORDER BY,LIMIT, andOFFSET.SqliteOrmAdapter<T>with automated table generation and automatic schema synchronization (syncTableSchema()) viaALTER TABLE ... ADD COLUMNwhen new model fields are added.
Persistent Authentication & Security #
SqliteAuthProviderstoring admin credentials in SQLite (_admin_users) with salted SHA-256 password hashing and auto-seeding.SessionManagerissuing HMAC-SHA256 signed session cookies with configurable time-to-live and revocation tracking.- Wildcard permission system supporting
*.*,resource.*, andresource.actionchecks.
Audit Trails #
SqliteAuditLoggertracking 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
Shelfadapter (adminSite.toShelfHandler()). - Native
Dart Frogadapter (adminSite.toDartFrogAdapter()). - Native
Serverpodanddart:ioadapter (adminSite.handleHttpRequest(request)). - Complete runnable example applications for Shelf, Dart Frog, and Serverpod with both regular application APIs and admin dashboards.