Torchbear gives you power of Rust with the simplicity of Lua. You can use it for web automation, embedded programming, data anlysis, and anything else you can imagine.
Note: You don't need to learn Rust to use Torchbear.
Built-in Tools
- rlua completely safe Lua 5.3.5 with traceback error messages
- Actix Web HTTP/1.x and HTTP/2.0 web servers and clients
- Tera Jinja template rendering
- Comrak Markdown to HTML outputting
- Libsodium cryptographic signing and verifying, and encrypting and decrypting
std::fs::*
filesystem operationsstd::collections::HashSet
set-theoretic operations- Serde YAML and JSON serializing/deserializing
- UUID-rs UUID generation and verification
- Chrono time/date generation and verification
- Select-rs HTML scraping
- Git repo creation, staging, committing, and log access
- Tantivy schema building, document adding/updating/deleting, and searching
- regex matching and replacing
- MIME type guessing
- Heck case conversions
Installation
Torchbear comes as a single executable, making it very easy to install. The latest version is available on Torchbear's GitHub releases page, so you can download the zip file for your operating system and hardware architecture and unzip the executable wherever is most convenient for you. To make it simpler, you can use our install script by copying and pasting this line into your terminal, then just running torchbear
or torchbear.exe
in any of your apps:
|
What is a terminal?
If you haven't heard of a terminal before, here's a 1 min intro to what is a terminal window. On Windows, Android, and MacOS, we've tested with these tools that make a very nice user experience.
Windows: install Cmder Full.
Android: install Termux.
MacOS: comes mostly ready, but Homebrew has additional tools.
Examples
Hello World App
- in
init.lua
print("hello from Torchbear")
- run
torchbear
Torchbear Simple Webserver · also supports TLS
Lighttouch Application Framework · 👍 web development 👍
File Witness · code signing app
Lua Module Map · Lua diagram code visualization
Contributions wanted
Torchbear extends Rust's growing ecosystem of libraries. Developers are welcomed to make small changes as well as high impact contributions, like adding bindings. There are many examples to learn from in the bindings directory, each with an interesting history. You'll learn a Rust library's API inside and out, and you'll put another tool into the hands of a growing userbase.