Web applications · One language · Open source

Web application platform for business systems

Describe data, business logic and forms in one language. The lsFusion web client renders reactive forms from these definitions, the server runs the logic and the database runs the queries, so you build neither a separate frontend nor a REST endpoint for every screen.

  • 1 codebasedata, logic and interface
  • Web + desktopthe same forms
  • LGPL v3free, no license keys
MyCompany · lsFusion web client
A lead kanban board in the web client of MyCompany, an application built on lsFusion
RX
Reactive formsvalues update without reloads
JS
Custom componentsyour own JavaScript and React views
A standard web stack underneath
  • ◇ HTML · CSS · JS
  • ◇ Tomcat
  • ◇ Java / JVM
  • ◇ PostgreSQL
  • ◇ Docker

Forms bound to data

One model from database to browser

In a typical web stack the same entity is described in the database schema, the ORM, the services, the API and the frontend state. In lsFusion it is described once: forms bind directly to properties, and the platform keeps the browser in sync.

FORM

Forms instead of a frontend codebase

A form declares its objects, properties, filters and actions, and the platform builds the web interface: tables, trees, panels and dialogs. The same form can be printed or exported to JSON, XML, CSV, XLS or DBF.

RX

Reactive by default

When a user changes data, every value calculated from it is updated in the open form at once. A user action usually takes one asynchronous request, and lost requests are resent and processed in the right order.

JS

Customizable when needed

Draw a list, a value or a whole part of a form with your own JavaScript or React component, restyle the interface with CSS or build a separate frontend on the HTTP API.

Three-tier web architecture

From .lsf modules to a web application

The application server runs on the JVM and holds all the business logic; the web server delivers the client to the browser; PostgreSQL stores the data and runs the queries. The client has no business logic of its own, so the same client serves any application.

  • ✓
    Native layout — components are laid out with CSS, in light and dark themes
  • ✓
    Mobile layout — on narrow screens the navigator turns into a menu
  • ✓
    Server-driven dialogs — an action can ask the user a question and continue with the answer
  • ✓
    Desktop client — the same forms, served by the same server
Explore lsFusion features →
Application stackOpen source end to end
WEB
Browserweb client: forms and navigator, no business logic
HTML · CSS · JS
HTTP
Web serverTomcat serves the client and the HTTP API
HTTP
LSF
lsFusion serverbusiness logic, sessions and events on the JVM
LGPL v3
DB
PostgreSQLdata, queries and ACID transactions
SQL
FORM orders 'Orders'
    OBJECTS o = Order
    PROPERTIES(o) number, date, total
;

NAVIGATOR {
    NEW orders;
}

Out of the box

Built-in views and tools of the web client

Standard views and user tools come with the platform, so a business screen does not start with picking a component library.

GRID

Tables and trees

Lists, flat and recursive trees, panels and tabs; large lists are read in portions.

PIVOT

Pivot tables and charts

The pivot view groups data, calculates totals and builds charts right in the browser.

CAL

Calendar and map

Objects with dates can be shown on a calendar, objects with coordinates on a map.

XLS

Excel-like editing

Group editing, copying to and pasting from Excel, saving or canceling changes.

FLT

User settings

Users add filters and sorting, rearrange columns and calculate sums in any table.

PDF

Print forms

Reports in PDF, DOCX, XLSX, HTML and other formats from the same form definitions.

API

HTTP API

Call actions and run lsFusion code over HTTP; JSON, XML and CSV in and out.

ROLE

Security and languages

Access by roles down to individual properties and actions, and interface localization.

i
Need something special? A list or a property can be rendered by your own JavaScript component — see the custom components how-to.

A standard engineering workflow

Write, review, build, open in a browser

Data, logic, forms and design are plain-text code in Git. There is no separate frontend project to build and version in step with the backend.

  • IntelliJ IDEA plugin with completion, usage search and a debugger
  • The web client, and desktop clients started via Java Web Start, update together with the web server
  • Installers for Windows and Linux, and Docker
IDE
Write.lsf modules in IntelliJ IDEA
GIT
Reviewplain-text diffs
JAR
Buildone artifact with your modules
WEB
Openbrowser, phone or desktop client
One codebaseno separate frontend

Less to build and keep in sync

A typical web stack and lsFusion

The point is not “no code”. It is how many layers you write by hand to show and change the same data.

LayerTypical web stacklsFusion
Data accessORM mappings, repositories and hand-tuned queriesProperties are compiled into optimized SQL
Client–server APIREST controllers and DTOs for every screenForms bind to properties directly; the HTTP API serves external systems and custom frontends
Client stateFetching, caching and syncing data in the browserThe server keeps the form state and sends the browser only the changes
ValidationThe same checks in the client, the services and the databaseGlobal constraints, checked by the platform
Reports and exportsSeparate libraries and templatesThe same forms are printed and exported

Get started

From the first form to a running application

The platform, the IDE plugin and the examples are free and open source.

  1. 01
    Try lsFusion onlineWrite and run lsFusion code in the browser, with nothing to install
    Online
  2. 02
    Install the platformInstallers for Windows and Linux set up OpenJDK, PostgreSQL and Tomcat; Docker is supported too
    Free
  3. 03
    Set up the IDEThe IntelliJ IDEA plugin: completion, usage search, debugger
    IDE
  4. 04
    Learn from examplesSmall ready-made applications explained step by step
    Docs
  5. 05
    Build a custom componentDraw a list with your own JavaScript component
    How-to

Web development questions

Before you build the first screen

Read the documentation

Do I need to write JavaScript or HTML?

Not for ordinary forms: the platform builds the web interface from the form declarations and their design. JavaScript is needed only for custom components, and CSS only for custom styling.

Can I build my own frontend, for example in React?

Yes. A separate frontend can work with the application over the HTTP API, exchanging JSON — see the frontend how-to. React components can also draw parts of the platform’s own web client — a form container, a table, a navigator window: see React views.

Does it work on phones?

Yes. The web client works in mobile browsers and switches to a mobile layout on narrow screens, where the navigator becomes a menu.

How many users can an application serve?

In production, lsFusion applications work with up to 10,000 concurrent users and 1 billion records out of the box: the platform compiles the logic into SQL queries and optimizes them.

How are applications deployed?

Installers for Windows and Linux set up the platform with OpenJDK, PostgreSQL and Tomcat, and Docker is supported as well. The web client, and desktop clients started via Java Web Start, are updated together with the web server; a desktop client installed with the Windows installer is updated manually.

Is there a desktop client?

Yes. The same forms also work in a Java desktop client, which users install from the login page or with an installer.

Is lsFusion free?

Yes. The platform is open source under LGPL v3, with no license keys and no fees per user or per server.

One language, the whole web application

Build the web application your business needs

Try the language online, open a running application or start with the documentation.