Lua on Beans

A new blazing fast MVC framework for Lua, redbean.dev

Welcome to Lua on Beans, a cutting-edge MVC framework designed for Lua and redbean.dev! This powerful yet lightweight framework combines the simplicity of Lua with the robustness of redbean.dev to deliver an exceptional development experience.

Key Features:

  • Blazing Fast Performance: Built on Lua and redbean.dev for optimal speed
  • Easy Deployment: Single-file distribution makes deployment a breeze
  • Scalability: Create complex applications with ease
  • Intuitive MVC Architecture: Organize your code efficiently
  • Extensive Documentation: Get started quickly with comprehensive guides

Whether you're building a simple website or a complex web application, Lua on Beans provides the tools and structure you need to bring your ideas to life. With its seamless integration of Lua's simplicity and redbean.dev's power, you'll be able to develop and deploy your projects faster than ever before.

Stay Tuned!

Exciting updates and new features are coming soon. Don't miss out on the latest developments in Lua on Beans!

Fully Functional, Ready for Documentation

We're excited to announce that Lua on Beans is now fully functional and ready for use! Our framework has been rigorously tested and optimized to ensure a smooth development experience. However, our journey doesn't end here – we're now focusing on creating comprehensive documentation to help you make the most of Lua on Beans.

Current Status

  • Core functionality complete and tested
  • Ready for real-world applications
  • Actively used in production environments
  • Continuous improvements and updates

Documentation Goals

  • Comprehensive API reference
  • Step-by-step tutorials for beginners
  • Best practices and advanced usage guides
  • Real-world examples and case studies

While we work on creating detailed documentation, we encourage you to explore Lua on Beans and provide feedback. Your input will be invaluable in shaping our documentation to best serve the community. Stay tuned for updates, and don't hesitate to reach out if you have any questions or suggestions!

Why We Chose redbean.dev

At the core of Lua on Beans lies redbean.dev, a remarkable web server that brings numerous advantages to our framework. Here's why we chose redbean.dev:

  • Single-file distribution: Simplifies deployment and reduces complexity
  • Embedded Lua support: Allows seamless integration with our Lua-based framework
  • High performance: Delivers exceptional speed for web applications
  • Cross-platform compatibility: Runs on various operating systems without modification
  • Built-in security features: Provides robust protection out of the box
  • Low resource consumption: Ideal for both small projects and large-scale applications

By leveraging redbean.dev, Lua on Beans inherits these powerful features, enabling developers to create efficient, secure, and easily deployable web applications. The synergy between Lua's simplicity and redbean.dev's capabilities forms the foundation of our framework's strength and flexibility.

Frontend Technologies: TailwindCSS and Riot.js

TailwindCSS

Lua on Beans leverages TailwindCSS for rapid and flexible UI development:

  • Utility-first approach for quick styling
  • Highly customizable design system
  • Responsive layouts with ease
  • Optimized production builds

Riot.js

We've integrated Riot.js for component-based frontend development:

  • Simple and lightweight component syntax
  • Seamless integration with Lua backend
  • Small learning curve for rapid development

In addition to TailwindCSS and Riot.js, Lua on Beans also supports HTMX out of the box:

  • Server-side rendering with dynamic updates
  • Smooth, JavaScript-free interactivity
  • Easy integration with Lua backend
  • Progressive enhancement for better accessibility

The combination of TailwindCSS and Riot.js empowers developers to create responsive, component-driven user interfaces that integrate smoothly with Lua on Beans' backend capabilities. This tech stack ensures a modern, efficient, and enjoyable development experience for both frontend and backend aspects of your web applications.

Supported Databases

Lua on Beans offers versatile database support, allowing developers to choose the best solution for their project needs:

ArangoDB

Multi-model database for document, graph, and key-value data.

ArangoDB Logo

Redis

In-memory data structure store, used as a database, cache, and message broker.

Redis Logo

SQLite

Lightweight, serverless, and self-contained SQL database engine.

SQLite Logo

SurrealDB

Multi-model database with support for document, graph, and relational data.

SurrealDB Logo

DB2REST

REST API provider for:

  • MongoDB
  • PostgreSQL
  • MySQL/MariaDB

PostgREST

REST API provider for PostgreSQL

PostgREST Logo

This wide range of database options ensures that Lua on Beans can adapt to various project requirements, from simple applications to complex, data-intensive systems.

Built-in Features

Lua on Beans comes packed with powerful features to accelerate your development:

  • Two-Factor Authentication (2FA): Enhance security with built-in Google Authenticator TOTP support.
  • Dynamic Views with eTLua: Create flexible and efficient templates using embedded Lua.
  • Scalable Routing: Handle millions of route definitions effortlessly for large-scale applications.
  • Automatic Swagger Documentation: Generate API documentation automatically based on comments before actions.
  • Easy REST API Creation: Quickly build and deploy RESTful APIs with minimal configuration.
  • PDF Generation: Generate PDF documents with Lua.

These features are designed to streamline your development process, enhance security, and improve the overall quality of your applications.

Open Source and Community-Driven

Lua on Beans is an open-source project, and we believe in the power of community collaboration. We welcome contributions, feedback, and ideas from developers around the world.

Visit our GitHub repository to explore the code, report issues, or contribute to the project:

Lua on Beans on GitHub

By participating in the Lua on Beans community, you can help shape the future of this framework and contribute to its growth. Whether you're a seasoned developer or just starting out, your input is valuable to us!