CUSS2 Angular

Angular wrapper for the CUSS2 TypeScript SDK

Build powerful airline self-service kiosks with reactive Angular services. Fully typed, reactive, and production-ready components for barcode scanners, card readers, document readers, printers, and more.

Quick Example
import { BarcodeReaderService } from 'cuss2-angular';

@Component({...})
export class CheckInComponent {
  private barcodeReader = inject(BarcodeReaderService);

  async scanBoardingPass() {
    // Enable the barcode reader
    await this.barcodeReader.enable().toPromise();
    console.log('Scanner ready');

    try {
      // Read barcode with 30 second timeout
      const barcodes = await this.barcodeReader.read(30000).toPromise();
      
      if (barcodes.length > 0) {
        console.log('Boarding pass scanned:', barcodes[0]);
        this.processBoardingPass(barcodes[0]);
      }
    } catch (error) {
      console.error('Scan timeout or error:', error);
    }
  }
}

Quick Start

1

Install

Add CUSS2 Angular to your project

bash
npm install cuss2-angular
2

Import Services

Import the services you need in your component

typescript
import { 
  Cuss2Service, 
  BarcodeReaderService,
  CardReaderService,
  AnnouncementService 
} from 'cuss2-angular';
3

Connect & Use

Connect to CUSS2 platform and start using services

typescript
@Component({
  template: `
    

CUSS2 Platform Connected

Connecting to CUSS2 platform...

` }) export class KioskComponent { constructor(private cuss2: Cuss2Service) { // Connect to CUSS2 platform this.cuss2.connect( 'your-client-id', 'your-client-secret', 'wss://platform.example.com' // Optional custom URL ); } }

Why CUSS2 Angular?

Native Angular

Built specifically for Angular with full TypeScript support, dependency injection, and reactive observables.

Reactive Streams

RxJS-powered data streams for real-time device events. Subscribe to barcode scans, card swipes, and weight changes.

Modular Services

Individual services for each CUSS2 component. Import only what you need for optimal bundle size.

Type Safe

Full TypeScript support with proper typing for all CUSS2 data structures and platform responses.

Accessibility Ready

Built-in support for accessibility features including headset audio, keypad navigation, and screen readers.

Production Ready

Battle-tested in real airline environments with error handling, retry logic, and comprehensive documentation.

Available Services

Reader Services

BarcodeReaderService

Barcode and QR code scanning

CardReaderService

Magnetic stripe card reading with payment support

DocumentReaderService

Passport and ID document scanning

Printer Services

BoardingPassPrinterService

Boarding pass printing with ITPS format

BagTagPrinterService

Baggage tag printing with asset management

Input & Control

KeypadService

Navigation keypad with structured events

ScaleService

Luggage weighing with real-time monitoring

HeadsetService

Audio headset for accessibility support

AnnouncementService

Text-to-speech and SSML playback

Ready to Build Your Kiosk?

Explore our comprehensive documentation and examples to get started with CUSS2 Angular