cprox
Version, currently master branch1 version
- master branchlatestMay 1, 2020
github.com/arschles/cprox
A basic HTTP proxy & url shortener written in Crystal
6 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
cprox:
github: arschles/cprox
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.33.0- License
- MIT
- Author
- Aaron Schlesinger <aaron@ecomaz.net>
- Target
cproxfrom src/cprox.cr
Dependencies
Runtime Dependencies
- kemal*github: kemalcr/kemal
- nuummite~> 0.1.4github: codesteak/nuummite
- spec-kemal*github: kemalcr/spec-kemal
README
# cprox
A basic HTTP proxy and url shortener written in [Crystal](https://crystal-lang.org).
## Proxy API
### `GET /forward/:code`
Forwards to the URL that was registered with `:code`
### `POST /code/:code`
Register the URL `:url` with a given code. The code should be specified in the `POST` body with JSON:
```json
{
"url": "some URL here"
}
```
### `DELETE /code/:code`
Delete the given `:code` from the registry.
## Installation and development
All you need is the Crystal toolchain to build and run this project. Go [here](https://crystal-lang.org/install/) to learn how to install the toolchain.
When you have it installed, pull down the dependencies:
```console
$ shards install
```
When that's done, run the app:
```console
$ crystal run
```
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- May 1, 2020
- Crystal
0.33.0- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/arschles/cprox
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1