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

@hurairabaloch/cvent_integration

v1.0.0

Published

Cvent Integration Functions for EventZero

Readme

Cvent Integration Package

A TypeScript package for integrating with Cvent's API, providing type-safe functions for event management, budget tracking, and data synchronization.

Features

  • 100% TypeScript: Fully typed with strict TypeScript configuration
  • Mongoose Integration: Proper typing for all database models
  • Cvent API Integration: Typed interfaces for Cvent API responses
  • Automated Releases: GitHub Actions for CI/CD and automated NPM publishing

Installation

npm install @EventZeroHuddle/cvent_integration

Usage

import { CventService, syncAllEventsWithCvent, connectToDB, EventModal } from '@EventZeroHuddle/cvent_integration';

// Connect to database
await connectToDB();

// Sync events from Cvent
const syncEvent = {
  _id: 'sync-id',
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
  region: 'NORTH_AMERICA',
  organizationId: 'org-id',
  maxEvents: 100,
  CventCustomFieldsEvent: [],
};

await syncAllEventsWithCvent(syncEvent);

Development

Prerequisites

  • Node.js 20+
  • npm or yarn

Setup

# Install dependencies
npm install

# Build TypeScript
npm run build

# Run linting
npm run lint

# Watch mode for development
npm run dev

GitHub Actions Workflows

This repository includes three GitHub Actions workflows:

1. CI Workflow (.github/workflows/ci.yml)

  • Triggers: Pull requests to main branch
  • Purpose: Ensures code quality and build integrity
  • Actions:
    • TypeScript compilation
    • Linting
    • Build artifact verification

2. Release Workflow (.github/workflows/release.yml)

  • Triggers: Push to main branch
  • Purpose: Simple automated release with incremental versioning
  • Actions:
    • Build and test
    • Create GitHub release
    • Publish to NPM
    • Create git tags

3. Semantic Release Workflow (.github/workflows/semantic-release.yml)

  • Triggers: Push to main branch
  • Purpose: Intelligent versioning based on conventional commits
  • Actions:
    • Analyze commit messages
    • Generate changelog
    • Determine version bump (patch/minor/major)
    • Publish to NPM
    • Create GitHub release

Commit Convention

For semantic versioning to work properly, use conventional commits:

feat: add new feature (minor version bump)
fix: bug fix (patch version bump)
docs: documentation changes (no version bump)
style: formatting changes (no version bump)
refactor: code refactoring (no version bump)
test: add tests (no version bump)
chore: maintenance tasks (no version bump)

Examples:

  • feat: add hotel booking integration → minor version bump
  • fix: resolve authentication timeout issue → patch version bump
  • feat!: breaking change in API → major version bump

Configuration

Environment Variables

The package requires the following environment variables:

MONGODB_CONNECTION_STRING=mongodb://...
API_NINJA_API_KEY=your-api-key
RESULT_URL=https://your-api.com/results/
INTEGRATION_ENGINE_SECRET_KEY=your-secret-key

NPM Registry

This package is configured to publish to GitHub Packages:

{
  "publishConfig": {
    "registry": "https://npm.pkg.github.com"
  }
}

API Reference

Services

CventService

  • obtainAccessToken(clientId, clientSecret, region)
  • fetchAllEvents(clientId, clientSecret, region)
  • getEventBudget(eventId, clientId, clientSecret, region)
  • getFoodAndBeveragesBudgetItems(eventId, clientId, clientSecret, region)
  • getAttendiesByEventId(clientId, clientSecret, region, eventId)
  • getEventAirActual(clientId, clientSecret, region, eventId)

Event Services

  • syncAllEventsWithCvent(syncEvent)
  • syncSingleEventWithCvent(cventEvent, syncEvent, organizationName)

Models

  • EventModal - Event database model
  • OrganizationModal - Organization database model
  • FlightModal - Flight database model
  • AccommodationModal - Accommodation database model
  • CventBudgetItemsModal - Budget items database model

License

ISC

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes with proper TypeScript typing
  4. Add tests if applicable
  5. Submit a pull request

The CI workflow will automatically run tests and linting on your pull request.