open-gsio
Note
: This project is currently under active development. 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!
Table of Contents
Stack
Installation
bun i && bun test
- Add your own
GROQ_API_KEY
in .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 the KV_STORAGE bindings in
wrangler.jsonc
- Add another
GROQ_API_KEY
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:enable # 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:enable # Configure connection
bun run server:dev # Restart server
Adding models for local inference (ollama)
# See https://ollama.com/library for available models
MODEL_TO_ADD=gemma3
docker exec -it ollama ollama run ${MODEL_TO_ADD}
Testing
Tests are located in __tests__
directories next to the code they test. Testing is incomplete at this time.
bun run test
will run all tests
Troubleshooting
bun run 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.
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.