{"id":13424497,"url":"https://github.com/crystal-community/crystal-patterns","last_synced_at":"2025-10-29T06:52:27.709Z","repository":{"id":41254640,"uuid":"41687764","full_name":"crystal-community/crystal-patterns","owner":"crystal-community","description":":book: Examples of GOF patterns written in Crystal","archived":false,"fork":false,"pushed_at":"2022-10-20T11:30:51.000Z","size":53,"stargazers_count":297,"open_issues_count":0,"forks_count":12,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-02T06:07:47.194Z","etag":null,"topics":["crystal","crystal-patterns","gof-patterns","oop"],"latest_commit_sha":null,"homepage":"","language":"Crystal","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crystal-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-31T16:39:15.000Z","updated_at":"2025-03-11T01:31:48.000Z","dependencies_parsed_at":"2023-01-20T00:32:54.247Z","dependency_job_id":null,"html_url":"https://github.com/crystal-community/crystal-patterns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-community%2Fcrystal-patterns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-community%2Fcrystal-patterns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-community%2Fcrystal-patterns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crystal-community%2Fcrystal-patterns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crystal-community","download_url":"https://codeload.github.com/crystal-community/crystal-patterns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247999864,"owners_count":21031046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["crystal","crystal-patterns","gof-patterns","oop"],"created_at":"2024-07-31T00:00:55.216Z","updated_at":"2025-10-29T06:52:22.661Z","avatar_url":"https://github.com/crystal-community.png","language":"Crystal","funding_links":[],"categories":["Crystal","Examples and funny stuff"],"sub_categories":[],"readme":"\u003cimg src='https://gitcdn.link/repo/veelenga/bin/master/crystal-patterns/logo.png' width='100' align='right'\u003e\n\n# Crystal Patterns\n[![Build Status](https://travis-ci.org/crystal-community/crystal-patterns.svg?branch=master)](https://travis-ci.org/crystal-community/crystal-patterns)\n\nDesign patterns implemented in Crystal language (with [MK](http://mortalkombat.wikia.com) in mind).\n\nThe goal is to have a set of [GOF patterns](http://www.blackwasp.co.uk/gofpatterns.aspx) for Crystal users.\n\n## Available implementations\n\n- Behavioral\n  - [Command](behavioral/command.cr)\n  - [Iterator](behavioral/iterator.cr)\n  - [Memento](behavioral/memento.cr)\n  - [Observer](behavioral/observer.cr)\n  - [State](behavioral/state.cr)\n  - [Strategy](behavioral/strategy.cr)\n  - [Template](behavioral/template.cr)\n  - [Visitor](behavioral/visitor.cr)\n  - [Mediator](behavioral/mediator.cr)\n  - [Chain of Responsibility](behavioral/chain_of_responsibility.cr)\n  - [Interpreter](behavioral/interpreter.cr)\n- Creational\n  - [Abstract Factory](creational/abstract_factory.cr)\n  - [Builder](creational/builder.cr)\n  - [Factory Method](creational/factory_method.cr)\n  - [Prototype](creational/prototype.cr)\n  - [Singleton](creational/singleton.cr)\n- Structural\n  - [Adapter](structural/adapter.cr)\n  - [Bridge](structural/bridge.cr)\n  - [Composite](structural/composite.cr)\n  - [Decorator](structural/decorator.cr)\n  - [Facade](structural/facade.cr)\n  - [Flyweight](structural/flyweight.cr)\n  - [Proxy](structural/proxy.cr)\n\nIf you found any inconsistency or a place for improvement, pull requests are welcomed.\n\n## Want more?\n\n* [Crystal Design Patterns](https://github.com/bthachdev/crystal-design-patterns)\n* [Design Patterns in Ruby](https://github.com/nslocum/design-patterns-in-ruby)\n\n## Contributors\n\n* [veelenga](https://github.com/veelenga) V. Elenhaupt - creator, maintainer\n* [silverweed](https://github.com/silverweed) Silverweed - contributor\n* [anicholson](https://github.com/anicholson) Andy Nicholson - contributor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystal-community%2Fcrystal-patterns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrystal-community%2Fcrystal-patterns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrystal-community%2Fcrystal-patterns/lists"}