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

@nextsdk/core

v1.0.8

Published

NEXT SDK for JavaScript/TypeScript - Library for integrating .next file reading

Downloads

966

Readme

NEXT SDK

Main library for integrating .next file reading in websites and applications. Handles decryption, license validation, and provides a complete API for displaying interactive content.

🎯 Supported Languages

The NEXT SDK is focused on JavaScript/TypeScript for the web (websites, PWAs, web applications).

✨ Features

  • File Processing: Decrypt and parse .next files with advanced AES encryption
  • Interactive Content: Display pages with hotspots, translations, and responsive design
  • Audio Management: Advanced audio controls with auto-play, preloading, visibility policies, and global audio button
  • License System: Server-side license validation via API with domain-based access control
  • TypeScript Support: Full TypeScript definitions and type safety
  • Modern Web APIs: Built for modern browsers with ES modules (ESM), CommonJS (CJS), and UMD support
  • Performance Optimized: Intelligent caching, preloading, memory management, and file checksum validation
  • Accessibility: Built-in accessibility features and responsive design
  • API Integration: Built-in API client for server communication and file retrieval from cloud storage
  • Component Library: Pre-built React components for audio menu and global audio controls

📁 Project Structure

next-sdk/
├── src/                      # JavaScript/TypeScript source code
│   ├── components/           # React/UI components
│   ├── localization/         # Localization messages
│   ├── schemas/              # JSON schemas
│   ├── utils/                # Utility functions
│   └── __tests__/            # Unit and integration tests
├── dist/                     # Built packages (ESM, CJS, UMD)
├── examples/
├── tests/
│   ├── compatibility/        # Browser and Node.js compatibility tests
│   └── js/                   # JavaScript/TypeScript test utilities
├── docs/                     # Documentation
├── scripts/                  # Build and utility scripts
├── package.json              # NPM package configuration
├── tsconfig.json             # TypeScript configuration
├── rollup.config.mjs         # Rollup build configuration
└── jest.config.js            # Jest test configuration

🚀 Installation

JavaScript/TypeScript

npm install @nextsdk/core

📖 Documentation

📦 Exports

The SDK exports the following modules and types:

Core Classes

  • NextSdk - Main SDK class
  • EncryptionService - Encryption/decryption service
  • SdkApiClient - API client for server communication
  • ContentParser - Content parsing utilities
  • StyleUtils - Style utility functions

Audio System

  • AudioController - Audio playback controller
  • PageVisibilityAudio - Page visibility audio management
  • GlobalAudioConfigManager - Global audio configuration manager
  • GlobalAudioButtonManager - Global audio button manager
  • GlobalAudioButton - Global audio button component
  • AudioMenu - Audio menu component

Utilities

  • log - Logger utility
  • createError - Error creation utility

Types

All TypeScript types are exported for type safety and IntelliSense support.

🔐 License

Paid license required for commercial use. See NEXT Dashboard to obtain a license.

🛠️ Development

Prerequisites

  • Node.js 20+
  • npm 8+

Quick Start

# Install dependencies
npm ci

# Run tests
npm test

# Build package
npm run build

Full Development Setup

# Install SDK dependencies
npm ci

# Install test dependencies (if tests/js has separate package.json)
cd tests/js && npm ci && cd ../..

# Install example dependencies
cd examples/web && npm ci && cd ../..

# Run all tests
npm test

# Build SDK
npm run build

# Run example
cd examples/web && npm run dev

Available Scripts

npm run build          # Build the SDK
npm run build:dev      # Build in development mode
npm run dev            # Watch mode build
npm test               # Run all tests
npm run test:watch     # Run tests in watch mode
npm run test:coverage  # Run tests with coverage
npm run test:integration        # Run integration tests
npm run test:integration:security    # Run security coordination tests
npm run test:integration:performance # Run performance load tests
npm run test:integration:browser     # Run cross-browser tests
npm run test:integration:unauthorized # Run unauthorized access tests
npm run test:integration:all         # Run all integration tests
npm run test:compatibility      # Run compatibility tests
npm run test:node-versions      # Test Node.js version compatibility
npm run lint           # Lint code
npm run lint:fix       # Fix linting issues
npm run type-check     # TypeScript type checking
npm run format         # Format code with Prettier
npm run format:check   # Check code formatting
npm run analyze        # Analyze bundle size
npm run analyze:size   # Analyze bundle size details