
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
area15-ticket-component
Advanced tools
A Next.js ticket purchasing component with Stripe integration, calendar selection, and Axiom logging
A Next.js ticket purchasing component with Stripe integration, calendar selection, and Axiom logging. This package provides a complete ticket purchasing system that can be integrated into your Next.js application.
Install the package via npm (from the npm_package branch):
npm install git+https://github.com/area15/ticket-component.git#npm_package
# or
yarn add git+https://github.com/area15/ticket-component.git#npm_package
# or
pnpm add git+https://github.com/area15/ticket-component.git#npm_package
Or if published to npm registry:
npm install area15-ticket-component
# or
yarn add area15-ticket-component
# or
pnpm add area15-ticket-component
npx create-next-app@latest my-ticket-app
cd my-ticket-app
npm install area15-ticket-component
After installation, you'll need to copy the necessary files from the package:
# Copy pages directory
cp -r node_modules/area15-ticket-component/pages ./pages
# Copy lib directory
cp -r node_modules/area15-ticket-component/lib ./lib
# Copy public assets
cp -r node_modules/area15-ticket-component/public ./public
# Copy configuration files
cp node_modules/area15-ticket-component/next.config.js ./next.config.js
cp node_modules/area15-ticket-component/tailwind.config.ts ./tailwind.config.ts
cp node_modules/area15-ticket-component/postcss.config.js ./postcss.config.js
cp node_modules/area15-ticket-component/tsconfig.json ./tsconfig.json
Note: For Windows PowerShell users, use appropriate commands or manually copy the directories.
Make sure you have all required dependencies installed:
npm install @axiomhq/js @netlify/plugin-nextjs @stripe/react-stripe-js @stripe/stripe-js axios dayjs framer-motion lucide-react react-calendar react-qr-code next react react-dom
npm install -D @types/node @types/react @types/react-dom autoprefixer postcss tailwindcss typescript
Create a .env.local file in your project root with the following variables:
# Ticket API Configuration (Required)
TIX_ROOT=your_ticket_api_root_url
AREA15_TIX_ROOT=your_area15_ticket_api_root_url
TIX_SELLER_ID=your_seller_id
TIX_IDENTITY_ID=your_identity_id
TIX_USER_ELEVATED=your_elevated_username
TIX_PASS_ELEVATED=your_elevated_password
TIX_TOKEN=your_basic_auth_token
# Stripe Configuration (Required for payments)
NEXT_PUBLIC_STRIPE_PUBLISH_KEY=your_stripe_publishable_key
STRIPE_SECRET_KEY=your_stripe_secret_key
# CMS Configuration (Required if using Strapi)
CMS_ROOT=your_cms_root_url
# Axiom Logging (Optional but recommended)
AXIOM_TOKEN=your_axiom_token
AXIOM_ORG_ID=your_axiom_org_id
AXIOM_DATASET=ticket-component
# RioStack Integration (Optional)
RIOSTACK_URL=your_riostack_url
# HubSpot Integration (Optional - if using HubSpot features)
# Add HubSpot API keys if needed
npm run dev
# or
yarn dev
# or
pnpm dev
Open http://localhost:3000 with your browser to see the result.
ticket-component/
├── pages/
│ ├── index.tsx # Main ticket component page
│ ├── layout.tsx # Layout wrapper
│ ├── _app.tsx # Next.js app configuration
│ ├── components/ # React components
│ └── api/ # API routes
├── lib/ # Utility functions
│ ├── auth.js # Authentication helper
│ ├── logger.ts # Axiom logging utility
│ └── dt_format.jsx # Date formatting
└── public/ # Static assets
├── assets/ # Images and icons
├── css/ # Global styles
└── fonts/ # Custom fonts
To publish this package to npm from the npm_package branch:
Switch to the npm_package branch:
git checkout npm_package
Update package.json metadata:
version fieldrepository URL and branchauthor informationdescription if neededLogin to npm:
npm login
Publish the package:
npm publish
For scoped packages (if your package name starts with @your-username/):
npm publish --access public
Verify it's published:
Visit https://www.npmjs.com/package/area15-ticket-component
Note: Always publish from the npm_package branch to ensure the correct version is published to npm.
This application uses Axiom for centralized logging across both frontend and backend. All logs automatically include sellerId and eventId for tracking purposes.
To enable Axiom logging, you need to set the following environment variables:
Server-side (required for API routes):
AXIOM_TOKEN - Your Axiom API tokenAXIOM_ORG_ID - Your Axiom organization IDAXIOM_DATASET - The dataset name to send logs to (defaults to ticket-component)Client-side (optional, for direct client logging):
NEXT_PUBLIC_AXIOM_TOKEN - Your Axiom API token (if you want direct client-side logging)NEXT_PUBLIC_AXIOM_ORG_ID - Your Axiom organization IDNEXT_PUBLIC_AXIOM_DATASET - The dataset nameThe logger is available throughout the application:
import { createLogger } from '../lib/logger';
// Create a logger with sellerId and eventId context
const logger = createLogger(sellerId, eventId);
// Log at different levels
logger.info('User action', { additionalData: 'value' });
logger.warn('Warning message', { context: 'data' });
logger.error('Error occurred', error, { context: 'data' });
logger.debug('Debug information', { debugData: 'value' });
All logs automatically include:
sellerId - The seller ID for trackingeventId - The event ID for trackingtimestamp - ISO timestamplevel - Log level (info, warn, error, debug)message - Log messageFor Netlify deployments, add the environment variables in your Netlify dashboard:
AXIOM_TOKEN, AXIOM_ORG_ID, and AXIOM_DATASETYou can also configure Axiom Log Drains in Netlify to automatically forward Netlify function logs to Axiom.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
FAQs
A Next.js ticket purchasing component with Stripe integration, calendar selection, and Axiom logging
We found that area15-ticket-component demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.