{"id":19179516,"url":"https://github.com/hypermedia-app/alcaeus","last_synced_at":"2025-04-13T00:11:16.926Z","repository":{"id":38321290,"uuid":"55887007","full_name":"hypermedia-app/Alcaeus","owner":"hypermedia-app","description":"Hydra core hypermedia library","archived":false,"fork":false,"pushed_at":"2024-09-23T14:23:30.000Z","size":10163,"stargazers_count":61,"open_issues_count":21,"forks_count":3,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-16T19:15:09.745Z","etag":null,"topics":["heracles","hydra","hypermedia","json-ld","rest","rest-api"],"latest_commit_sha":null,"homepage":"https://alcaeus.hydra.how","language":"TypeScript","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/hypermedia-app.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"publiccode":null,"codemeta":null},"funding":{"ko_fi":"Hypermedia_App"}},"created_at":"2016-04-10T07:47:30.000Z","updated_at":"2024-07-27T12:31:41.000Z","dependencies_parsed_at":"2024-02-15T14:52:10.801Z","dependency_job_id":"8267dca5-da44-42c0-8140-2b915ae70e7f","html_url":"https://github.com/hypermedia-app/Alcaeus","commit_stats":{"total_commits":970,"total_committers":7,"mean_commits":"138.57142857142858","dds":"0.10721649484536078","last_synced_commit":"e0ac5049b9a5f278a36e2f4e5a18215a0cf8ce12"},"previous_names":["wikibus/heracles","wikibus/alcaeus"],"tags_count":135,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermedia-app%2FAlcaeus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermedia-app%2FAlcaeus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermedia-app%2FAlcaeus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hypermedia-app%2FAlcaeus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hypermedia-app","download_url":"https://codeload.github.com/hypermedia-app/Alcaeus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647297,"owners_count":21139086,"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":["heracles","hydra","hypermedia","json-ld","rest","rest-api"],"created_at":"2024-11-09T10:43:23.000Z","updated_at":"2025-04-13T00:11:16.906Z","avatar_url":"https://github.com/hypermedia-app.png","language":"TypeScript","funding_links":["https://ko-fi.com/Hypermedia_App"],"categories":[],"sub_categories":[],"readme":"# Alcaeus [![npm version](https://badge.fury.io/js/alcaeus.svg)](https://badge.fury.io/js/alcaeus) ![](https://github.com/wikibus/Alcaeus/workflows/Test/badge.svg) [![Code coverage](https://codecov.io/gh/wikibus/alcaeus/branch/master/graph/badge.svg)](https://codecov.io/gh/wikibus/alcaeus)\n\n\n## [Hydra Core](http://www.hydra-cg.com/spec/latest/core/) library for JavaScript\n\nAlcaeus (pronounced \u003ccode\u003eAL-SEE-UHS\u003c/code\u003e) is a Node.js/browser library for consuming Hydra APIs.\n\nAlcaeus is the birth name of Heracles. The demigod who defeated Hydra.\n\n## Installation\n\nUse npm or yarn:\n\n``` bash\nnpm i alcaeus\n```\n\n## Requirements\n\nAlcaues `v3` is implemented only as ES Modules. It will work in recent versions on node and modern browsers.\n\n## Usage\n\nSince `v3` Alcaeus is configured using an RDF/JS Environment factory. This decouples the library from any specific RDF/JS implementation.\n\nIt is recommended to use the implementation provided by `@zazuko/env` which allows to easily reuse extend existing environments.\n\n```js\nimport create from 'alcaeus'\nimport Environment from '@zazuko/env/Environment.js'\nimport rdf from '@zazuko/env'\n\nconst env = new Environment(create(), { parent: rdf })\n\nconst { response, representation } = await env.hydra.loadResource('http://example.com/resource');\nconst rootResource = representation.root;\n\n// contains supported classes, operations, etc.\nconst apiDocs = Hydra.apiDocumentations[0];\n    \nconst id = rootResource.id; \n```\n\nTo learn more, head to http://alcaeus.hydra.how.\n\n## License\n\nMIT\n\n[p1]: https://github.com/github/fetch\n[p3]: https://developer.mozilla.org/pl/docs/Web/JavaScript/Reference/Global_Objects/WeakMap\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypermedia-app%2Falcaeus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhypermedia-app%2Falcaeus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhypermedia-app%2Falcaeus/lists"}