Utopia is a website generation framework which provides a robust set of tools to build highly complex dynamic websites. It uses the filesystem heavily for content and provides functions for interacting with files and directories as structure representing the website.
- Designed for both content-based websites and applications. Does not depend on a database.
- Supports flexible content localization based on industry recommendations.
- Built directly on
protocol-httpwith a small application and middleware interface. - Low latency and high throughput. Capable of 10,000+ requests/second out of the box.
Please see the project documentation for more details.
-
Getting Started - This guide explains how to set up a
utopiawebsite for local development and deployment. -
Middleware - This guide gives an overview of the different middleware used by Utopia.
-
Server Setup - This guide explains how to deploy a
utopiaweb application. -
Integrating with JavaScript - This guide explains how to integrate JavaScript into your Utopia application.
-
What is XNode? - This guide explains the
xnodeview layer and how it can be used to build efficient websites. -
Updating Utopia - This guide explains how to update existing
utopiawebsites.
Please see the project releases for all releases.
The 3.0.x series is considered a development release while the protocol HTTP application and controller interfaces stabilize.
- Breaking Require Ruby 3.3 or later.
- Breaking Replace the Rack-centric application boundary with
Utopia::ApplicationandProtocol::HTTP::Middleware. Applications now useconfig/application.rbandconfig/serve.rbinstead ofconfig.ru. - Breaking Separate complete protocol responses from semantic controller results. Use
respond!with aProtocol::HTTP::Response, orsucceed!with a value serialized byUtopia::Controller::Respond. - Parse request bodies at the controller layer using
protocol-content, independently of URL query parameters. - Resolve localization through immutable request preferences, avoiding repeated internal controller requests.
- Split redirection handling into focused middleware for rewrites, moved resources, directory indexes, and error documents.
- Security Fix handling of redirects that start with
//to prevent open redirect vulnerabilities. - Normalize request URLs using
Protocol::URLand use structured paths throughout the middleware stack. - Resolve static files through encoded URL paths, with improved
HEAD, range, and validator handling. - Use
protocol-mediaandprotocol-httpfor response and language negotiation, removing thehttp-acceptdependency.
- Add agent context.
- Better simplification of relative paths, e.g.
../../foois not modified tofoo. - Move top level classes into
class Middlewarein their respective namespaces. - Move
Utopia::ResponderintoUtopia::Controllerlayer.
- Minor compatibility fixes.
- Improved error logging using
Consolegem. - Only install
npm ls --productiondependencies intopublic/_components.
- XRB — Template and markup parsers, markup generation.
- Utopia::Gallery — A fast photo gallery based on libvips.
- Utopia::Project — A Ruby project documentation tool.
- Utopia::Analytics — Simple integration with Google Analytics.
- Samovar — Command line parser used by Utopia.
- Mapping — Provide structured conversions for web interfaces.
- Financier — A small business management platform.
- mail.oriontransfer.net - Mail server account management.
- www.codeotaku.com (source) — Personal website, blog.
We welcome contributions to this project.
- Fork it.
- Create your feature branch (
git checkout -b my-new-feature). - Commit your changes (
git commit -am 'Add some feature'). - Push to the branch (
git push origin my-new-feature). - Create new Pull Request.
To run the test suite:
bundle exec susTo make a new release:
bundle exec bake gem:release:patch # or minor or majorIn order to protect users of this project, we require all contributors to comply with the Developer Certificate of Origin. This ensures that all contributions are properly licensed and attributed.
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.