
open-gsio
Note
: I am porting logic from 3 projects back into this one. The styling is a work in progress and some functionality may be broken. Tests are being actively ported and stability will improve over time. Thank you for your patience.
This is a full-stack Conversational AI. It runs on Cloudflare or Bun.
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
Local Inference
Local inference is achieved by overriding the
OPENAI_API_KEY
andOPENAI_API_ENDPOINT
environment variables. See below.
mlx-omni-server
(default) (Apple Silicon Only) - Use Ollama for other platforms.
# (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
-
itty-router - Lightweight router for serverless environments
-
MobX-State-Tree - State management solution
-
OpenAI SDK - Client for AI model integration
-
Vitest - Testing framework
-
mlx-omni-server - Local inference server for Apple Silicon
-
Groq - Fast inference API
-
Anthropic - Creator of Claude models
-
Fireworks - AI inference platform
-
XAI - Creator of Grok models
-
Cerebras - AI compute and models
-
Ollama - Local model running
-
(madroidmaq) MLX Omni Server - Open-source high-performance inference for Apple Silicon
-
Contributors
- All the developers who have contributed code, reported issues, or provided feedback
-
Open Source Community
- The broader open-source community for creating and maintaining the tools and libraries that make this project possible
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.