LTF Engine is a web app generator
Build an app with database, automations, and more... all in a JSON file. LTF Engine is a web app generator that allows you to create web apps with a simple and intuitive schema. It runs on Bun. It is designed to be used by non-technical users to create web apps.
1. Install Bun
Follow the installation guide to install Bun.
2. Create a new project from our template
bun create latechforce/engine-template my-app
3. Configure the app schema
import App, { type AppSchema } from '@latechforce/engine'
const schema: AppSchema = {
name: 'My app',
automations: [
{
name: 'get-message',
trigger: {
service: 'http',
event: 'get',
path: '/message',
},
actions: [
{
service: 'code',
action: 'run-typescript',
name: 'reply-message',
code: String(function () {
return { message: 'Hello, world!' }
}),
},
],
},
],
}
await new App().start(schema)
4. Run the app
bun dev
5. Enjoy!
curl http://localhost:3000/api/automations/message
{"message":"Hello, world!"}
Learn by example
A collection of code samples and walkthroughs for configuring and using LTF Engine.
Automation
Run TypeScript code action
Trigger an automation with a cron time
Trigger an automation with an HTTP POST request with request body and respond immediately
Trigger an automation with an HTTP POST request
Trigger an automation with an HTTP POST request and respond immediately
Trigger an automation with an HTTP POST request with request body
Trigger an automation with an HTTP GET request
Trigger an automation with an HTTP GET request and respond immediately
Trigger an automation when a record is updated
Trigger an automation when a record is created
Respond to an HTTP request with a static body
Respond to an HTTP request
Respond to an HTTP request with a dynamic body
Create record action
Run TypeScript code action with input data
Run TypeScript code action with log
Run TypeScript code action
Run TypeScript code action with externals
Run JavaScript code action with input data
Run JavaScript code action with log
Run JavaScript code action
Run JavaScript code action with externals
Form
Display a form
Display a form
Display a form with an phone number field
Display a form with a long text field
Display a form with a single line text field
Trigger an automation when a form with a single line text input is submitted
Display a form with an email field
Display a form with an url field
Display a form with a checkbox field
Display a form with a single select field
Display a form with a single attachment field
Display a form
Table
Configure a table with a phone number field
Configure a table with a long text field
Configure a table with a single line text field
Configure a table with a email field
Configure a table with a URL field
Configure a table with a checkbox field
Configure a table with a single select field
Configure multiple tables
Configure a table with required fields