including required fields, email, length constraints, and numeric ranges A type-safe web framework for Gleam that brings functional programming elegance and developer productivity to web development.
Note: This repository contains the core code of the Glimr framework. If you want to build an application using Glimr, visit the main Glimr repository.
- Type-Safe Routing - Express-style routing with compile-time safety and route parameter extraction
- Middleware System - Composable middleware at the route and group level
- Middleware Groups - Separate handling for web and API routes with appropriate error responses
- Context System - Type-safe dependency injection throughout your application
- Form Validation - Built-in validation rules for common patterns
- Builder Pattern - Fluent, chainable API for defining routes
- Route Grouping - Group routes by middleware, path prefix, or name prefix
Add Glimr to your Gleam project:
gleam add glimrFor a complete application structure with controllers, middleware, and configuration, check out the Glimr starter project.
- Framework Repository - Core framework code
- Gleam Documentation - Learn Gleam
- Wisp Documentation - Web server library
Glimr is built on top of these excellent Gleam libraries:
- Wisp - The web server foundation that powers Glimr's HTTP handling
- gleam_http - HTTP types and utilities
- gleam_json - JSON encoding and decoding
- gleam_stdlib - Gleam's standard library
Special thanks to the Gleam community for building such an awesome ecosystem!
Contributions are welcome! Please feel free to submit a Pull Request.
The Glimr framework is open-sourced software licensed under the MIT license.
Glimr is inspired by Laravel and other modern web frameworks, adapted for Gleam's functional programming paradigm.