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

hotel-management-api-helix

v1.0.0

Published

Hotel Management API SDK - Crisis Detection & Incident Management

Readme

Helix SDK

Autonomous Crisis Detection & Incident Management with 7 AI-powered features

Integrate Helix into your application to enable predictive crisis detection, NLP incident queries, automated postmortems, compliance tracking, and more.

Features

  • 🔮 Predictive Crisis Detection - Detect patterns 28 days before incidents
  • 🤖 NLP Incident Queries - Ask questions about incidents in natural language
  • 📧 Role-Based Alerts - Different notifications for developers, managers, owners
  • 📋 Automatic Postmortems - LLM-generated 5-section PDF reports
  • 🌐 Public Status Page - Guest-facing status updates
  • 🔗 Multi-System Correlation - Find shared root causes across services
  • 📊 Compliance Logging - Audit-ready incident reports

Installation

npm install helix-sdk

Quick Start

For Node.js / Express / NestJS

import Helix from 'helix-sdk';

const helix = new Helix({
  apiKey: 'your-api-key',
  backendUrl: 'https://helix-backend.render.com', // optional
});

// Track HTTP errors automatically
app.use(helix.createMiddleware());

// Intercept unhandled errors
helix.interceptErrors();

For React / Frontend

import Helix from 'helix-sdk';

const helix = new Helix({ apiKey: 'your-api-key' });
helix.interceptErrors();

API Reference

Constructor

const helix = new Helix({
  apiKey: string;              // Required: Your Helix API key
  backendUrl?: string;          // Optional: Backend URL (default: Render deployment)
  enabled?: boolean;            // Optional: Enable/disable (default: true)
  sampleRate?: number;          // Optional: Event sampling 0-1 (default: 1.0)
});

Core Methods

Error Tracking

helix.interceptErrors();        // Auto-capture unhandled JS errors
helix.createMiddleware();       // Track HTTP requests (Express/NestJS)
helix.track(type, message, metadata); // Manual event tracking

Feature-Specific Methods

// Feature 1: Predictive Crisis Detection
helix.trackCrisisPrediction('database', 'error_spike_pattern', 'high');

// Feature 2: NLP Events
helix.trackNLPEvent('What failed this week?', 15);

// Feature 3: Role-Based Alerts
helix.trackAlertDispatch('manager', 'INC-123', 'critical');

// Feature 4: Postmortem Tracking
helix.trackPostmortemGenerated('INC-123', 5);

// Feature 5: Status Updates
helix.trackStatusUpdate('client-1', [
  { name: 'API', status: 'operational' },
  { name: 'DB', status: 'degraded' }
]);

// Feature 6-7: Correlation
helix.trackCorrelation(['INC-1', 'INC-2', 'INC-3'], 'Database crash', 0.95);

// Feature 8: Compliance Events
helix.trackComplianceEvent('incident_logged', 'INC-123', 'SOC2');

Status

const status = helix.getStatus();
// { initialized: true, enabled: true, features: [...] }

Examples

Express Middleware Integration

import express from 'express';
import Helix from 'helix-sdk';

const app = express();
const helix = new Helix({ apiKey: process.env.HELIX_API_KEY });

app.use(helix.createMiddleware());
app.use(express.json());

app.get('/api/users', (req, res) => {
  res.json({ users: [] });
});

app.listen(3000);

React Error Boundary

import { useEffect } from 'react';
import Helix from 'helix-sdk';

const helix = new Helix({ apiKey: process.env.REACT_APP_HELIX_KEY });

export function App() {
  useEffect(() => {
    helix.interceptErrors();
  }, []);

  return <div>Your App</div>;
}

Manual Crisis Tracking

// When you detect a pattern
helix.trackCrisisPrediction('payment-service', 'timeout_pattern', 'medium');

// When generating compliance reports
helix.trackComplianceEvent('report_generated', 'REP-001', 'ISO27001');

// When incidents correlate
helix.trackCorrelation(['INC-10', 'INC-11', 'INC-12'], 'DNS resolution failure', 0.92);

Configuration

Sampling (Reduce Volume)

const helix = new Helix({
  apiKey: 'your-key',
  sampleRate: 0.1, // Send 10% of events
});

Environment-Based Config

const helix = new Helix({
  apiKey: process.env.HELIX_API_KEY,
  enabled: process.env.NODE_ENV === 'production',
});

Performance

  • Latency: < 10ms (fire-and-forget async)
  • Memory: < 5MB footprint
  • Bandwidth: Compressed events, minimal overhead

Security

  • Events encrypted in transit (HTTPS)
  • API keys validated server-side
  • Never log sensitive data (passwords, tokens, PII)
  • Non-blocking, doesn't interfere with app

License

MIT

Support

📧 [email protected]
🐛 Report Issues

https://ai-guardian.dev/docs