amethyst
Version, currently 0.1.35 versions
- 0.1.7latestJul 1, 2015
- 0.1.3not indexedAug 10, 2025
- 0.1not indexedAug 10, 2025
- 0.0.7not indexedAug 10, 2025
- 0.0.2not indexedAug 10, 2025
github.com/amethyst-framework/amethyst
Amethyst is a Rails inspired web-framework for Crystal language
650 stars
0 dependents
License: MIT
Nothing has been indexed for 0.1.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:
amethyst:
github: amethyst-framework/amethyst
version: ~> 0.1.3Then run:
shards installshard.yml
No shard.yml has been indexed for 0.1.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.
#
[](https://travis-ci.org/Codcore/Amethyst) [](https://gitter.im/Codcore/Amethyst?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Amethyst is a web framework written in [Crystal](https://github.com/manastech/crystal) language. The goals of Amethyst are to be extremely fast and provide agility in application development as Rails do. Why I called it "Amethyst"? Because Crystal has a light purple color at GitHub like [amethyst gemstone](http://en.wikipedia.org/wiki/Amethyst).
Latest version - [0.1.7](https://github.com/Codcore/Amethyst/releases/tag/v0.1.7)
Note that Amethyst is at it early stages, so it lacks for whole bunch of things. But you can give a hand with contributing.
[Amethyst examples](https://github.com/Codcore/amethyst-examples)
For detailed information, see docs on our [wiki](https://github.com/Codcore/Amethyst/wiki) below:
* [Installation](https://github.com/Codcore/Amethyst/wiki/Installation)
* [Usage](https://github.com/Codcore/Amethyst/wiki/Usage)
* [Controllers](https://github.com/Codcore/Amethyst/wiki/Controllers)
* [Routing](https://github.com/Codcore/Amethyst/wiki/Routing)
* [Middleware](https://github.com/Codcore/Amethyst/wiki/Middleware)
* [Static files](https://github.com/Codcore/Amethyst/wiki/StaticFiles)
* [Applications](https://github.com/Codcore/Amethyst/wiki/Applications)
[Here are some benchmarking results](https://gist.github.com/Codcore/0c7a331b69eed542fb78)
For now, next things are implemented:
* class-based controllers with method-based actions
* views for actions (*.ecr)
* filters for action
* middleware support
* simple REST routing
* default routes for controller
* path, GET and POST params inside actions
* basic cookies support
* static files serving
* http logger and timer for developers
* simple environments support
* simple session support
## Example
Here is classic 'Hello World' in Amethyst
```crystal
require "amethyst"
class WorldController < Base::Controller
actions :hello
view "hello", "#{__DIR__}/views"
def hello
@name = "World"
respond_to do |format|
format.html { render "hello" }
end
end
end
class HelloWorldApp < Base::App
routes.draw do
all "/", "world#hello"
get "/hello", "world#hello"
register WorldController
end
end
app = HelloWorldApp.new
app.serve
# /views/hello.ecr
Hello, <%= name %>
```
## Development
Feel free to fork project and make pull-requests. Stick to standart project structure and name conventions:
src/
amethyst/
module1/ # module1 files
class1.cr
...
module1.cr # loads all module1 files into namespace Amethyst::Module1
module2/
class1.cr # describe class Class1 (module, struct, i.e)
...
module2.cr # loads all module2 files into namespace Amethyst::Module2
file_module.cr # module that consists of one file
amethyst.cr # requires module1.cr, module2.cr, file_module.cr
spec/
module1/
class1_spec.cr # specs for Module1::Class
spec_helper.cr # loads main spec_helper
module2/
class2_spec.cr
spec_helper # loads "amethyst/all"
examples/ # examples to play with
# don't forget to require "..src/amethyst" or "..src/all"
## Contributing
I would be glad for any help with contributing.
1. Fork it ( https://github.com/Codcore/amethyst/fork )
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
- [Andrew Yaroshuk](https://github.com/Codcore]) Codcore - creator, maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
0.1.3- Tagged
- Aug 10, 2025
- Commit
21e2aadac742- Indexed
- not yet
Dependents
No indexed shard depends on this one yet.
Repository
github.com/amethyst-framework/amethyst
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 12, 2026
- Synced
- Aug 12, 2026
- Versions
- 5