create-index-tracker
v1.0.3
Published
CLI tool to create IndexTracker component for index-ticketing integration
Maintainers
Readme
create-index-tracker
🚀 CLI tool to quickly setup IndexTicketing in your Next.js project
Quick Start
npx create-index-trackerThis command will:
- ✅ Create
index-tracker/directory - ✅ Generate
IndexTracker.tsxcomponent - ✅ Create
.env.example.index-ticketingtemplate - ✅ Provide
layout-example.txtfor integration
What it creates
📁 index-tracker/IndexTracker.tsx
Ready-to-use React component that initializes IndexTicketing with environment variables.
📄 .env.example.index-ticketing
Template for your environment variables:
NEXT_PUBLIC_INDEX_TICKETING_ENDPOINT=https://www.index-ticketing.com
NEXT_PUBLIC_INDEX_TICKETING_API_KEY=your-api-key-here
NEXT_PUBLIC_INDEX_TICKETING_PROJECT_ID=your-project-id
NEXT_PUBLIC_INDEX_TICKETING_ORGANIZATION_ID=your-organization-id
NEXT_PUBLIC_INDEX_TICKETING_ENVIRONMENT=production📄 layout-example.txt
Example of how to integrate the component in your app/layout.tsx.
Next Steps
Install the main package:
npm install index-ticketing@betaSetup environment variables:
cp .env.example.index-ticketing .env.local # Edit .env.local with your actual valuesImport in your layout:
import IndexTracker from '../index-tracker/IndexTracker'; export default function RootLayout({ children }) { return ( <html> <body> <IndexTracker /> {children} </body> </html> ); }Start tracking errors automatically! 🎉
Features
- 🔒 Safe setup - Doesn't modify existing files
- 🗑️ Easy removal - Just delete the
index-tracker/folder - ⚡ Zero config - Works out of the box with environment variables
- 🎯 Production ready - Includes error boundaries and breadcrumb tracking
Support
- 📦 Package: index-ticketing
- 🐛 Issues: GitHub Issues
- 📚 Docs: Check your IndexTicketing dashboard for full documentation
Made with ❤️ by IndexTicketing Team
