New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@nitric/sdk

Package Overview
Dependencies
Maintainers
5
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nitric/sdk

Nitric NodeJS client sdk

latest
Source
npmnpm
Version
1.4.2
Version published
Maintainers
5
Created
Source

Nitric Logo

Build Nitric applications with Node.js

codecov Version Downloads/week Discord

The NodeJS SDK supports the use of the Nitric framework with NodeJS 12+. For more information, check out the main Nitric repo.

Nitric 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.

You can request the type of access you need to resources such as publishing for topics, without dealing directly with IAM or policy documents.

Usage

Starting a new project

Install the Nitric CLI, then generate your project:

TypeScript:

nitric new hello-world ts-starter

JavaScript:

nitric new hello-world js-starter

Add to an existing project

First of all, you need to install the library:

npm install @nitric/sdk

Then you're able to import the library and create cloud resources:

import { api, bucket } from '@nitric/sdk';

const publicApi = api('public');
const uploads = bucket('uploads').allow('write');

publicApi.get('/upload', async (ctx) => {
  const photo = uploads.file('images/photo.png');

  const url = await photo.getUploadUrl({
    expiry: 300,
  });

  return ctx.res.json({ url });
});

Learn more

Learn more by checking out the Nitric documentation.

Get in touch:

FAQs

Package last updated on 17 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts