Web Interface#
Coord2Region offers browser-based tools to help you design pipelines and test workflows without installing Python locally.
🛠️ Config Builder |
🚀 Web Runner |
|---|---|
Hosted on GitHub Pages. A visual editor for generating YAML configuration files. Best for designing reproducible recipes. |
Hosted on Hugging Face Spaces. A live demonstration environment to test the pipeline on single coordinates. |
Workflow: Design & Export#
The primary goal of the web interface is to bridge the gap between visual exploration and reproducible command-line execution.
Design Visually: Open the Builder and toggle the features you need (e.g., specific atlases, AI summaries, or Neurosynth lookups).
Preview Logic: Watch the Live Preview panel. It updates the YAML configuration and CLI command in real-time as you adjust settings.
Export: Click Download YAML to save your pipeline.
Run Anywhere: Use that YAML file with the Python package for high-performance execution:
coord2region run --config my_pipeline.yaml
Features#
Configuration Builder
Interactive Forms: Supply coordinates or region names, select from available atlases, and configure AI provider keys securely.
Privacy First: The builder is a static site. Your API keys and data remain in your browser until you choose to export them.
Import/Export: Drag and drop an existing
coord2region.yamlfile to edit it visually, keeping your experimental code and visual designs in sync.
Web Runner (Hugging Face)
Zero Installation: Try out the pipeline immediately in the cloud.
Visual Results: View generated AI images and summaries directly in the UI.
Warning
Throughput Limitations
The Web Runner is hosted on a shared Hugging Face Space. It is designed for demonstration and single-coordinate lookups.
It cannot support high-throughput demands or large batch processing. For analyzing full datasets (e.g., 100+ coordinates), please install the package locally and use the CLI Tools. High-throughput web support is planned for future releases.
Running Locally#
The Config Builder is a static React application that you can run offline if you prefer to keep your configuration environment air-gapped.
Navigate to the
web-interface/directory in the repository.Install dependencies (React + Vite ecosystem):
npm installStart the development server:
npm run dev
Test using the included Playwright end-to-end suite:
npm run test:e2e