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

@gramercytech/gx-componentkit

v1.0.23

Published

Vue 3 component library for building kiosk-style applications on the Eventfinity platform

Readme

Gx ComponentKit

A Vue 3 component library for building kiosk-style applications on the Eventfinity platform.

Overview

Gx ComponentKit provides a comprehensive set of Vue 3 components and composables designed specifically for creating interactive kiosk applications. It includes everything you need to build engaging user experiences with camera functionality, media playback, barcode scanning, and more.

Features

  • 🎯 Kiosk-focused Components: Pre-built page components for common kiosk workflows
  • 📷 Media Handling: Camera, video player, and audio visualization components
  • 🔍 Scanning: Barcode and QR code scanning capabilities
  • 🎨 Theming: Comprehensive theming system with CSS variables
  • 📱 Responsive: Mobile-first design with touch-friendly interfaces
  • Vue 3: Built with Vue 3 Composition API and TypeScript
  • 🛠 Composables: Reusable logic for media, animations, and more

Installation

npm install @gramercytech/gx-componentkit

Quick Start

Global Installation

import { createApp } from 'vue'
import GxComponentKit from '@gramercytech/gx-componentkit'
import '@gramercytech/gx-componentkit/style.css'

const app = createApp(App)
app.use(GxComponentKit)
app.mount('#app')

Individual Component Import

import { GxPageStart, GxModal, GxCountdown } from '@gramercytech/gx-componentkit'
import '@gramercytech/gx-componentkit/style.css'

Components

Page Components

  • GxPageStart - Landing page with logo, title, and start button
  • GxPageInstructions - Instructions and user input collection
  • GxPagePrompt - Prompt selection and user interaction
  • GxPageCamera - Camera capture interface
  • GxPageCameraReview - Review captured media
  • GxPageResults - Display results and options
  • GxPageFinal - Final confirmation and completion
  • GxPageLoading - Loading states with spinner
  • GxPageShare - Social sharing interface
  • GxPageForm - Form input collection
  • GxPageQuiz - Quiz and question interface
  • GxPageTerms - Terms and conditions display

UI Components

  • GxModal - Customizable modal dialogs
  • GxCountdown - Countdown timer with progress
  • GxVideoPlayer - Video player with custom controls
  • GxCamera - Camera capture component
  • GxAudioVisualizer - Audio visualization
  • GxBarcodeScanner - Barcode/QR code scanner
  • GxThemeWrapper - Theme application wrapper

Composables

useMedia

Handles camera, video, and audio operations:

import { useMedia } from '@gramercytech/gx-componentkit'

const {
  videoStream,
  audioStream,
  startRecording,
  stopRecording,
  photoBlob,
  setVideoDevice
} = useMedia()

useAnimations

Provides animation utilities:

import { useAnimations } from '@gramercytech/gx-componentkit'

const {
  fadeIn,
  fadeOut,
  slideIn,
  slideOut,
  addAnimation
} = useAnimations()

useScanning

Manages barcode/QR code scanning:

import { useScanning } from '@gramercytech/gx-componentkit'

const {
  isScanning,
  scanResult,
  startScanning,
  stopScanning
} = useScanning()

useErrors

Error state management:

import { useErrors } from '@gramercytech/gx-componentkit'

const {
  errorMessages,
  addError,
  clearErrors
} = useErrors()

useCameraBorder

Camera border styling and animations:

import { useCameraBorder } from '@gramercytech/gx-componentkit'

const {
  borderStyles,
  setBorderColor,
  animateBorder
} = useCameraBorder()

Usage Examples

Basic Kiosk Page

<template>
  <GxPageStart
    :plugin-vars="pluginVars"
    :asset-urls="assetUrls"
    :strings-list="stringsList"
    :theme="theme"
    @start="handleStart"
    @idle-timeout="handleTimeout"
  />
</template>

<script setup>
import { GxPageStart } from '@gramercytech/gx-componentkit'

const pluginVars = {
  primary_color: '#007bff',
  idle_timeout: '30'
}

const assetUrls = {
  main_logo: '/path/to/logo.png'
}

const stringsList = {
  start_line_one: 'Welcome!',
  start_line_two: 'Touch to begin'
}

const theme = {
  background_color: '#ffffff',
  text_color: '#333333'
}

const handleStart = () => {
  // Handle start action
}

const handleTimeout = () => {
  // Handle idle timeout
}
</script>

Using Composables

<template>
  <div>
    <video ref="videoElement" autoplay muted></video>
    <button @click="startRecording({ video: videoElement })">
      Start Recording
    </button>
    <button @click="stopRecording">Stop Recording</button>
  </div>
</template>

<script setup>
import { ref, onMounted } from 'vue'
import { useMedia } from '@gramercytech/gx-componentkit'

const videoElement = ref()
const {
  videoStream,
  startRecording,
  stopRecording,
  videoBlob
} = useMedia()

onMounted(async () => {
  // Set up video stream
  if (videoElement.value) {
    videoElement.value.srcObject = videoStream.value
  }
})
</script>

Theming

The library supports comprehensive theming through CSS variables:

:root {
  --gx-primary-color: #007bff;
  --gx-secondary-color: #6c757d;
  --gx-background-color: #ffffff;
  --gx-text-color: #333333;
  --gx-border-radius: 8px;
}

TypeScript Support

Full TypeScript support with exported types:

import type {
  PluginVars,
  AssetList,
  StringsList,
  Theme,
  MediaDevice,
  RecordingOptions
} from '@gramercytech/gx-componentkit'

Browser Support

  • Chrome 80+
  • Firefox 75+
  • Safari 13+
  • Edge 80+

Development

# Install dependencies
npm install

# Start development server
npm run dev

# Build library
npm run build

# Build with watch mode
npm run build:watch

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

ISC License - see LICENSE file for details.

Related Projects

Support

For support and questions, please open an issue on GitHub or contact the development team.