gopher
Version, currently 0.0.34 versions
- 0.1.0latestJan 8, 2019
- 0.0.3not indexedJan 17, 2019
- 0.0.2not indexedJan 17, 2019
- 0.0.1not indexedJan 17, 2019
github.com/anicholson/gopher.cr
a Gopher server, written in Crystal
Nothing has been indexed for 0.0.3 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.
Installation
# Add this to your shard.yml
dependencies:
gopher:
github: anicholson/gopher.cr
version: ~> 0.0.3Then run:
shards installshard.yml
No shard.yml has been indexed for 0.0.3. You can read it on the repository.
Dependencies
Unknown: the shard.yml for this version has not been read yet.
README
This README is the one indexed from the repository at its latest ref, not from the tag for this version.
gopher.cr 
An implementation of RFC 1437, the Gopher protocol.
This repository is 2 things:
- A library that implements the Gopher protocol
- An example server that serves Gopher requests
Gopher Protocol
The Gopher protocol consists of 2 phases: request & response.
Like its relative HTTP, clients makes a request for a URI to the server, and the server responds. Unlike HTTP, however, there are no headers, caching, MIME response types, keepalives, etc. This makes the protocol both simpler and less featureful.
Requests
A request to a gopher:// server consists of a single line, containing a URI (called a selector):
/1stuff/1and/1nonsense/0intro.txt\r\n
the server then resolves that request into a response, and renders it back to the client.
Responses
A Response can be one of 3 things:
- a menu of further choices a user can make
- a resource (a file, or a another server)
- an error
A copy of the RFC that describes the protocol is included in this repo
Using this library
To use this library, you need to:
- Create a
Serverobject - Provide it with
Resolver(s) that instruct it how to find content - Tell the server to listen for requests!
A good example for how this can be done exists in src/example.cr
If you're looking for a more turnkey solution, check out its sister project Port70.
Development
Testing on the application is built using the excellent minitest.cr.
Run tests with crystal spec.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.0.3- Tagged
- Jan 17, 2019
- Commit
aaec4629bc03- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/anicholson/gopher.cr
Metadata
- Created
- Aug 12, 2026
- Updated
- Nov 29, 2026
- Synced
- Nov 28, 2026
- Versions
- 4