# Saltcorn

> Build web and mobile database apps without code

- Category: App UIs & Builders / Low-Code & No-Code Builders
- Language: JavaScript
- Repository: https://github.com/saltcorn/saltcorn
- Website: https://saltcorn.com
- Canonical page: https://ai-tldr.dev/tools/saltcorn/

## In short

Saltcorn is an open-source no-code builder for database applications. You define your data tables, then assemble pages from configurable views, datatypes, layouts, and actions to produce working web and mobile apps without writing application code. It sits in the Low-Code & No-Code Builders category of the App UIs & Builders tools and is open-source, written in JavaScript.

## Overview

Saltcorn is an open-source no-code builder for database applications. You define your data tables, then assemble pages from configurable views, datatypes, layouts, and actions to produce working web and mobile apps without writing application code.

It is aimed at people who want to build internal tools, admin panels, or small business apps but don't want to start from a blank backend. It runs on Node.js with PostgreSQL (or SQLite for quick local testing), and the whole platform is extensible through plugins.

Within the low-code / no-code category, Saltcorn focuses on self-hosting and data ownership. You can try a hosted multitenant instance, but the same codebase installs on your own virtual server, so you keep control of the application and the data it stores.

## What it does

- No-code app builder: compose apps from views, datatypes, layouts, and actions instead of hand-written code
- Builds both web and mobile database applications from the same definitions
- Self-hostable or available as a hosted multitenant instance at saltcorn.com
- Works with PostgreSQL for production and SQLite for quick local testing
- Extensible plugin system, plus a drag-and-drop layout editor (craft.js) and Blockly-based logic
- Multiple install paths: npm CLI, one-line Linux installer, and Docker Compose

## Getting started

The quickest way to try Saltcorn locally is the desktop install using the CLI with a SQLite database. You need Node.js 20+ and npm.

1. Install the Saltcorn CLI

   Set a local npm prefix and install the CLI package globally.

```bash
npm config set prefix ~/.local
npm install -g @saltcorn/cli
```

2. Initialize a SQLite database and start the server

   Point Saltcorn at a SQLite file, reset the schema, then start serving.

```bash
export SQLITE_FILEPATH=~/saltcorn.sqlite
.local/bin/saltcorn reset-schema -f
.local/bin/saltcorn serve
```

3. Open the app

   Visit http://localhost:3000/ in your browser to start building. To run it again later, re-run the export line followed by saltcorn serve.

4. Alternative: run with Docker Compose

   For quick local testing you can use the bundled example compose file instead of the CLI.

```bash
cd ./deploy/examples/test && docker-compose up -d
```

## When to use it

- Build internal tools and admin panels backed by a PostgreSQL database without writing backend code
- Create small business or web/mobile database apps by configuring views and actions
- Stand up a self-hosted, data-owned alternative to hosted no-code platforms on a small VPS
- Prototype a data-driven app quickly using the free hosted multitenant instance before self-hosting
