On this page

Introduction

Baseport is a single executable with an embedded SQLite database; no separate database server is required. Tables are defined in the admin console. A published table gets a REST API, live updates over Server-Sent Events, and optional public forms.

WARNING

Baseport is pre-alpha. The database format and the API surface change between commits. Do not store production data in it yet.

Install and start ​

sh
curl -sSL https://raw.githubusercontent.com/melosso/baseport/main/Scripts/install.sh | bash
powershell
iwr https://raw.githubusercontent.com/melosso/baseport/main/Scripts/install.ps1 | iex
yaml
services:
  baseport:
    image: ghcr.io/melosso/baseport:latest
    container_name: baseport
    restart: unless-stopped
    ports:
      - "5000:5000"
    volumes:
      - baseport-data:/data

volumes:
  baseport-data:

Releases ship linux-x64 and win-x64 builds.

The first start writes an admin username and a one-time password to the log; baseport logs prints both again. Sign in at http://localhost:5000/_/admin. The one-time password must be replaced before the console loads.

--urls http://localhost:5000 binds loopback only. 0.0.0.0 binds every interface.

Baseport serves plain HTTP. An instance reachable from other machines belongs behind a TLS-terminating reverse proxy; see Going to production.

The baseport command ​

The installer adds a baseport wrapper to the PATH for status, logs, updates and service control. See Command line.

Addresses ​

Surface Address Access
Admin console /_/admin Operators, session cookie
REST API /api/v1/{apiName}/records Anything with a bearer token
End user sign-in /auth and /api/auth/v1 Application users. Off by default
Forms /f/{formId} and /embed.js Anyone, per published form
OpenAPI document /api/openapi.json Anonymous

Files on disk ​

Baseport writes everything to its working directory. A backup covers the whole directory, not only the database:

File Contents
baseport.db Schema, records, accounts and settings
baseport.key The ES256 key that signs auth tokens, readable only by the owner
log/ Rolling log files
uploads/ Files uploaded through forms or the API
backups/ Database snapshots

DANGER

Losing baseport.key invalidates every issued token. All users must sign in again.

Next ​

Last updated: 2026-11-03