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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aigon_viewer-0.9.tar.gz.
File metadata
- Download URL: aigon_viewer-0.9.tar.gz
- Upload date:
- Size: 31.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d0e0f5767df3ecf6fc3150172ba1b2b8d837d4b67a636e1bef6dab4031352b24
|
|
| MD5 |
e67718006d9a03c7a5a0e542e74f38aa
|
|
| BLAKE2b-256 |
882e80041f8553e1b62f550c9d776fdf47841cff3a32026e2746116e3fae1f91
|
File details
Details for the file aigon_viewer-0.9-py3-none-any.whl.
File metadata
- Download URL: aigon_viewer-0.9-py3-none-any.whl
- Upload date:
- Size: 34.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f3ea3957fe6eeab100141323e0a6907af24518aebd0b84d72f647acb301d558
|
|
| MD5 |
a1dcbce1325ce5a35951df665ee1dcc9
|
|
| BLAKE2b-256 |
6d17d5ed2576c8a0be6574ffb1b4696756d5e476165cb22dfc840b13d7f48a72
|