Skip to main content

Gem2Browser

"Take the web by storm."

A Gemini relay for HTTP using Python flask

Features

  • Browses all of Gemini Space!
  • Includes Titan editor
  • Client certificate support
    • In versions 3.0 and newer, it does not store certificates in the server.

Requirements

  • Python 3
    • Flask
    • Gunicorn (or any other flask compatible WSGI)
    • PyOpenSSL

Installation

Docker Compose

Use this docker-compose.yml

services:
  gem2browser:
    image: git.swee.codes/swee/gem2browser:latest
    restart: unless-stopped
    ports:
      - 2009:2009/tcp

On your host

pip install gem2browser gunicorn

Run server

guicorn --bind 0.0.0.0:2009 gem2browser:app

Development server

python -m gem2browser

This listens on 127.0.0.1:2009

Service files

Systemd
[Unit]
Description=Gem2Browser
After=network.target
Wants=network-online.target

[Service]
Type=simple
# User=g2b
ExecStart=/usr/bin/gunicorn --bind 0.0.0.0:2009 gem2browser:app
Restart=on-failure

[Install]
WantedBy=multi-user.target
OpenRC
#!/sbin/openrc-run

# command_user="g2b"
command="gunicorn"
command_args="--bind=0.0.0.0:2009 gem2browser:app"
command_background="yes"
pidfile="/run/$RC_SVCNAME.pid"
depend() {
        need net
        use dns
}
FreeBSD rc
#!/bin/sh

# PROVIDE: gem2browser
# REQUIRE: NETWORKING
# KEYWORD: shutdown

. /etc/rc.subr

name="gem2browser"
rcvar="gem2browser_enable"
start_precmd="gem2browser_precmd"
procname="/usr/local/bin/python3"
pidfile="/var/run/${name}.pid"

load_rc_config $name

: ${gem2browser_enable:="NO"}
# : ${gem2browser_user:="g2b"}

command="/usr/sbin/daemon"
command_args="-f -l daemon -s info -p ${pidfile} gunicorn --bind=0.0.0.0:2009 gem2browser:app"

gem2browser_precmd() {
        if [ ! -e "${pidfile}" ]; then
                install -o "${gem2browser_user}" -g "wheel" "/dev/null" "${pidfile}"
        fi
}

run_rc_command "$1"

Metadata

Release files for gem2browser 3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gem2browser 3.0
File Size Uploaded
gem2browser-3.0.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gem2browser 3.0
File Interpreter ABI Platform
gem2browser-3.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.3 kB

Release files / gem2browser-3.0.tar.gz

Download URL gem2browser-3.0.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
156dc5d520747535dbb1abf8366eada0c4409b59e25c3875c731e44db9976222
BLAKE2b-256 checksum
How to use checksums
6fea969734e26183c47ffc9b38d947a284154cd71785f3613dea4eecc93f0a94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / gem2browser-3.0-py3-none-any.whl

Download URL gem2browser-3.0-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a61372a4c35c14c949e0859ef52872e85dab66b9d1fc26be161ddbc04de7a139
BLAKE2b-256 checksum
How to use checksums
cb5e35ddc4bda0f54c0e5e700234931fb96909a089a24d766a07ae5c38d8264f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

3.1

2 release files

This release

3.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page