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
| Feature | Description |
|---|---|
CLI Tool (gxdev) | Project scaffolding, dev server, and build commands |
| Interactive TUI | Terminal UI for managing dev services |
| Hot Reload | Vite-based dev server and hot module updates |
| GxP Strings Plugin | Vue directives for reactive string/asset replacement |
| Socket.IO | Real-time event simulation |
| Browser Extensions | Chrome/Firefox DevTools for plugin inspection |
| Vue 3 + Pinia | Modern reactive framework with state management |
| Component Kit | Pre-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
- Getting Started - Install and create your first plugin
- Project Architecture - Understand how the toolkit and plugins are structured
Configuration
- App Manifest - Configure plugin settings, strings, and assets
- GxP Store - State management and platform integration
- GxP Strings Plugin - Vue directives for reactive content
Development Tools
- Interactive TUI - Terminal UI for managing services
- Dev Tools - In-browser debugging and inspection
- Browser Extensions - Chrome/Firefox inspector extensions
- Analytics tracking - Click attributes, Vue injection, custom events, local observation and manifest declarations
- Socket.IO Events - Real-time event simulation
Reference
- CLI Reference - Complete gxdev command reference
- AI Agent Configuration - Configure AI coding assistants
- Building for Platform - Prepare your plugin for production
- Troubleshooting & FAQ - Common issues and solutions
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
Global Installation (Recommended)
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-runtimealias. 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 uito open the interactive terminal UI - CLI Help: Run
gxdev --help; ordinary command help is separate fromexec/test, which forward their arguments to the underlying tool - Issues: GitHub Issues