github.com/wizzardx/chatgpt_gateway
main / published Feb 22, 2025 / repository
A Crystal service that extends ChatGPT's capabilities by providing a secure gateway for executing custom actions
ChatGPT Gateway
A Crystal service that extends ChatGPT's capabilities by providing a secure gateway to execute custom actions. Built using Test-Driven Development (TDD), this service runs on DigitalOcean and allows ChatGPT to perform operations beyond its standard web browsing capabilities.
Features
- Health check endpoint
- More features coming soon...
Installation
- Install Crystal (>= 1.15.1)
- Clone this repository:
git clone https://github.com/wizzardx/chatgpt_gateway.git cd chatgpt_gateway - Install dependencies:
shards install - Build the project:
crystal build src/chatgpt_gateway.cr
Usage
- Start the server:
./chatgpt_gateway - Test the health endpoint:
curl http://localhost:3000/health
More documentation coming soon as features are developed.
Development
This project follows Test-Driven Development practices. To get started with development:
- Install development dependencies:
shards install - Run the test suite:
crystal spec - Start development server:
crystal run src/chatgpt_gateway.cr
Development Tools
The utils/ directory contains helpful development scripts:
run.sh- Builds and deploys the serviceshellcheck.sh- Checks shell scripts for issuesmeta-run.sh- Creates development snapshots
Contributing
- Fork it (https://github.com/wizzardx/chatgpt_gateway/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- David Purdy - creator and maintainer
License
This project is licensed under the MIT License - see the LICENSE file for details