Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

confetti

Package Overview
Dependencies
Maintainers
3
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confetti

A Node wrapper for the Confetti API.

latest
Source
npmnpm
Version
3.0.4
Version published
Weekly downloads
1.7K
-53.29%
Maintainers
3
Weekly downloads
 
Created
Source

Confetti API Wrapper

Confetti

A TypeScript-first Node.js wrapper for the Confetti API with full type safety.

Installation

npm install confetti

Usage

Instance Methods

import Confetti from 'confetti'

const confetti = new Confetti({ apiKey: 'your-api-key' })

const events = await confetti.events.findAll()
const event = await confetti.events.find(1)
const contacts = await confetti.contacts.findAll()
const newContact = await confetti.contacts.create({
  firstName: 'John',
  lastName: 'Doe',
  email: 'john@example.com',
})

Static Methods

import Confetti from 'confetti'

const events = await Confetti.events.findAll({ apiKey: 'your-api-key' })
const event = await Confetti.events.find(1, { apiKey: 'your-api-key' })
const contacts = await Confetti.contacts.findAll({ apiKey: 'your-api-key' })
const newContact = await Confetti.contacts.create(
  {
    firstName: 'John',
    lastName: 'Doe',
    email: 'john@example.com',
  },
  { apiKey: 'your-api-key' },
)

TypeScript

import Confetti, { Event, Contact, Ticket } from 'confetti'

const confetti = new Confetti({ apiKey: 'your-api-key' })

const events: Event[] = await confetti.events.findAll()
const event: Event = await confetti.events.find(1)

const events = await confetti.events.findAll({
  filter: {
    signupType: 'rsvp',
  },
  sort: 'startDate',
  include: ['categories'],
})

Resources

  • Events - findAll, find
  • Contacts - findAll, find, create
  • Tickets - findAll, find, create
  • Payments - findAll, find
  • Webhooks - findAll, find, create, delete
  • Workspaces - findAll, find
  • Categories - findAll, find
  • TicketBatches - findAll, find

Development

npm install
npm run lint
npm test
npm run build

Keywords

confetti

FAQs

Package last updated on 13 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts