{"id":20050301,"url":"https://github.com/watzon/wrapi","last_synced_at":"2025-08-02T11:34:32.216Z","repository":{"id":91428485,"uuid":"189138981","full_name":"watzon/wrapi","owner":"watzon","description":"REST API wrapping framework written in Crystal","archived":false,"fork":false,"pushed_at":"2019-05-29T04:33:07.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-02T08:30:17.407Z","etag":null,"topics":["api","api-client","api-framework","api-struct","api-wrapper","api-wrapping-framework","apistruct","crystal","crystal-lang","crystal-language","ruby","wrapi"],"latest_commit_sha":null,"homepage":null,"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/watzon.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-05-29T02:50:08.000Z","updated_at":"2019-05-31T10:40:16.000Z","dependencies_parsed_at":"2024-02-06T16:02:24.552Z","dependency_job_id":null,"html_url":"https://github.com/watzon/wrapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/watzon/wrapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watzon%2Fwrapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watzon%2Fwrapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watzon%2Fwrapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watzon%2Fwrapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/watzon","download_url":"https://codeload.github.com/watzon/wrapi/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/watzon%2Fwrapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268378976,"owners_count":24240910,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","api-client","api-framework","api-struct","api-wrapper","api-wrapping-framework","apistruct","crystal","crystal-lang","crystal-language","ruby","wrapi"],"created_at":"2024-11-13T11:56:12.054Z","updated_at":"2025-08-02T11:34:32.178Z","avatar_url":"https://github.com/watzon.png","language":"Crystal","readme":"# Wrapi\n\nWrapi is a framework that gives structure and uniformity to the writing of REST API wrappers. Rather than having to define your own client, create deserialization objects, manually manage headers, paginate responses, etc. etc. you can instead extend Wrapi and make your developent process faster, your code cleaner, and yourself happier.\n\nKeep in mind that none of the documented features work yet. This is a work in progress.\n\n## Installation\n\n1. Add the dependency to your `shard.yml`:\n\n   ```yaml\n   dependencies:\n     wrapi:\n       github: watzon/wrapi\n   ```\n\n2. Run `shards install`\n\nShards will place a `wrapi` executable in your `bin` directory which can be used to scaffold a project and generate useful boilerplate code.\n\n### CLI\n\nThe CLI is the easiest way to generate the boilerplate code for a new project. To run it, make sure you've run `shards install` and then run the `wrapi` executable in the `bin` directory.\n\n```shell\n./bin/wrapi init\n```\n\nThe `init` command will generate a configuration file for you at `src/wrapi_config.cr`.\n\n```crystal\nWrapi::Settings.configure do |config|\n\n  # Set the User-Agent header  \n  config.user_agent = \"Wrapi (crystal lib) - #{Wrapi::VERSION}\"\n\n  # Headers can also be set manually. These will be merged with other\n  # options that change headers, with these values taing presidence.\n  config.headers = {\"Accept\" =\u003e \"application/vnd.github.v3+json\"}\n\n  config.add_endpoint :default, root: \"https://api.github.com\"\n\nend\n```\n\n## Development\n\nTODO: Write development instructions here\n\n## Contributing\n\n1. Fork it (\u003chttps://github.com/watzon/wrapi/fork\u003e)\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n\n## Contributors\n\n- [Chris Watson](https://github.com/watzon) - creator and maintainer\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatzon%2Fwrapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwatzon%2Fwrapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwatzon%2Fwrapi/lists"}