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

@norskhelsenett/zeniki

v0.5.13

Published

A API communication library for commonly used network hardware and tools

Downloads

396

Readme

Zeniki

A TypeScript API communication library for commonly used network hardware and tools

npm version TypeScript License: Apache-2.0

Zeniki is a modern TypeScript library that provides type-safe, well-documented drivers for network infrastructure platforms including NetBox IPAM, FortiGate firewalls, VMware NSX, and Network Architecture Management (NAM) v2. Features comprehensive type safety with NHN-specific custom field types, immutable API responses, and enterprise-grade network automation capabilities.

⚠️ Breaking Changes in v0.5.0

SubDriver Architecture: Version 0.5.0 introduces a new SubDriver architecture that changes how you access driver methods. The last version supporting the old implementation is 0.4.x.

Migration Guide

Old Implementation (v0.4.x and earlier):

const netbox = new NetboxDriver({ baseURL: '...', headers: {...} });

// Methods called directly on driver instance
const prefixes = await netbox.getPrefixes({ status: 'active' });
const prefix = await netbox.addPrefix({ prefix: '10.0.0.0/24' });
const devices = await netbox.getDevices({ site: 1 });

New Implementation (v0.5.0+):

const netbox = new NetboxDriver({ baseURL: '...', headers: {...} });

// Methods organized into sub-drivers by resource type
const prefixes = await netbox.prefixes.getPrefixes({ status: 'active' });
const prefix = await netbox.prefixes.addPrefix({ prefix: '10.0.0.0/24' });
const devices = await netbox.devices.getDevices({ site: 1 });

Key Changes:

  • Access methods through resource-specific sub-drivers (e.g., netbox.prefixes, netbox.devices, netbox.vlans)
  • Better organization and discoverability of API methods
  • Improved type safety and IntelliSense support

Installation

Install from npm

Zeniki is now publicly available on npm:

npm install @norskhelsenett/zeniki

Deno installation

# Add to your import map or import directly
deno add npm:@norskhelsenett/zeniki

Or import directly in your Deno code:

import { NetboxDriver } from "npm:@norskhelsenett/zeniki";

Quick Start

NetBox Integration Example

import { 
  NetboxDriver, 
  NetboxPrefixStatus,
  NHN_CommonNetboxExtraChoicesEnvironment
} from '@norskhelsenett/zeniki';

const netbox = new NetboxDriver({
  baseURL: 'https://netbox.example.com/api',
  headers: { 'Authorization': 'Token your-api-token' }
});

// Create prefix using sub-driver with type-safe enums
const prefix = await netbox.prefixes.addPrefix({
  prefix: '192.168.1.0/24',
  description: 'Development Network',
  status: NetboxPrefixStatus.Active,
  site: 1,
  custom_fields: {
    environment: NHN_CommonNetboxExtraChoicesEnvironment.dev,
    domain: 'dev.example.com'
  }
});

// Get prefixes using sub-driver
const prefixes = await netbox.prefixes.getPrefixes({
  status: 'active',
  family: 4
});

// Access other sub-drivers
const devices = await netbox.devices.getDevices({ site: 1 });
const vlans = await netbox.vlans.getVlans({ status: 'active' });

console.log(`Created prefix: ${prefix.prefix}`);
console.log(`Found ${prefixes.count} active prefixes`);

Documentation

Driver Documentation

Utilities

  • ⚙️ EnvLoader - Configuration and secrets management

Logging

Testing & Examples

Development

See Development Guide for building, testing, project structure, and contribution guidelines.

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Support

For support and questions:


Made with ❤️ by NHN