{"id":14969842,"url":"https://github.com/servactory/servactory","last_synced_at":"2026-02-13T22:21:37.424Z","repository":{"id":158427618,"uuid":"634035319","full_name":"servactory/servactory","owner":"servactory","description":"Powerful Service Object for Ruby applications","archived":false,"fork":false,"pushed_at":"2025-04-02T08:19:50.000Z","size":1978,"stargazers_count":21,"open_issues_count":5,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-03T05:32:29.164Z","etag":null,"topics":["rails","ruby","ruby-on-rails","servactory","service-factory","service-object","service-objects","services"],"latest_commit_sha":null,"homepage":"https://servactory.com","language":"Ruby","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/servactory.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-04-28T21:40:38.000Z","updated_at":"2025-04-02T08:18:50.000Z","dependencies_parsed_at":"2023-09-24T17:13:40.287Z","dependency_job_id":"49a6141f-9e7c-47d5-9413-31f18481b80d","html_url":"https://github.com/servactory/servactory","commit_stats":null,"previous_names":["servactory/servactory","afuno/servactory"],"tags_count":108,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servactory%2Fservactory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servactory%2Fservactory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servactory%2Fservactory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/servactory%2Fservactory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/servactory","download_url":"https://codeload.github.com/servactory/servactory/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248126182,"owners_count":21051879,"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":["rails","ruby","ruby-on-rails","servactory","service-factory","service-object","service-objects","services"],"created_at":"2024-09-24T13:42:29.031Z","updated_at":"2026-02-13T22:21:37.415Z","avatar_url":"https://github.com/servactory.png","language":"Ruby","readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://servactory.com\" target=\"_blank\"\u003e\n    \u003cpicture\u003e\n      \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/servactory/servactory/main/.github/logo-dark.svg\"\u003e\n      \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/servactory/servactory/main/.github/logo-light.svg\"\u003e\n      \u003cimg alt=\"Servactory\" src=\"https://raw.githubusercontent.com/servactory/servactory/main/.github/logo-light.svg\" width=\"350\" height=\"70\" style=\"max-width: 100%;\"\u003e\n    \u003c/picture\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  A set of tools for building reliable services of any complexity.\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://rubygems.org/gems/servactory\"\u003e\u003cimg src=\"https://img.shields.io/gem/v/servactory?logo=rubygems\u0026logoColor=fff\" alt=\"Gem version\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/servactory/servactory/releases\"\u003e\u003cimg src=\"https://img.shields.io/github/release-date/servactory/servactory\" alt=\"Release Date\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://rubygems.org/gems/servactory\"\u003e\u003cimg src=\"https://img.shields.io/gem/dt/servactory\" alt=\"Downloads\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://www.ruby-lang.org\"\u003e\u003cimg src=\"https://img.shields.io/badge/Ruby-3.2+-red\" alt=\"Ruby version\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\n## 📚 Documentation\n\nSee [servactory.com](https://servactory.com) for comprehensive documentation, including:\n\n- Detailed guides for all features\n- Advanced configuration options\n- Best practices and patterns\n- Migration guides\n- API reference\n\n## 💡 Why Servactory?\n\nBuilding reliable services shouldn't be complicated. Servactory provides a battle-tested framework for creating service objects with:\n\n- 🛡️ **Type Safety** - Enforce types on inputs and outputs, catch errors early\n- ✅ **Built-in Validation** - Rich validation DSL with custom rules\n- 🧪 **Test-Friendly** - RSpec matchers and service mocking helpers\n- 📊 **Structured Output** - Consistent Result object pattern\n- 🔧 **Highly Configurable** - Extensions, helpers, and custom options\n- 📚 **Well Documented** - Comprehensive guides and examples\n\n## 🚀 Quick Start\n\n### Installation\n\n```ruby\ngem \"servactory\"\n```\n\n### Define service\n\n```ruby\nclass UserService::Authenticate \u003c Servactory::Base\n  input :email, type: String\n  input :password, type: String\n\n  output :user, type: User\n\n  make :authenticate!\n\n  private\n\n  def authenticate!\n    if (user = User.authenticate_by(email: inputs.email, password: inputs.password)).present?\n      outputs.user = user\n    else\n      fail!(message: \"Authentication failed\", meta: { email: inputs.email })\n    end\n  end\nend\n```\n\n### Usage in controller\n\n```ruby\nclass SessionsController \u003c ApplicationController\n  def create\n    service = UserService::Authenticate.call(**session_params)\n\n    if service.success?\n      session[:current_user_id] = service.user.id\n      redirect_to service.user\n    else\n      flash.now[:alert] = service.error.message\n      render :new, status: :unprocessable_entity\n    end\n  end\n\n  private\n\n  def session_params\n    params.require(:session).permit(:email, :password)\n  end\nend\n```\n\n## 🤝 Contributing\n\nWe love contributions! Check out our [Contributing Guide](https://servactory.com/CONTRIBUTING) to get started.\n\n**Ways to contribute:**\n- 🐛 Report bugs and issues\n- 💡 Suggest new features\n- 📝 Improve documentation\n- 🧪 Add test cases\n- 🔧 Submit pull requests\n\n## 🙏 Acknowledgments\n\nSpecial thanks to all our [contributors](https://github.com/servactory/servactory/graphs/contributors)!\n\n## 📄 License\n\nServactory is available as open source under the terms of the [MIT License](./LICENSE).\n","funding_links":[],"categories":["Business logic"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservactory%2Fservactory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fservactory%2Fservactory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fservactory%2Fservactory/lists"}