duxt 0.2.0 copy "duxt: ^0.2.0" to clipboard
duxt: ^0.2.0 copied to clipboard

A Nuxt-like meta-framework for Jaspr - file-based routing, layouts, middleware, scaffolding, and more.

Changelog #

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

0.2.0 - 2026-01-28 #

Changed #

  • Module-based architecture - Opinionated Rails-like structure
    lib/
    ├── posts/           # Module
    │   ├── pages/       # Routes: /posts, /posts/:id
    │   ├── components/  # Module components
    │   ├── model.dart   # Data model
    │   └── api.dart     # API calls
    ├── shared/          # Cross-module
    │   └── layouts/
    └── app.dart
    

Added #

  • Api class - Simple static HTTP client
    final posts = await Api.get('/posts');
    await Api.post('/posts', body: {'title': 'Hello'});
    
  • DuxtState mixin - SPA data loading with loading/error states
  • DuxtMultiState mixin - Multiple data sources
  • duxt g module <name> - Generate new module
  • duxt g layout <name> - Generate layout
  • duxt --version - Show version
  • Grouped help output

Removed #

  • duxt add command (merged into duxt g)
  • Old flat structure (lib/pages/, lib/components/, etc.)

Fixed #

  • Router generator now scans module-based structure
  • Scaffold generates proper module structure

0.1.1 - 2026-01-28 #

Fixed #

  • Updated installation instructions for pub.dev
  • Updated lints to 6.0.0

0.1.0 - 2026-01-28 #

Added #

  • Initial release

  • CLI Commands

    • duxt create - Create new Duxt project
    • duxt dev - Start development server with hot reload
    • duxt start - Start production server (auto-finds free port)
    • duxt build - Build for production
    • duxt generate - Generate static site
    • duxt g - Generate files with fields (model, page, component, api, middleware, composable)
    • duxt add - Add files without fields
    • duxt scaffold - Rails-like full CRUD generation
  • Project Structure

    • File-based routing from lib/pages/
    • Layouts system in lib/layouts/
    • Components in lib/components/
    • Models in lib/models/
    • API routes in server/api/
    • Middleware in middleware/
    • Composables in composables/
  • Runtime Features

    • DuxtPage - Base page class with layout, middleware, meta
    • DuxtLayout - Base layout class
    • DuxtMiddleware - Route middleware support
    • DuxtContext - Context for asyncData and middleware
    • Composables: UseState, UseFetch, UseAsyncData, UseRoute, UseRouter
  • API Handler

    • ApiHandler - Base class for API routes
    • ApiRequest / ApiResponse - Request/response handling
    • defineEventHandler - Nuxt-style event handler
    • Helper functions: readBody, getQuery, sendRedirect, etc.
  • Integrations

    • Jaspr ^0.22.1
    • Jaspr Router ^0.8.1
    • Tailwind CSS via jaspr_tailwind
3
likes
0
points
616
downloads

Publisher

verified publisherbase.al

Weekly Downloads

A Nuxt-like meta-framework for Jaspr - file-based routing, layouts, middleware, scaffolding, and more.

Repository (GitHub)
View/report issues

Topics

#web #framework #jaspr #nuxt #routing

License

unknown (license)

Dependencies

ansicolor, args, http, jaspr, path, shelf, shelf_static, watcher, yaml

More

Packages that depend on duxt