npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@nivo-lat/sdk

v0.3.0

Published

Official Nivo SDK

Readme

@nivo-lat/sdk

Official Node.js SDK for Nivo.

Installation

npm install @nivo-lat/sdk

Usage

import { NivoAPI } from '@nivo-lat/sdk'

const nivo = new NivoAPI('your-api-key')

Get your API key from the Nivo dashboard under Settings > API Keys.

Auth

import { createClient } from '@nivo-lat/sdk'

const nivo = createClient('https://api.nivo.lat', 'nivo_pub_...')

await nivo.auth.signUp({ email: '[email protected]', password: 'secret123' })
await nivo.auth.signIn.withMagicLink({ email: '[email protected]' })

await nivo.auth.signIn.withSms({ phone: '+5511999999999' })
await nivo.auth.verifySmsOtp({ phone: '+5511999999999', token: '123456' })

Managed Mail & SMS

Managed messaging requires a secret project key.

const nivo = createClient('https://api.nivo.lat', 'nivo_secret_...')

await nivo.mail.send({
  to: '[email protected]',
  subject: 'Welcome',
  html: '<p>Hello from Nivo</p>',
})

await nivo.sms.send({
  to: '+5511999999999',
  message: 'Your code is 123456',
})

Apps

// List all apps
const apps = await nivo.apps.list()

// Create a zip-upload app
const app = await nivo.apps.create({
  name: 'customer-123-bot',
  type: 'site',
  buildSystem: 'nivopack',
  runtime: 'node20',
  startCmd: 'npm start',
  sourceType: 'zip',
  envVars: { CUSTOMER_TOKEN: 'secret' },
})

// Upload new code and wait for deployment
await nivo.apps.uploadAndWait(app.id, './app.zip')

// Create a GitHub app
const githubApp = await nivo.apps.create({
  name: 'github-bot',
  sourceType: 'github',
  repoFullName: 'company/bot-template',
  repoBranch: 'main',
  startCmd: 'npm start',
})

// Deploy latest GitHub commit from the configured branch
await nivo.apps.deployAndWait(githubApp.id)

// Manage runtime
await nivo.apps.restart(app.id)
await nivo.apps.updateRam(app.id, 512)
const stats = await nivo.apps.stats(app.id)

// Fetch runtime logs
const logs = await nivo.apps.logs(app.id, { tail: 200 })

// Merge env vars without deleting existing keys
await nivo.apps.updateEnv(app.id, { CUSTOMER_TOKEN: 'new-token' })

// Explicit full replacement
await nivo.apps.replaceEnv(app.id, { ONLY_THIS: 'value' })

Databases

// List databases
const databases = await nivo.databases.list()

// Create a database
const db = await nivo.databases.create({
  name: 'customer_123',
  password: 'strong-password',
  engine: 'postgresql',
  ramMb: 512,
})

await nivo.databases.restart(db.id)
await nivo.databases.updateRam(db.id, 1024)
const dbStats = await nivo.databases.stats(db.id)

// Execute a query
const result = await nivo.databases.query(db.id, 'SELECT * FROM users LIMIT 10')

// List tables
const tables = await nivo.databases.tables(db.id)

// Get rows from a table
const rows = await nivo.databases.tableRows(db.id, 'users', { limit: 50 })

Storage

// List buckets
const buckets = await nivo.storage.listBuckets()

// Create a bucket
const bucket = await nivo.storage.createBucket({ name: 'customer-assets', public: false })

// Upload a file
const uploaded = await nivo.storage.upload(bucket.id, fileBuffer, {
  filename: 'photo.png',
  folder: 'avatars',
})

// List files
const files = await nivo.storage.listFiles(bucket.id)

// Signed private download URL
const url = await nivo.storage.signedUrl(uploaded.file.id)

Error handling

import { NivoAPI, NivoError } from '@nivo-lat/sdk'

try {
  await nivo.apps.get('invalid-id')
} catch (err) {
  if (err instanceof NivoError) {
    console.error(err.status, err.message)
  }
}