Shard Detail

echo v0.2.0

Small debugging server written in Crystal
crystal sample

Install & Use

Add the following code to your project's shard.yml under:

dependencies to use in production
- OR -
development_dependencies to use in development

  github: disalazarg/echo



Echo is a small web server that receives any request, logs basic parameters from it, and replies back with either the same data or a precrafted JSON response. It is meant to be used for debugging web clients and little else.


It does not have any dependency outside Crystal's standard library, so a simple crystal build src/ inmediately after cloning should suffice.


Echo accepts a few command-line parameters, listed with ./echo -h. They're as follows:

-p PORT, --port PORT             Specify port to use
-c, --cors                       Enable CORS headers
-j FILE, --json FILE             Loads a JSON reply
-h, --help                       Shows this help


  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