Marten 0.4 has been officially released!

Marten 0.4 has been officially released! :rocket: :tada:

Marten is a Crystal web framework that makes building web applications easy, productive, and fun. The latest 0.4 release of the framework introduces new and long-awaited features such as generators, facilitating the creation of abstractions and structures within projects while following best practices. Additionally, the release also introduces a plethora of advancements such multi-table inheritance, new schema handler callbacks, and the ability to define URL and slug fields in models and schemas. This update is a major step forward, making web development with Marten more user-friendly and feature-rich. You can check out the full changelog for a comprehensive overview of all the new features and changes included in this release. Last but not least, the 0.4 release is also accompanied by a RealWorld demo project to demonstrate a fully-fledged fullstack application built with the framework.

Marten 0.3 has been officially released!

Marten 0.3 has been officially released! 🚀

TL;DR

Marten is a Crystal web framework that makes building web applications easy, productive, and fun. The latest 0.3 release of the framework introduces significant enhancements, such as streaming capabilities, caching, JSON fields, duration fields, and more. You can check out the full changelog for a comprehensive overview of all the new features and changes included in this release.

Main new features and highlights

  • Caching - Marten now lets you interact with a global cache store that allows interacting with an underlying cache system and performing basic operations such as fetching cached entries, writing new entries, etc. Marten's caching leverages a cache store mechanism and other third-party stores can be installed depending on your caching requirements (eg. Memcached, Redis).
  • Streaming - It is now possible to generate streaming responses as part of handlers.
  • JSON fields for models and schemas - Marten now provides the ability to define json fields in models and schemas. These fields allow you to easily persist valid JSON structures (including JSON::Serializable objects) to the database.
  • Duration fields for models and schemas - It is now possible to define duration fields in models and schemas. These fields allow you to easily persist valid durations (that map to Time::Span objects in Crystal) in your models but also to expect valid durations in data validated through the use of schemas.
  • Deployment guides - New deployment guides were added for deploying Marten projects on Heroku and Fly.io

What’s next?

The Marten framework is in its early stages, and I'm actively seeking feedback from individuals interested in experimenting with it or utilizing it in their projects. If you find a bug or if you want to contribute and share ideas regarding the framework, don’t hesitate to open an issue/discussion in the project’s issue tracker on GitHub or chat with us in our Discord. Any help will be greatly appreciated!

If you are new to Marten, here are a few ideas on how you can get started: