Back to services

Haven

Haven is an open-source blogging system built with Ruby on Rails and comes with a built-in Markdown editor.

View alternatives to Haven
Suggest edit
Open source
Self-hostable
MIT
Recent reviews

Alternatives

Tech stack

No tech stack added yet. Sign in to suggest some

Introduction to Haven, an Open-Source Blogging System

Core concept
Haven is a self-hostable private blogging application built with Ruby on Rails. It is designed for sharing content among friends and family, with "privacy first" as its guiding principle.

1. Key Features

  1. Free and open source
    • Released under the MIT license. The code is fully open source and can be freely modified and redistributed.
  2. Privacy first
    • No public sign-ups: access is limited to invited users, with no ads and no third-party tracking.
  3. Simple and easy to use
    • Built-in web admin interface: supports user management, blog customization, and Markdown editing with live preview.
  4. Low-bandwidth friendly
    • Uploaded images are automatically downsampled, pages use no JavaScript front-end framework, and the minimalist design keeps load times short.
  5. Highly customizable
    • You can add custom CSS and fonts to personalize how your blog looks.
  6. Media support
    • Supports images, audio, video, and other multimedia content.
  7. Private RSS
    • Generates a dedicated RSS feed for each user, making it easy to keep up with posts while preserving privacy.
  8. Built-in RSS reader
    • Lets you subscribe to and browse external blogs directly within the app.

2. Technical Architecture

  • Backend framework: Ruby on Rails
  • Database: PostgreSQL (default)
  • Front end: Standard HTML/CSS with a little SCSS, no reliance on large JS frameworks
  • Storage: Local file system (images and other media files)
  • Configuration management: Environment variables or docker-compose.yml

3. Deployment Options

Haven offers several ways to deploy, suited to different skill levels and environments:

PlatformDescription
DockerOne-step docker-compose up; just change HAVEN_USER_EMAIL and HAVEN_USER_PASS.
AWS EC2Provides a deploy-aws.rb script that automatically creates an EC2 instance and obtains an HTTPS certificate, completing deployment in about 20 minutes.
KubeSailOne-click install via the official template, suitable for small self-built servers at home or in the office.
PikaPodsA PaaS for open-source apps, with $5 in credit for the first month and plans starting at $1.64/month.
Raspberry PiFully automated installation via deploy-pi.sh; on a Pi Zero W, installation can take up to 3 hours.
HerokuExperimental deployment (the free tier has been discontinued, estimated $16/month); uploaded images expire within 24 hours.
Other LinuxRefer to the Pi deployment script; with minor adjustments it can be installed on Debian-based distributions.

4. Usage Workflow

  1. Clone the code:
    git clone https://github.com/havenweb/haven.git
    
  2. Set the environment variables or edit docker-compose.yml to configure the admin email and password.
  3. Start the service (using Docker as an example):
    cd haven
    docker-compose up -d
    
  4. Visit http://<your-domain> and log in with the initial admin account. You can then create your personal blog and invite friends to sign up.

5. Use Cases

  • Private family albums and journals: Share your children's growth and your travels, visible only to family.
  • Small interest communities: A writing and discussion platform open only to members.
  • Lightweight private blogs: For those who don't need high traffic, just Markdown writing and private subscriptions.

6. Community and Support

  • GitHub project: https://github.com/havenweb/haven
  • Documentation and examples: The project README provides complete deployment scripts and parameter descriptions.
  • Paid hosting: Visit https://havenweb.org for details on the hosting service.
  • Feedback and contributions: Issues and Pull Requests are welcome on GitHub.

Our recommendation: If you need a simple, private, ad-free, easy-to-deploy blogging system, Haven offers one-step deployment options ranging from Docker to bare metal, cloud servers, and Raspberry Pi, greatly reducing the cost of setting up and maintaining it yourself.