Skip to main content
Version: v1 (Current)

GxP Dev Toolkit

The GxP Dev Toolkit (@gxp-dev/tools) is a package for creating platform plugins for GxP portal experiences, including web and kiosk applications.

What You Can Build​

With the GxP Toolkit, you can create custom plugins for GxP portals and kiosks, including:

  • Interactive displays - Check-in kiosks, registration flows, badge printing
  • Information screens - Schedules, maps, directories
  • Engagement features - Surveys, gamification, social walls
  • Custom integrations - Connect to external APIs and services

The toolkit supplies authoring and local simulation tools. You still need the platform project resources, installed app bindings, audience permissions and deployment services for the final experience. A local mock or kiosk preview does not establish production registration, printing, media or API acceptance.

Key Features​

FeatureDescription
CLI Tool (gxdev)Project scaffolding, dev server, and build commands
Interactive TUITerminal UI for managing dev services
Hot ReloadVite-based dev server and hot module updates
GxP Strings PluginVue directives for reactive string/asset replacement
Socket.IOReal-time event simulation
Browser ExtensionsChrome/Firefox DevTools for plugin inspection
Vue 3 + PiniaModern reactive framework with state management
Component KitPre-built UI components for kiosk development

Quick Start​

# Install globally
npm install -g @gxp-dev/tools

# Create a new project
gxdev init my-plugin
cd my-plugin

# Start development
gxdev dev --no-https=true

In a scaffold with its standard environment, the HTTP preview normally uses http://localhost:3060; use the address printed by the development server if you override the port. Open the in-browser Dev Tools with Ctrl+Shift+D. Scaffolding installs dependencies and may offer to start development interactively; start a second server only after stopping the first.

Documentation​

Getting Started​

Configuration​

Development Tools​

Reference​

Requirements​

  • Node.js 24 for the reviewed toolchain; verify all dependency engines when using another line
  • npm 10 or newer for the reviewed dependency tree; use the project lockfile and a compatible Node/npm pair
  • A browser suitable for the app's required features; verify device/media/offline behavior separately. The inspector extensions target Chrome/Firefox, not every browser.

Installation​

npm install -g @gxp-dev/tools

This makes the gxdev command available globally.

Project-Level Installation​

npm install --save-dev @gxp-dev/tools

Project npm scripts resolve the installed local gxdev. Verify the local package is installed before using npx gxdev; for explicit package selection use npm exec --package=@gxp-dev/tools -- gxdev --help. A launcher does not itself establish which runtime/templates your project resolves.

Common Workflows​

Create a New Plugin​

Run this from the parent directory where you want the project created. To scaffold an existing directory instead, use gxdev init --local; review existing files before selecting overwrite options.

gxdev init my-plugin
cd my-plugin
gxdev dev --no-https=true

Start Development with Full Services​

# Start Vite + Socket.IO + Chrome extension
gxdev dev --chrome

Socket.IO starts with the development server by default. Use --no-socket to disable it. The default gxdev dev workflow attempts HTTPS when certificates are available; gxdev dev --no-https=true explicitly selects HTTP. The scaffold's dev-http script currently uses the bare negated flag and may still select HTTPS when certificates exist; see Getting Started. Local socket simulation does not prove that deployed subscriptions or permissions work.

Build for Production​

gxdev build
# Output: compiled files in dist/build/ and a .gxpapp package in dist/

Test Socket Events​

# List available events
gxdev socket list

# Send a test event
gxdev socket send --event AiSessionMessageCreated

The sender requires the expected HTTPS relay origin and certificates; see Socket Events before sending.

Generate Placeholder Images​

gxdev assets generate --size 800x600 --name hero

Requires ImageMagick (magick or convert); output goes to dev-assets/images/. Reusing a name targets the same files. See placeholder generation.

Project Structure After Init​

Selected scaffold files are shown below; the project also includes configuration, styling, instructions and test/build support files.

my-plugin/
├── src/
│ ├── Plugin.vue # Main plugin entry point
│ ├── DemoPage.vue # Example component
│ ├── public/ # Manifest assets (logo.png and hero.jpg)
│ └── stores/ # Pinia store setup
├── theme-layouts/ # Layout components (Public, Private, System)
├── socket-events/ # Socket event templates
├── app-manifest.json # Plugin configuration
├── .env # Environment variables
└── package.json

Key Concepts​

Runtime vs Template​

  • Local preview runtime - Toolkit files stay in node_modules/ and use the internal @gx-runtime alias. Production app code should use the public store import contract rather than bundling the toolkit store; see Building for Platform.
  • Template files - Copied to your project, fully customizable

GxP Store​

Central Pinia store providing:

  • Settings (pluginVars)
  • Translatable strings (stringsList)
  • Asset URLs (assetList)
  • Dynamic state (triggerState)
  • API client methods
  • Socket.IO integration

GxP Directives​

<!-- Replace text content from strings -->
<h1 gxp-string="welcome_title">Default Text</h1>

<!-- Replace image source from assets -->
<img gxp-src="hero_image" src="/placeholder.jpg" alt="Hero" />

Dev Tools​

Press Ctrl+Shift+D to open in-browser Dev Tools:

  • Store Inspector (edit values in real-time)
  • Layout Switcher
  • Socket Simulator
  • Mock Data Editor

Getting Help​

  • Documentation: Browse the pages linked above
  • TUI Help: Run gxdev ui to open the interactive terminal UI
  • CLI Help: Run gxdev --help; ordinary command help is separate from exec/test, which forward their arguments to the underlying tool
  • Issues: GitHub Issues