Skip to content
melossoPublic

About

A lightweight database export service, ready for your destination. Simple. Fast. Reliable.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

〰️ Reef

License Latest Release Last commit

Reef is a low-code web platform built to orchestrate your data workflows. Query databases, transform payloads, and deliver files to any destination from a single dashboard. Effortlessly manage connections, export profiles, and automated schedules with zero scripting required.

Reef profile canvas with a query, transform and destination step

What is Reef?

Reef automates data exports, integration pipelines, and background synchronizations all from an intuitive interface. Query databases using native SQL, transform outputs with optional Scriban templates, and generate raw data or formatted documents directly through your browser.

Important

Reef has not reached a stable release, yet. While stable for production use, expect breaking changes during updates.

Key Capabilities

  • Database Connections: Connect natively to PostgreSQL, MySQL, or SQL Server with reusable connection profiles.
  • Formats & Documents: Export directly to JSON, XML, CSV, or YAML, or generate paginated PDF and DOCX files for invoices and reports.
  • Destinations: Deliver files to local storage, FTP/SFTP, AWS S3, Azure Blob, HTTP webhooks, SMB, or email.
  • Automation: Trigger jobs via cron expressions, fixed time intervals, or incoming webhooks.
  • Security & Observability: Includes credential encryption, JWT authentication, record validation, and complete execution history logging.

Set up low-code export workflows in minutes using standard database queries and clean, lightweight tools.


Getting Started

The fastest way to get Reef running, is by using Docker:

Docker Compose (Recommended)

services:
  reef:
    container_name: reef
    image: ghcr.io/melosso/reef:latest
    ports:
      - "8085:8085"
    volumes:
      - reef_core:/app/.core
      - reef_logs:/app/log
      - reef_db:/app/data
      - ./exports:/app/exports
    environment:
      - ENCRYPTION_KEY=YourKeyHere
      - DATABASE_PATH=/app/data/Reef.db
      #- KNOWN_NETWORKS=172.16.0.0/12

volumes:
  reef_core:
  reef_logs:
  reef_db:
mkdir -p exports && docker compose up -d

Every setting under Reef in appsettings.json takes a short environment variable name, such as DATABASE_PATH, JWT_SECRET_KEY or JOBS_MAX_CONCURRENT_JOBS. A REEF_ prefix (REEF_DATABASE_PATH) wins over the bare name, and lists such as ALLOWED_ORIGINS take comma separated values. Reef__DatabasePath style names still work and log a deprecation warning.

Behind a reverse proxy, set KNOWN_PROXIES (addresses) or KNOWN_NETWORKS (CIDR, such as 172.16.0.0/12 for Docker networks) so Reef reads the client address from X-Forwarded-For. Without them the header is ignored, which keeps sign-in throttling from being bypassed with a spoofed header.

Access at http://localhost:8085

The first start creates an admin account admin-<random>@reef.local with a one-time password (printed to the logs).

DetailsHow to install on Windows

Windows Installation

Download the latest release from Releases.

  1. Install .NET 11 Runtime:
   winget install --id Microsoft.DotNet.Runtime.10 -e
  1. Set encryption key:
   $bytes = New-Object byte[] 48; [Security.Cryptography.RandomNumberGenerator]::Create().GetBytes($bytes); [Environment]::SetEnvironmentVariable("REEF_ENCRYPTION_KEY", [Convert]::ToBase64String($bytes), "Machine")
  1. Install service:
   .\Reef.bat install
   .\Reef.bat start
  1. Open browser → http://localhost:8085

Sign in with the admin account from the first-start log. Reef asks for a new password at the first sign-in.


How It Works

You can centralize your database credentials easily; create one connection for many profiles. You can tag these profiles by assigning a Group to them. Then, create an export definition by creating a Profile that'll be assigned a destination and you'll be ready.

DetailsMultiple destinations

We support various destinations:

  • Local filesystem: with date/profile variables
  • FTP/SFTP: with SSL and passive mode
  • Cloud storage: AWS S3, Azure Blob
  • HTTP endpoints: POST to REST APIs
  • SMB shares: Windows network drives
  • E-mail: various SMTP providers supported
DetailsCustom Templates

Use Scriban for advanced transformations. If you're interested in more examples, make sure to checkout our Examples/ folder.

{
  "export_date": "{{ date.now }}",
  "records": [
    {{~ for row in rows ~}}
    { "id": {{ row.ID }}, "name": "{{ row.Name }}" }
    {{~ end ~}}
  ]
}
DetailsDocument Generation

Reef includes built-in document generation capabilities for creating professional PDF and DOCX documents directly from your query results:

Features:

  • PDF & DOCX Support: Generate paginated documents with automatic page numbering
  • Multi-page Documents: Headers and footers repeat on every page automatically
  • Scriban Data Binding: Full template syntax support within documents
  • Flexible Layouts: Control page size (A4/Letter/Legal), orientation, margins
  • Document Options: Watermarks, custom page numbering formats

Example Invoice Template:

{{! format: pdf }}
{{! pageSize: A4 }}
{{! orientation: Portrait }}

{{# header }}
<div style="text-align: center; font-weight: bold;">
  {{ .[0].company_name }}
</div>
{{/ header }}

{{# content }}
<h2>Invoice {{ .[0].invoice_number }}</h2>
<p>Date: {{ .[0].invoice_date }}</p>
<p>Customer: {{ .[0].customer_name }}</p>

<table>
  <tr><th>Description</th><th>Qty</th><th>Price</th><th>Total</th></tr>
  {{~ for line in . ~}}
  <tr>
    <td>{{ line.item_description }}</td>
    <td>{{ line.quantity }}</td>
    <td>{{ line.unit_price }}</td>
    <td>{{ line.line_total }}</td>
  </tr>
  {{~ end ~}}
</table>

<p><strong>Total: ${{ .[0].total_amount }}</strong></p>
{{/ content }}

{{# footer }}
<div style="text-align: center; font-size: 8pt;">
  Thank you for your business
</div>
{{/ footer }}
DetailsScheduling

After creating a job, you can schedule it using various methods such as:

  • Cron: 0 2 * * * (daily at 02:00)
  • Interval: Every 15 minutes
  • Webhooks: Trigger via HTTP POST

Important

Since this application is built for local data orchistration, make sure to never expose Reef outside of your network. If you need to reach it from outside, expose only the /api routes and run them through Nginx or whatever reverse proxy you use. There's an IIS example in web.config.md if you need a starting point, though you'l likely have to tweak it for your setup.

License

Please see the license file.

Contributing

Contributions welcome! Please submit issues and pull requests, using the templates we provided.

About

A lightweight database export service, ready for your destination. Simple. Fast. Reliable.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages