Skip to main content

Standalone markdown viewer server with local and remote file support

Project description

Aigon Viewer Server

A lightweight FastAPI markdown viewer for local files.

Installation

Prerequisite: Install uv

curl -LsSf https://astral.sh/uv/install.sh | sh

then install aigon-viewer from PyPi

uv tool install aigon-viewer

or directly from GitHub

uv tool install git+https://github.com/aigonai/aigon-viewer.git

Updating

From PyPi

uv tool install --upgrade aigon-viewer

directly from Github

uv tool install --force git+https://github.com/aigonai/aigon-viewer.git

Running the Server

Using aigonviewer

Full CLI with Process Management

The aigonviewer command provides full process management with background execution, status checking, and cleanup.

Available Commands:

aigonviewer launch [OPTIONS]    # Launch server in background
aigonviewer status              # Check running servers
aigonviewer kill [OPTIONS]      # Stop running servers

Launch Options:

aigonviewer [launch] [DIRECTORY] [OPTIONS]

Arguments:
  DIRECTORY             Directory to serve (default: current directory)

Options:
  --port, -p PORT       Port to run on (default: 4444)
  --host HOST           Host to bind to (default: 127.0.0.1)
  --foreground, -fg     Run in foreground (don't daemonize)
  --no-browser          Don't open browser automatically
  --remote, -r          Enable remote sources (default: enabled)
  --no-remote           Disable remote sources (local files only)

Examples:

# Launch server (simplified syntax)
aigonviewer ~/notes

# Launch on custom port
aigonviewer ~/notes --port 8080

# Launch from current directory
aigonviewer

# Run in foreground (blocks until Ctrl+C)
aigonviewer ~/notes --foreground

# Explicit launch command (also works)
aigonviewer launch ~/notes --port 8080

# Check running servers
aigonviewer status

# Stop all servers
aigonviewer kill

# Stop server on specific port
aigonviewer kill --port 4444

Using aigonviewer_base

Simple Mode

For simple use cases where you don't need process management, use aigonviewer_base which runs directly in the foreground:

# Basic usage
aigonviewer_base ~/notes

# Custom port and host
aigonviewer_base ~/notes --port 8080 --host 0.0.0.0

# Don't open browser
aigonviewer_base ~/notes --no-browser

Options:

aigonviewer_base [PATH] [OPTIONS]

Arguments:
  PATH                   Directory to serve (default: current directory)

Options:
  --version              Show version and exit
  --port PORT            Port to run on (default: 3030)
  --host HOST            Host to bind to (default: 127.0.0.1)
  --remote               Enable remote sources
  --no-browser           Don't automatically open browser

Configuration

The _config.toml file is optional. If you create it in your markdown directory, you can organize files into groups and get a dropdown menu to focus on specific file groups.

Example _config.toml:

[work]
todo-aigon
agenda
project-notes

[personal]
shopping-list
brain-context-dump

Note: File names are listed without the .md extension.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aigon_viewer-0.9.1.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aigon_viewer-0.9.1-py3-none-any.whl (35.0 kB view details)

Uploaded Python 3

File details

Details for the file aigon_viewer-0.9.1.tar.gz.

File metadata

  • Download URL: aigon_viewer-0.9.1.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aigon_viewer-0.9.1.tar.gz
Algorithm Hash digest
SHA256 5e3fc4545a780a09406140052c945e6b926f720d4e79956fa2281951a5585184
MD5 70adc7a2ba4fc2123066e4f4e441c3a0
BLAKE2b-256 6646818760ef3b4f2d7ca75a249a4f09df48dad17a6735d3495bc4b39c4400d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for aigon_viewer-0.9.1.tar.gz:

Publisher: release.yml on aigonai/aigon-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aigon_viewer-0.9.1-py3-none-any.whl.

File metadata

  • Download URL: aigon_viewer-0.9.1-py3-none-any.whl
  • Upload date:
  • Size: 35.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aigon_viewer-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b034986fd6cae9f1c88d5be1fe5fb49bf44a83cd9a7b86bb99bf84fded2e7de4
MD5 9e882b60b78a51a94d82aa08d203d960
BLAKE2b-256 001faf6316a1a8cd5461125d038915feb0fa2b6cb30db8b4f6a83d7431589c13

See more details on using hashes here.

Provenance

The following attestation bundles were made for aigon_viewer-0.9.1-py3-none-any.whl:

Publisher: release.yml on aigonai/aigon-viewer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page