An open API service indexing awesome lists of open source software.

https://github.com/vsimakhin/web-logbook

EASA Web Pilot Logbook
https://github.com/vsimakhin/web-logbook

digital easa electronic fcl050 free go golang logbook opensource pdf pilot

Last synced: 26 days ago
JSON representation

EASA Web Pilot Logbook

Awesome Lists containing this project

README

          

[![GitHub Release](https://img.shields.io/github/v/release/vsimakhin/web-logbook)](https://github.com/vsimakhin/web-logbook/releases)
[![GitHub Downloads](https://img.shields.io/github/downloads/vsimakhin/web-logbook/total?label=all%20downloads)](https://github.com/vsimakhin/web-logbook/releases)
[![Docker Pulls](https://img.shields.io/docker/pulls/vsimakhin/web-logbook)](https://hub.docker.com/r/vsimakhin/web-logbook)
[![Docker Image Size](https://img.shields.io/docker/image-size/vsimakhin/web-logbook)](https://hub.docker.com/r/vsimakhin/web-logbook)

# Web-logbook

Web-logbook is a simple, free and open-source EASA-style logbook application written in Go and React.

It lets you record and manage flight records, track licenses and certifications, visualize flights on a map, attach documents, and export a fully formatted EASA-style PDF logbook you can print, sign, and use as a regular paper logbook.

The application is a single binary and stores data locally using SQLite by default.

![EASA Logbook](./readme-assets/logbook.png)

Why this project? Web-logbook was created to provide a simple, self-hosted logbook that follows EASA-style formatting while keeping full control of your data. Web-logbook runs locally and does not require a subscription or external services. Built by pilots for pilots.

---

## Quick Start

- Download the latest release and run the binary
- Then open your browser and type `http://localhost:4000`
- Voilà! You have your logbook ready to use!

The application will automatically create a local SQLite database on the first start.

---

# Table of Contents

- [Features](#features)
- [Changelog](#changelog)
- [Usage](#usage)
- [Docker & Kubernetes](#docker--kubernetes)
- [CLI options](#cli-options)
- [Supported Operating Systems and Requirements](#supported-operating-systems-and-requirements)
- [Interface](#interface)
- [Airports Databases](#airports-databases)
- [Advanced Configuration](#advanced-configuration)
- [API](#api)
- [Contributing / New features / Issues](#contributing--new-features--issues)
- [Contributors](#contributors)
- [Tech stack](#tech-stack)
- [License](#license)

---

# Features

- EASA-style flight logbook
- Export logbook to PDF (A4 and A5 formats)
- Flight map with route visualization
- Automatic night-time calculation
- Aircraft, airports, and persons management
- License and certification tracking
- CSV import and export
- Attachments for flight records
- Custom user-defined fields
- Dashboard statistics and currency tracking

---

# Changelog

## [4.6.0] - 26.06.2026

- Update: Golang and npm packages/security patches.
- New: Added support for tracking previous flight experience on the Settings page. Entered flight experience is automatically included in Logbook totals, Dashboard statistics, and PDF exports.

## [4.5.1] - 22.05.2026

- Fix: Download map functionality didn't work for satellite and terrain maps.
- Update: Golang (1.25.10) modules/security patches.

## [4.5.0] - 20.05.2026

- New: New map options and map sources (satellite, terrain).
- Update: Golang and npm packages/security patches.

## [4.4.0] - 12.05.2026

- Fix: Remarks were not displayed in the licensing table.
- New: Populate PIC Name field with names already used in logbook.
- Update: Golang and npm packages/security patches.

## [4.3.0] - 03.05.2026

- Update: Golang and npm packages/security patches.
- Update: Improved import log message, added how many records were imported and how many were failed/skipped.
- Update: Custom PDF logbook headers containing newlines (\n) are now split into multiple lines.

The full changelog is [here](https://github.com/vsimakhin/web-logbook/blob/main/CHANGELOG.md)

## Old v3.x version
If you still would like to use v3.x version:
* Latest v3 release https://github.com/vsimakhin/web-logbook/releases/tag/v3.23.0
* Docker `docker pull vsimakhin/web-logbook:v3.23.0`

---

# Usage

## Local installation

You can clone the repo and compile the binaries yourself, or just download the latest ones for your operating system from the [releases](https://github.com/vsimakhin/web-logbook/releases).

1. Download the latest release from https://github.com/vsimakhin/web-logbook/releases
2. Extract the archive to a directory of your choice
3. Start the application
* Windows:
* Double-click on the `web-logbook.exe`.
* Linux/macOS:
* Open a terminal and navigate to the directory
* Run `./web-logbook` or double-click on the `web-logbook` file.
4. Open your browser, type http://localhost:4000 and the application is ready to use
5. To close the application, press `Ctrl+C` in the terminal window or just close it

**Note**: Windows and macOS may display a security warning because the binary is not digitally signed. You can safely allow it to run.

## Docker & Kubernetes

For a quick start using Docker:
```sh
docker run -p 4000:4000 vsimakhin/web-logbook:latest
```
Check the [readme](./docker/README.md) for more details and Kubernetes deployment.

## CLI options
```sh
$ ./web-logbook -h
-cert string
certificate path (default "certs/localhost.pem")
-disable-authentication
Disable authentication (in case you forgot login credentials)
-dsn string
Data source name {sqlite: file path|mysql: user:password@protocol(address)/dbname?param=value} (default "web-logbook.sql")
-enable-https
Enable TLS/HTTPS
-engine string
Database engine {sqlite|mysql} (default "sqlite")
-env string
Environment {dev|prod} (default "prod")
-key string
private key path (default "certs/localhost-key.pem")
-port int
Server port (default 4000)
-url string
Server URL (default empty - the app will listen on all network interfaces)
-version
Prints current version
```

---

# Supported Operating Systems

Since the application is written in Go, it can run on any operating system after compiling the source code.

Prebuilt [binaries](https://github.com/vsimakhin/web-logbook/releases/latest) are available for Linux, macOS and Windows for x86_64 and ARM architectures.

You can access the application using any modern browser with JavaScript enabled.

---

# Interface

## Logbook
- Flight records table with filter for all fields and global search through all data
- Customizable columns
- Quick export to CSV
- Export to PDF (A4, A5) formats
- Automatic totals and subtotals calculation

![EASA Logbook](./readme-assets/logbook.png)

- Dark mode and mobile friendly

![EASA Logbook dark mode](./readme-assets/dark-mode.png)
![EASA Logbook mobile](./readme-assets/mobile-friendly.png)

## Flight Records
- Flight record details
- Attachments
- Automatic night-time calculation
- Custom/user defined fields
- Flight map
- KML and GPX track attachments support for SkyDemon and FlightRadar24 (check this tool [fr24-kml-splitter](https://github.com/morremeyer/fr24-kml-splitter) for flightradar24 tracks)
- Persons tracking
- Instructor/Examiner signature

![Flight record](./readme-assets/flight-record.png)

## Licensing & Certification
- Licenses and certificates
- Document attachments and preview
- Expiration tracking

![Licensing & Certification](./readme-assets/licensing-record.png)

## Map
- Flight map
- Date filters
- Routes and airports filters
- Aircraft filters
- Basic statistics

![Map of the flights](./readme-assets/map-example.png)

## Aircrafts
- Aircraft list
- Types
- Custom categories

![Aircraft](./readme-assets/aircrafts.png)

## Airports
- Airport database
- Custom airports
- Filters

![Airports](./readme-assets/airports.png)

## Persons
- Persons list for the recorded flight records
- Flight list for each person
- Custom user defined roles (Captain, First officer, Crew etc)

## Stats
- Dashboard statistics
- Statistics by year, type, and category
- Custom field support

![Dashboard](./readme-assets/dashboard.png)
![Stats](./readme-assets/stats-by-category.png)

## Currency
- Tracking currency and flight experience
- Different time frames: days, calendar months, calendar years, since date and all time

![Currency](./readme-assets/currency.png)

## Export
- Export to EASA PDF format (A4 and A5)
- PDF export formats with custom title pages (for example, include your CV automatically)
- Adjustable settings for each export format
- Instructor/Examiner signatures also included in the PDF export

![Export](./readme-assets/export.png)

### A4
![Export to PDF](./readme-assets/export-a4.png)

### A5
![Export to PDF](./readme-assets/export-a5-a.png)
![Export to PDF](./readme-assets/export-a5-b.png)

So in real life the logbook could look like
![Pilot logbook](./readme-assets/logbook_irl.jpg)

## Import
- CSV support
- Predefined formats
- WebLogbook
- Leon application (via export to CrewLounge link)
- Custom formats

## Settings
- Owner name, license and address, signature for the PDF exports
- Signature pad to automatically include signatures to the PDF exports
- Enable/Disable authentication (in case you need to expose the app to the public internet)
- Some interface settings
- Custom names for the standard flight record fields
- Custom fields for the Flight record

![Settings](./readme-assets/settings.png)

---

# Airports Databases

The app supports 3 sources:
- https://github.com/mwgg/Airports/raw/master/airports.json - main JSON database of 28k+ airports.
- (default) https://github.com/vsimakhin/Airports/raw/master/airports.json - my local fork of the main JSON database, to ensure that the app remains functional even if there are any breaking changes in the upstream.
- https://davidmegginson.github.io/ourairports-data/airports.csv - an alternate set of airports from https://ourairports.com/, which contains over 78k records, including small airfields and heliports.

If you enable the `No ICAO codes filter` option, the app will ignore ICAO airport codes that contain numbers and dashes, which are not commonly used ICAO codes. By default, this option is unchecked, which makes the database slightly smaller and cleaner.

---

# Advanced Configuration

## HTTPS enable

You can generate your own certificate and key and store it in the different directories in your operating system. For that use `--key` and `--cert` parameters to specify the exact location and run the app with `--enable-https` flag.

## MySQL database

**Disclaimer**: the main development is based on SQLite engine, so MySQL can potentially have some bugs. If you find one, please report in the issues.

To store all data, you can use MySQL database. To get started, create a database and a user with access to it. On the first run, the application will create all necessary tables and views. If you want to migrate your data from SQLite to MySQL, you can use the export to CSV function first and then import from CSV.

The DSN format for MySQL connections
```
user:password@protocol(address)/dbname?param=value
```

For example,
```
./web-logbook -engine mysql -dsn "web-logbook-user:pwd@tcp(192.168.0.222)/web-logbook"
```

## API

The backend exposes a REST (sort of) API for access to all logbook functionality. You can find the full list of the endpoints here https://github.com/vsimakhin/web-logbook/blob/main/app/routes.go#L26

### Authentication

If authentication is enabled you need to use Bearer token

```bash
# get token
TOKEN=$(curl -s -X POST http://127.0.0.1:4000/api/login -H "Content-Type: application/json" -d '{"login": "login", "password": "password"}' | jq -r '.token')

# run request
curl http://127.0.0.1:4000/api/export/A4 -H "Authorization: Bearer $TOKEN" --output logbook.pdf
```

PowerShell for Windows (generated by ChatGPT)
```powershell
$response = Invoke-RestMethod -Uri "http://127.0.0.1:4000/api/login" `
-Method POST `
-Headers @{ "Content-Type" = "application/json" } `
-Body '{"login": "login", "password": "password"}'

$token = $response.token

Invoke-WebRequest -Uri "http://127.0.0.1:4000/api/export/A4" `
-Headers @{ "Authorization" = "Bearer $token" } `
-OutFile "logbook.pdf"
```

### API examples

Download PDF A4 logbook
```bash
curl http://127.0.0.1:4000/api/export/A4 --output logbook.pdf
```

Get distance between LKPR and EDDM airports in nautical miles
```bash
curl http://127.0.0.1:4000/api/distance/LKPR/EDDM
```

Get night time in minutes for the flight from LKPR departed at 1600 UTC to the EDDM with arrival at 2012 UTC on 27/09/2025
```bash
curl -s -X POST http://localhost:4000/api/logbook/night \
-H "Content-Type: application/json" \
-d '{
"date": "27/09/2025",
"departure": {
"place": "LKPR",
"time": "1600"
},
"arrival": {
"place": "EDDM",
"time": "2012"
}
}' | jq -r '.data'
```

---

# Contributing / New features / Issues

In case you'd like to add some other features to the logbook or you found a bug, please open an "issue" here https://github.com/vsimakhin/web-logbook/issues with a description. I cannot promise I'll implement it or fix it at a reasonable time but at least I can take a look.

---

# Contributors

Thanks for bug reports, testing, improvements, and features suggestions:


Jacopx
dimoniet
maesteve
ken340
morremeyer
bbqman7089
danielkappelle
jvandergeer
eagleone84
daman2k
fldroiddev
benoitfl
Gaudv
tumblebone
marostegui
xtncl
leapparence
fuelflo
chrp90
machullamanuel-cmyk
AngusBell97
pedroponte
benbox69
WildBlueUK
Muchacho08
mattswainston

--

# Tech stack

Backend:
* go-pdf https://codeberg.org/go-pdf/fpdf
* chi web-server https://github.com/go-chi/chi
* go-solar https://github.com/mstephenholl/go-solar
* sqlite https://modernc.org/sqlite
* mysql https://github.com/go-sql-driver/mysql
* golang-jwt https://github.com/golang-jwt/jwt/
* testify https://github.com/stretchr/testify

Frontend:
* ViteJS https://vite.dev/
* React https://react.dev/
* Material UI https://mui.com/material-ui/
* Openlayers https://openlayers.org/
* dayjs https://github.com/iamkun/dayjs
* TanStack Query https://tanstack.com/query/
* export-to-csv https://github.com/alexcaza/export-to-csv
* Signature Pad https://github.com/szimek/signature_pad
* PapaParse https://github.com/mholt/PapaParse
* compare-versions https://github.com/omichelsen/compare-versions
* file-type https://github.com/sindresorhus/file-type
* mapbox/togeojson https://github.com/mapbox/togeojson

Map Sources:
* OpenStreetMap https://www.openstreetmap.org/
* Esri/ArcGIS Online https://www.arcgis.com/

---

# Star History

[![Star History Chart](https://api.star-history.com/svg?repos=vsimakhin/web-logbook&type=Date)](https://www.star-history.com/#vsimakhin/web-logbook&Date)

---

# License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.