
Signed-off-by: Geoff Seemueller <28698553+geoffsee@users.noreply.github.com>
open-gsio
This is a full-stack Conversational AI.
Table of Contents
Installation
bun i && bun test:all
- Setup Local Inference OR Add your own
GROQ_API_KEY
in packages/cloudflare-workers/open-gsio/.dev.vars - In isolated shells, run
bun run server:dev
andbun run client:dev
Note: it should be possible to use pnpm in place of bun.
Deployment
- Setup KV_STORAGE binding in
packages/server/wrangler.jsonc
- Add keys in secrets.json
- Run
bun run deploy && bun run deploy:secrets && bun run deploy
Note: Subsequent deployments should omit
bun run deploy:secrets
Docker
You can run the server using Docker. The image is large but will be slimmed down in future commits.
Building the Docker Image
docker compose build
# OR
docker build -t open-gsio .
Running the Docker Container
docker run -p 3003:3003 \
-e GROQ_API_KEY=your_groq_api_key \
-e FIREWORKS_API_KEY=your_fireworks_api_key \
open-gsio
You can omit any environment variables that you don't need. The server will be available at http://localhost:3003.
Using Docker Compose
A docker-compose.yml
file is provided in the repository. You can edit it to add your API keys:
version: '3'
services:
open-gsio:
build: .
ports:
- "3003:3003"
environment:
- GROQ_API_KEY=your_groq_api_key
- FIREWORKS_API_KEY=your_fireworks_api_key
# Other environment variables are included in the file
restart: unless-stopped
Then run:
docker compose up
Or to run in detached mode:
docker compose up -d
Local Inference
Local inference is supported for Ollama and mlx-omni-server. OpenAI compatible servers can be used by overriding OPENAI_API_KEY and OPENAI_API_ENDPOINT.
mlx-omni-server
(default) (Apple Silicon Only)
# (prereq) install mlx-omni-server
brew tap seemueller-io/tap
brew install seemueller-io/tap/mlx-omni-server
bun run openai:local mlx-omni-server # Start mlx-omni-server
bun run openai:local:configure # Configure connection
bun run server:dev # Restart server
Adding models for local inference (Apple Silicon)
# ensure mlx-omni-server is running
# See https://huggingface.co/mlx-community for available models
MODEL_TO_ADD=mlx-community/gemma-3-4b-it-8bit
curl http://localhost:10240/v1/chat/completions \
-H "Content-Type: application/json" \
-d "{
\"model\": \"$MODEL_TO_ADD\",
\"messages\": [{\"role\": \"user\", \"content\": \"Hello\"}]
}"
Ollama
bun run openai:local ollama # Start ollama server
bun run openai:local:configure # Configure connection
bun run server:dev # Restart server
Adding models for local inference (ollama)
# See https://ollama.com/library for available models
use the ollama web ui @ http://localhost:8080
Testing
Tests are located in __tests__
directories next to the code they test. Testing is incomplete at this time.
bun test:all
will run all tests
Troubleshooting
bun clean
bun i
bun server:dev
bun client:dev
- Submit an issue
History
A high-level overview for the development history of the parent repository, geoff-seemueller-io, is provided in LEGACY.md.
Acknowledgments
I would like to express gratitude to the following projects, libraries, and individuals that have contributed to making open-gsio possible:
- TypeScript - Primary programming language
- React - UI library for building the frontend
- Vike - Framework for server-side rendering and routing
- Cloudflare Workers - Serverless execution environment
- Bun - JavaScript runtime and toolkit
- Marked.js - Markdown Rendering
- Shiki - Syntax Highlighting
- itty-router - Lightweight router for serverless environments
- MobX-State-Tree - State management solution
- OpenAI SDK - Client for AI model integration
- Vitest - Testing framework
- OpenAI
- Groq - Fast inference API
- Anthropic - Creator of Claude models
- Fireworks - AI inference platform
- XAI - Creator of Grok models
- Cerebras - AI compute and models
- (madroidmaq) MLX Omni Server - Open-source high-performance inference for Apple Silicon
- MLX - An array framework for Apple silicon
- Ollama - Versatile solution for self-hosting models
License
MIT License
Copyright (c) 2025 Geoff Seemueller
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.