Skip to content

jiangmuran/chatpro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chatpro

CI

chatpro is a roleplay-first AI chat platform with a clean, content-forward UI and an admin console for operations.

Highlights

  • Roleplay-first conversation flow with persona selection
  • Streaming responses with auto-scroll and retry handling
  • Markdown rendering with code copy
  • Admin console for metrics, logs, users, personas, and system settings

Structure

  • apps/web — end-user chat UI (React + Vite)
  • apps/admin — admin console (React + Vite)
  • server — API + web/admin static hosting (Express)
  • packages/shared — shared types

Local Development

Install dependencies:

npm install

Run services:

npm run dev:server
npm run dev:web
npm run dev:admin

Default ports:

  • Web: http://localhost:5174
  • Admin: http://localhost:5174/admin
  • API: http://localhost:5178

Environment Variables

Create a .env at the repo root or in production at /opt/chatpro/.env:

OPENAI_API_KEY=
OPENAI_BASE_URL=https://api.openai.com
ADMIN_USER=admin
ADMIN_PASSWORD=admin
DEFAULT_QUOTA_ENHANCED=10
DEFAULT_QUOTA_PRO=5
MODEL_NORMAL=gpt-4o-mini
MODEL_ENHANCED=gpt-4o
MODEL_PRO=gpt-4.1

Build

npm run build -ws

Production

The server serves both the web and admin builds:

  • Web: /
  • Admin: /admin

Start the server:

node server/index.js

About

chatpro

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors