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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@fincuratech/nexhealth-sdk-js

v1.0.0

Published

NexHealth SDK JS - TypeScript SDK for NexHealth APIs

Readme

NexHealth SDK for JavaScript/TypeScript

TypeScript SDK for NexHealth APIs. This library provides type-safe wrappers for NexHealth's REST APIs, enabling integration with dozens of health record systems using a single universal API.

[!NOTE] This is an unofficial third-party SDK for integrating with NexHealth APIs. It is not affiliated with or endorsed by NexHealth. Learn more about us.

npm version TypeScript License: MIT

Features

  • Complete TypeScript definitions for API methods and responses
  • Type-safe client for NexHealth REST APIs
  • Flexible logging with support for custom loggers (Winston, Pino, etc.)

Table of Contents

Requirements

  • Node.js >= 20.x
  • TypeScript >= 5.0 (for development)

Installation

npm install @fincuratech/nexhealth-sdk-js

or with yarn:

yarn add @fincuratech/nexhealth-sdk-js

or with pnpm:

pnpm add @fincuratech/nexhealth-sdk-js

Quick Start

import { createNexHealthClient } from '@fincuratech/nexhealth-sdk-js';

// Initialize the client with your NexHealth API key
const nexhealth = createNexHealthClient('your-nexhealth-api-key');

// Use the client to interact with NexHealth APIs
// Endpoints will be documented as they are implemented

API Reference

API endpoints are being implemented. See the NexHealth API Documentation for available endpoints.

TypeScript Support

This SDK is written in TypeScript and provides full type definitions.

Type-Safe Usage

import { createNexHealthClient } from '@fincuratech/nexhealth-sdk-js';

const nexhealth = createNexHealthClient(process.env.NEXHEALTH_API_KEY!);

// TypeScript provides full intellisense and type checking

Logging

The SDK is silent by default in production to avoid cluttering your application logs. However, you can enable logging for debugging or integrate your own logging solution.

Default Behavior

By default, the SDK uses a no-op logger that doesn't output anything:

import { createNexHealthClient } from '@fincuratech/nexhealth-sdk-js';

const nexhealth = createNexHealthClient('your-api-key');
// No logging output - silent by default

Enable Console Logging

For development and debugging, you can enable console logging:

import { createNexHealthClient, setLogger, createConsoleLogger } from '@fincuratech/nexhealth-sdk-js';

// Enable console logging at 'debug' level
setLogger(createConsoleLogger('debug'));

const nexhealth = createNexHealthClient('your-api-key');

// Now you'll see debug logs in the console:
// [nexhealth-sdk] DEBUG: NexHealth API request { method: 'GET', path: '/patients', ... }
// [nexhealth-sdk] DEBUG: NexHealth API response { status: 200, ... }

Available log levels (from most to least verbose):

  • 'debug' - Shows all logs including request/response details
  • 'info' - Shows informational messages
  • 'warn' - Shows warnings only
  • 'error' - Shows errors only

Custom Logger Integration

You can integrate any logging framework (Winston, Pino, Bunyan, etc.) by implementing the Logger interface:

Winston Example

import { createNexHealthClient, setLogger, type Logger } from '@fincuratech/nexhealth-sdk-js';
import winston from 'winston';

// Create your Winston logger
const winstonLogger = winston.createLogger({
  level: 'info',
  format: winston.format.combine(
    winston.format.timestamp(),
    winston.format.json()
  ),
  transports: [
    new winston.transports.Console(),
    new winston.transports.File({ filename: 'nexhealth-sdk.log' }),
  ],
});

// Adapt Winston to the Logger interface
const nexhealthLogger: Logger = {
  debug: (message, meta) => winstonLogger.debug(message, meta),
  info: (message, meta) => winstonLogger.info(message, meta),
  warn: (message, meta) => winstonLogger.warn(message, meta),
  error: (message, meta) => winstonLogger.error(message, meta),
};

// Set the custom logger
setLogger(nexhealthLogger);

const nexhealth = createNexHealthClient('your-api-key');
// All SDK logs now go through Winston

Pino Example

import { createNexHealthClient, setLogger, type Logger } from '@fincuratech/nexhealth-sdk-js';
import pino from 'pino';

const pinoLogger = pino({
  level: 'debug',
  transport: {
    target: 'pino-pretty',
  },
});

const nexhealthLogger: Logger = {
  debug: (message, meta) => pinoLogger.debug(meta, message),
  info: (message, meta) => pinoLogger.info(meta, message),
  warn: (message, meta) => pinoLogger.warn(meta, message),
  error: (message, meta) => pinoLogger.error(meta, message),
};

setLogger(nexhealthLogger);

const nexhealth = createNexHealthClient('your-api-key');

Logger Interface

The SDK defines a simple logger interface that any logging solution can implement:

interface Logger {
  debug(message: string, meta?: Record<string, unknown>): void;
  info(message: string, meta?: Record<string, unknown>): void;
  warn(message: string, meta?: Record<string, unknown>): void;
  error(message: string, meta?: Record<string, unknown>): void;
}

Contributing

Contributions are welcome. Please follow these guidelines:

Development Setup

Use pnpm - npm has issues with platform-specific native bindings (especially on macOS). Install pnpm globally:

npm install -g pnpm
# or with Corepack (Node.js 16.9+)
corepack enable

Then:

# Clone
git clone https://github.com/fincura-ai/nexhealth-sdk-js.git
cd nexhealth-sdk-js

# Install dependencies
pnpm install

# Run tests
pnpm test

# Run linter
pnpm run lint

# Build
pnpm run build

Guidelines

  • Write tests for new features
  • Follow the existing code style
  • Update documentation for API changes
  • Ensure all tests pass before submitting PRs
  • Use conventional commit messages

Testing

# Run all tests
pnpm test

# Run tests in watch mode
pnpm test -- --watch

# Run tests with coverage
pnpm test -- --coverage

License

This project is licensed under the MIT License - see the LICENSE file for full details.

Copyright (c) 2024 Fincura Technologies, Inc.

Resources

Support

For issues and questions:

About Us

Developed by Fincura Technologies, Inc.

We provide healthcare practices and providers with automated insurance payment reconciliation and posting software, enabling provider staff to get paid 2.5x faster by payers and automate 40 hours per month in payment reconciliations.

Our platform leverages multiple sources to access ERA 835 payment remittance details of health insurance claims, including direct payer integrations and clearinghouse partners. This SDK powers integrations with NexHealth's APIs for patient management, scheduling, and practice data synchronization.