Skip to main content

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

index.ts
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