Skip to content

rigelchat/rigel-web-preact

Repository files navigation

Rigel Server

Rigel Web Client

A web interface for the Rigel platform, built with Preact and Vite.

Preact Vite License

Introduction

This repository contains the web interface for the Rigel, which connects to the rigel-server-rs API. It uses Preact to maintain a small bundle size and Vite for the build pipeline.

Prerequisites

  • Node.js (v16 or higher)
  • npm or pnpm

Getting Started

1. Clone the repository

git clone https://github.com/rigelchat/rigel-web-preact.git
cd rigel-web-preact

2. Install dependencies

npm install
# or
pnpm install

3. Configuration

Copy the example environment file and configure the target host and port:

cp .env.example .env

Edit .env to set your own PORT and VITE_HOST.

4. Run Development Server

npm run dev

The client will be available at http://localhost:5173.

Building for Production

To create the production build:

npm run build

A basic Fastify server is included to serve the production build:

node server.cjs

Tip

The server uses settings from .env.production.local. Ensure a PORT is defined.

Alternatively, you can serve the contents of the static dist/ directory using Nginx, Apache, or any static hosting service.


Part of the Rigel Project.

About

The official lightweight web client for Rigel, built with Preact. A fast, minimalist, and beautiful interface for your self-hosted chat.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages