Skip to content

minthemiddle/llm-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM Browser

A web interface for browsing and searching LLM prompt/response history stored in SQLite.

Features

  • Browse historical LLM prompts and responses
  • Search across both prompts and responses
  • View markdown-formatted content with syntax highlighting
  • Collapsible sections for long content (collapsed by default)
  • Responsive design with Tailwind CSS
  • Copy response markdown to clipboard with one click
  • Delete entries with confirmation dialog and CSRF protection

Setup

  1. Install LLM with SQLite logging enabled:

    pip install llm
  2. Configure LLM to log to SQLite (see LLM Logging Documentation):

    llm logs path "/path/to/llm.db"
  3. Clone this repository:

    git clone https://github.com/yourusername/llm-browser.git
    cd llm-browser
  4. Install dependencies:

    composer install
  5. Create a .env file with your SQLite database path:

    DATABASE_PATH="/path/to/llm.db"
  6. Start the PHP built-in server:

    php -S localhost:8000
  7. Open your browser to http://localhost:8000

Usage

  • The main page shows the most recent prompts and responses
  • Use the search bar to find specific content
  • Long content is collapsed by default showing a preview
  • Click "Expand" to show full content
  • Click "Collapse" to return to preview view
  • Click "Copy to clipboard" to copy the response markdown for easy reuse

Technology Stack

  • PHP
  • SQLite
  • Tailwind CSS
  • CommonMark (for markdown rendering)

License

MIT License

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

A web interface for browsing and searching LLM prompt/response history stored in SQLite.

Resources

License

Stars

Watchers

Forks

Languages