{"id":19574071,"url":"https://github.com/acode/lib-node","last_synced_at":"2025-07-27T02:34:35.471Z","repository":{"id":44754988,"uuid":"79965888","full_name":"acode/lib-node","owner":"acode","description":"Autocode standard library Node.js bindings","archived":false,"fork":false,"pushed_at":"2023-09-20T23:10:05.000Z","size":59,"stargazers_count":67,"open_issues_count":6,"forks_count":19,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-07-02T20:55:06.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/acode.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,"publiccode":null,"codemeta":null}},"created_at":"2017-01-24T23:44:05.000Z","updated_at":"2023-09-26T03:02:46.000Z","dependencies_parsed_at":"2024-06-18T13:53:15.962Z","dependency_job_id":null,"html_url":"https://github.com/acode/lib-node","commit_stats":{"total_commits":74,"total_committers":3,"mean_commits":"24.666666666666668","dds":"0.21621621621621623","last_synced_commit":"0cb49894c26bd26529e2d3991f4a11dfc0a9d712"},"previous_names":["stdlib/lib-node"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/acode/lib-node","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acode%2Flib-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acode%2Flib-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acode%2Flib-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acode%2Flib-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acode","download_url":"https://codeload.github.com/acode/lib-node/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acode%2Flib-node/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267289402,"owners_count":24064726,"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-07-27T02:00:11.917Z","response_time":82,"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":[],"created_at":"2024-11-11T06:38:01.013Z","updated_at":"2025-07-27T02:34:35.437Z","avatar_url":"https://github.com/acode.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autocode standard library Node.js bindings\n\nBasic Node bindings for Autocode standard library service accession (Node 4+).\n\nUsed to interface with services built using [Autocode](https://autocode.com) and\nthe [Autocode CLI](https://github.com/acode/lib).\n\nThe `lib` package is available on [npm: lib](https://npmjs.org/package/lib) and\noperates as zero-dependency interface to run Autocode standard library APIs and\nweb services. This means that you can utilize any service on Autocode without\ninstalling any additional dependencies, and when you've deployed services to Autocode,\nyou have a pre-built Node.js SDK --- for example;\n\n### Callback Style\n\n```javascript\nconst lib = require('lib');\nlib.yourUsername.hostStatus({name: 'Dolores Abernathy'}, (err, result) =\u003e {\n\n  // handle result\n\n});\n```\n\n### Promise Style\n\n```javascript\nconst lib = require('lib');\nlib.yourUsername.hostStatus({name: 'Dolores Abernathy'})\n  .then(result =\u003e /* handle result */)\n  .catch(err =\u003e /* handle error */);\n```\n\nTo explore the Autocode standard library, visit https://autocode.com/lib/.\nTo build a web service or standard library API, sign up on https://autocode.com/.\n\n## Installation\n\nTo install locally in a project, use;\n\n```shell\n$ npm install lib --save\n```\n\n## Usage\n\n```javascript\nconst lib = require('lib');\n\n// [1]: Call \"utils.greet\" function, the latest version, from Autocode\nlet message = await lib.utils.greet({name: 'Lionel Hutz'});\n\n// [2]: Call \"utils.greet\" function with \"dev\" environment\nlet message = await lib.utils.greet['@dev']({name: 'Lionel Hutz'});\n\n// [3]: Call \"utils.greet\" function with \"release\" environment\n//      This is equivalent to (1)\nlet message = await lib.utils.greet['@release']({name: 'Lionel Hutz'});\n\n// [4]: Call \"utils.greet\" function with specific version\n//      if latest version, this is equivalent to (1)\nlet message = await lib.utils.greet['@0.0.1']({name: 'Lionel Hutz'});\n\n// [5]: Call another endpoint within the \"utils.greet\" service\nlet message = await lib.utils.greet['@dev'].otherEndpoint();\n\n// You can compose calls dynamically as well by using a string key\nawait lib['utils.greet']({name: 'Lionel Hutz'});\nawait lib['utils.greet[@dev]']({name: 'Lionel Hutz'});\nawait lib['utils.greet[@release]']({name: 'Lionel Hutz'});\nawait lib['utils.greet[@0.0.1]']({name: 'Lionel Hutz'});\nawait lib['utils.greet.otherEndpoint']({name: 'Lionel Hutz'});\nawait lib['utils.greet[@dev].otherEndpoint']({name: 'Lionel Hutz'});\nawait lib['utils.greet[@release].otherEndpoint']({name: 'Lionel Hutz'});\nawait lib['utils.greet[@0.0.1].otherEndpoint']({name: 'Lionel Hutz'});\n```\n\n## Additional Information\n\nTo learn more about Autocode, visit [autocode.com](https://autocode.com) or read the\n[Autocode CLI documentation on GitHub](https://github.com/acode/lib).\n\nYou can follow the development team on Twitter, [@AutocodeHQ](https://twitter.com/AutocodeHQ)\n\nAutocode is \u0026copy; 2016 - 2021 Polybit Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facode%2Flib-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facode%2Flib-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facode%2Flib-node/lists"}