{"id":20405628,"url":"https://github.com/nitrictech/node-sdk","last_synced_at":"2025-04-05T05:04:26.849Z","repository":{"id":36985758,"uuid":"309276515","full_name":"nitrictech/node-sdk","owner":"nitrictech","description":"Node SDK for Nitric","archived":false,"fork":false,"pushed_at":"2025-03-06T00:59:48.000Z","size":2157,"stargazers_count":69,"open_issues_count":9,"forks_count":5,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-28T16:21:27.570Z","etag":null,"topics":["backend","cloud","javascript","js","nitric","node","node-js","serverless","ts","typescript"],"latest_commit_sha":null,"homepage":"https://nitric.io","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nitrictech.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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},"funding":{"github":"nitrictech"}},"created_at":"2020-11-02T06:20:15.000Z","updated_at":"2025-03-10T03:31:17.000Z","dependencies_parsed_at":"2024-02-19T04:30:36.187Z","dependency_job_id":"21f8b8f5-fdb0-4395-8ace-d047e4697c3a","html_url":"https://github.com/nitrictech/node-sdk","commit_stats":{"total_commits":412,"total_committers":12,"mean_commits":"34.333333333333336","dds":0.6213592233009708,"last_synced_commit":"04df14cbc9e07214a913c7ce3474f2620163d19a"},"previous_names":[],"tags_count":161,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fnode-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fnode-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fnode-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nitrictech%2Fnode-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nitrictech","download_url":"https://codeload.github.com/nitrictech/node-sdk/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247289424,"owners_count":20914464,"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":["backend","cloud","javascript","js","nitric","node","node-js","serverless","ts","typescript"],"created_at":"2024-11-15T05:12:12.193Z","updated_at":"2025-04-05T05:04:26.817Z","avatar_url":"https://github.com/nitrictech.png","language":"JavaScript","funding_links":["https://github.com/sponsors/nitrictech"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://nitric.io\"\u003e\n    \u003cimg src=\"assets/nitric-logo.svg\" width=\"120\" alt=\"Nitric Logo\"/\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  Build \u003ca href=\"https://nitric.io\"\u003eNitric\u003c/a\u003e applications with Node.js\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://codecov.io/gh/nitrictech/node-sdk\"\u003e\n    \u003cimg alt=\"codecov\" src=\"https://img.shields.io/codecov/c/github/nitrictech/node-sdk?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.org/package/@nitric/sdk\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/npm/v/@nitric/sdk.svg?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://npmjs.org/package/@nitric/sdk\"\u003e\n    \u003cimg alt=\"Downloads/week\" src=\"https://img.shields.io/npm/dw/@nitric/sdk.svg?style=for-the-badge\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://discord.gg/Webemece5C\"\u003e\u003cimg alt=\"Discord\" src=\"https://img.shields.io/discord/955259353043173427?label=discord\u0026style=for-the-badge\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThe NodeJS SDK supports the use of the Nitric framework with NodeJS 12+. For more information, check out the main [Nitric repo](https://github.com/nitrictech/nitric).\n\nNitric SDKs provide an infrastructure-as-code style that lets you define resources in code. You can also write the functions that support the logic behind APIs, subscribers and schedules.\n\nYou can request the type of access you need to resources such as publishing for topics, without dealing directly with IAM or policy documents.\n\n- Reference Documentation: https://nitric.io/docs/reference/nodejs\n- Guides: https://nitric.io/docs/guides/nodejs\n\n## Usage\n\n### Starting a new project\n\nInstall the [Nitric CLI](https://nitric.io/docs/getting-started/installation), then generate your project:\n\nTypeScript:\n\n```bash\nnitric new hello-world ts-starter\n```\n\nJavaScript:\n\n```bash\nnitric new hello-world js-starter\n```\n\n### Add to an existing project\n\nFirst of all, you need to install the library:\n\n```bash\nnpm install @nitric/sdk\n```\n\nThen you're able to import the library and create cloud resources:\n\n```typescript\nimport { api, bucket } from '@nitric/sdk';\n\nconst publicApi = api('public');\nconst uploads = bucket('uploads').allow('write');\n\npublicApi.get('/upload', async (ctx) =\u003e {\n  const photo = uploads.file('images/photo.png');\n\n  const url = await photo.getUploadUrl({\n    expiry: 300,\n  });\n\n  return ctx.res.json({ url });\n});\n```\n\n## Learn more\n\nLearn more by checking out the [Nitric documentation](https://nitric.io/docs).\n\n## Get in touch:\n\n- Join us on [Discord](https://nitric.io/chat)\n\n- Ask questions in [GitHub discussions](https://github.com/nitrictech/nitric/discussions)\n\n- Find us on [Twitter](https://twitter.com/nitric_io)\n\n- Send us an [email](mailto:maintainers@nitric.io)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrictech%2Fnode-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnitrictech%2Fnode-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnitrictech%2Fnode-sdk/lists"}