Skip to content
This repository was archived by the owner on Mar 8, 2026. It is now read-only.

alps-asd/alps-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

102 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALPS Online Editor

ALPS Editor

ALPS Online Editor is a web-based editor for creating and editing Application-Level Profile Semantics (ALPS) documents. It supports both XML and JSON formats with real-time validation, auto-completion, and live preview features.

Usage

Online Version

Visit alps-asd.github.io/alps-editor to use the editor directly in your browser. No server required - runs entirely client-side.

📖 Read the User Guide for detailed instructions and tips.

Development

Local Server

npx serve docs

Then open http://localhost:3000

AI Agents

For browser testing and debugging with AI agents, see chrome-devtools-mcp for setup instructions.

Features

Interactive Diagram Experience

  • Bidirectional highlighting: Select text in editor → elements glow in diagram
  • Click-to-jump navigation: Click diagram elements → jump to code line
  • View modes: Switch between Document, Diagram, and Preview views
  • Real-time visual feedback: Instant synchronization between editor and diagrams

Smart Auto-Completion

  • Press Ctrl + Space to show context-aware snippets
  • When starting from scratch:
    1. Clear the editor content
    2. Press Ctrl + Space
    3. Choose either "ALPS XML Skeleton" or "ALPS JSON Skeleton"
    4. Fill in the placeholders using Tab

Real-Time Validation

  • Automatic validation against ALPS schema
  • Immediate visual feedback on errors
  • Detailed error messages with line numbers
  • Live preview of the rendered ALPS document

File Management

  • Support for both XML and JSON ALPS formats
  • Drag and drop ALPS files directly into the editor
  • Accepts JSON, XML, and HTML files containing ALPS profiles
  • Download as HTML, SVG, or Profile (JSON/XML)

Smart Suggestions

  • Context-aware descriptor completions
  • Automatic href suggestions from existing descriptors
  • Built-in semantic terms from Schema.org

Keyboard Shortcuts

  • F1: Show command palette (lists all shortcuts)
  • F8: Toggle Preview mode
  • Ctrl + Space: Show auto-completion suggestions
  • Ctrl + S / Cmd + S: Download document
  • Tab: Navigate through snippet placeholders
  • Shift + Tab: Navigate backwards through placeholders

Validation

The editor performs two types of validation:

  1. Syntax validation (JSON/XML)
  2. ALPS semantic validation against the official ALPS schema

References

About

Archived: Merged into app-state-diagram/docs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors