https://github.com/wizzardx/chatgpt_gateway
A Crystal service that extends ChatGPT's capabilities by providing a secure gateway for executing custom actions. Built using TDD practices and designed to run on DigitalOcean.
https://github.com/wizzardx/chatgpt_gateway
ai api-gateway chatgpt crystal openai tdd
Last synced: about 1 year ago
JSON representation
A Crystal service that extends ChatGPT's capabilities by providing a secure gateway for executing custom actions. Built using TDD practices and designed to run on DigitalOcean.
- Host: GitHub
- URL: https://github.com/wizzardx/chatgpt_gateway
- Owner: wizzardx
- License: mit
- Created: 2025-02-22T06:51:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-22T07:13:32.000Z (about 1 year ago)
- Last Synced: 2025-02-22T07:30:26.563Z (about 1 year ago)
- Topics: ai, api-gateway, chatgpt, crystal, openai, tdd
- Language: Shell
- Homepage: https://wizzardx.github.io/chatgpt_gateway/
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
1. Install Crystal (>= 1.15.1)
2. Clone this repository:
```bash
git clone https://github.com/wizzardx/chatgpt_gateway.git
cd chatgpt_gateway
```
3. Install dependencies:
```bash
shards install
```
4. Build the project:
```bash
crystal build src/chatgpt_gateway.cr
```
## Usage
1. Start the server:
```bash
./chatgpt_gateway
```
2. Test the health endpoint:
```bash
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:
1. Install development dependencies:
```bash
shards install
```
2. Run the test suite:
```bash
crystal spec
```
3. Start development server:
```bash
crystal run src/chatgpt_gateway.cr
```
### Development Tools
The `utils/` directory contains helpful development scripts:
- `run.sh` - Builds and deploys the service
- `shellcheck.sh` - Checks shell scripts for issues
- `meta-run.sh` - Creates development snapshots
## Contributing
1. Fork it ()
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create a new Pull Request
## Contributors
- [David Purdy](https://github.com/wizzardx) - creator and maintainer
## License
This project is licensed under the MIT License - see the LICENSE file for details