Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Horde Model Reference Frontend

A web-based CRUD interface for managing AI Horde model references, powered by Angular.

Role in AI-Horde

The AI-Horde (github) is a free and open sourced, crowd-sourced distributed compute network for AI-generations. Currently, the following github repositories store the "legacy" model references still used by AI-Horde:

This frontend application provides a user-friendly interface to view, create, edit, and delete model references stored in a running instance of the horde-model-reference backend service.

The official version of this frontend is deployed at models.aihorde.net. However, anyone can run the built static webpage anywhere (e.g., GitHub Pages, Netlify, Vercel). Forks of the AI-Horde can also use it to manage their own model references by connecting to their own canonical instance of the horde-model-reference backend.

Features

  • View all models by category, with search/filter
  • Audit mode allowing for detailed analysis of model metadata, usage, and history
  • Create, edit, and delete models (when connected to PRIMARY backend and logged in)
  • Backend capability detection (PRIMARY/REPLICA, writable/read-only)

Installation

Prerequisites

  • Node.js (v18 or higher)
    • It is recommended to use nvm to manage Node versions
  • Angular CLI (npm install -g @angular/cli)
  • Running instance of horde-model-reference backend service

Setup

npm install
git submodule sync --recursive
git submodule update --init --recursive

Configuration

The API base URL is configured in src/environments/environment.ts for development:

export const environment = {
  production: false,
  apiBaseUrl: 'http://localhost:19800/api/',
};

For production, update src/environments/environment.prod.ts accordingly.

Development Server

Start the development server:

npm start

Navigate to http://localhost:4200/. The application will automatically reload when you change source files.

Build

Build the project for production:

npm run build

Build artifacts will be stored in the dist/ directory.

End-to-End Tests

We use Playwright for browser-level coverage. The test runner automatically starts ng serve on a random port unless you set E2E_PORT/E2E_HOST.

npm run test:e2e

Useful overrides:

  • E2E_API_BASE=http://localhost:19800/api npm run test:e2e — point the mocked backend routes at a custom origin.
  • E2E_PORT=5500 npm run test:e2e — run against a specific dev-server port.

Usage

Browsing Models

  1. Start the application
  2. Categories are displayed in the left sidebar
  3. Click on a category to view all models in that category
  4. The selected category is highlighted in the sidebar
  5. Use the search box to filter models by name or description

Creating Models

  1. Navigate to a category
  2. Click "Create Model" (only visible if backend is writable)
  3. Enter model name (alphanumeric, hyphens, underscores)
  4. Add model data as JSON
  5. Submit

Editing Models

  1. Navigate to a category
  2. Click "Edit" on a model
  3. Update the JSON data (name field is read-only)
  4. Submit

Deleting Models

  1. Navigate to a category
  2. Click "Delete" on a model
  3. Confirm deletion

Technologies

  • Angular 20 with standalone components
  • TypeScript with strict mode
  • Signals for reactive state management
  • Reactive Forms for form handling
  • OnPush change detection strategy
  • RxJS for HTTP operations

License

See LICENSE file in the repository root.

About

A web-frontend for managing the AI-Horde model reference.

Resources

Contributing

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages