Skip to main content

app_meshed

HTTP services and frontend for meshed operations

A modular, source-keyed architecture for DAG construction, data storage, and stream visualization built on the i2mint ecosystem (meshed, dol, i2, creek, ju, qh).

Overview

app_meshed provides a web-based platform to:

  • Compose and execute meshed DAGs through a visual interface
  • Access data through flat, key-value interfaces (source-keyed architecture)
  • Visualize multi-dimensional time-series streams
  • Generate forms automatically from function signatures

Architecture

Core Philosophy

Source-Keyed Data: All data is accessed via flat, key-value interfaces (Mappings) provided by dol.

Interface-First: Python functions are the source of truth. Their signatures (i2) drive frontend forms (ju + RJSF) and API endpoints.

The Stack

  • Storage Layer: dol - Abstracts local files, S3, or DBs into dict-like interfaces
  • Logic Layer: meshed - DAGs and Slabs for workflow composition
  • Stream Layer: creek - Time-series data with [bt:tt] slicing
  • Adaptation Layer: i2 - Function signature introspection, ju - JSON Schema generation
  • Service Layer: FastAPI - HTTP endpoints for all operations
  • Frontend: React + React Flow (visual graphs) + RJSF (forms) (to be implemented)

Installation

# Clone the repository
git clone https://github.com/i2mint/app_meshed.git
cd app_meshed

# Install dependencies
pip install -e .

# Or install with development dependencies
pip install -e ".[dev]"

Quick Start

Running the Server

# Start the server (default: http://0.0.0.0:8000)
python -m app_meshed.cli

# Custom port and data directory
python -m app_meshed.cli --port 8080 --data-path /path/to/data

# Enable auto-reload for development
python -m app_meshed.cli --reload --debug

API Documentation

Once the server is running, visit:

  • Interactive API Docs: http://localhost:8000/docs
  • Alternative Docs: http://localhost:8000/redoc

Basic Usage Examples

1. List Available Functions

curl http://localhost:8000/functions

2. Get Function Schema (for form generation)

curl http://localhost:8000/schema/function/add

3. Execute a Simple DAG

curl -X POST http://localhost:8000/dag/execute \
  -H "Content-Type: application/json" \
  -d '{
    "dag_config": {
      "name": "simple_add",
      "nodes": [
        {"id": "add_node", "function": "add"}
      ],
      "edges": []
    },
    "inputs": {
      "add_node": {"a": 5, "b": 3}
    }
  }'

4. Access Time-Series Data

# List available streams
curl http://localhost:8000/streams

# Slice a stream by time range [bt:tt]
curl "http://localhost:8000/streams/audio_sample/slice?bt=0.0&tt=1.0"

# Get synchronized multi-channel data
curl -X POST http://localhost:8000/streams/multi-channel/slice \
  -H "Content-Type: application/json" \
  -d '{
    "channel_ids": ["sensor_accel_x", "sensor_accel_y"],
    "bt": 0.0,
    "tt": 5.0
  }'

Project Structure

app_meshed/
├── app_meshed/
│   ├── api/
│   │   ├── main.py          # FastAPI application
│   │   └── startup.py       # Initialization tasks
│   ├── stores/
│   │   └── root_store.py    # Unified dol-based storage
│   ├── services/
│   │   ├── function_registry.py  # Function introspection (i2)
│   │   ├── schema_service.py     # JSON Schema generation (ju)
│   │   ├── dag_service.py        # DAG serialization/execution (meshed)
│   │   └── stream_service.py     # Stream slicing (creek)
│   └── utils/
│       └── example_functions.py  # Sample functions for DAG composition
├── data/                    # Default data directory (gitignored)
│   ├── raw_data/           # Binary blobs (audio, sensor data)
│   ├── functions/          # Saved functions (pickled)
│   ├── meshes/             # DAG configurations (JSON)
│   └── configs/            # Application configs (JSON)
└── pyproject.toml

API Endpoints

Store API (Phase I)

  • GET /store/list - List all available stores
  • GET /store/{store_name}/keys - List keys in a store
  • GET /store/{store_name}/{key} - Get an item from a store
  • PUT /store/{store_name}/{key} - Store an item
  • DELETE /store/{store_name}/{key} - Delete an item

Function API (Phase I)

  • GET /functions - List all registered functions
  • GET /functions/{name}/metadata - Get function metadata

Schema API (Phase I & II)

  • GET /schema/function/{name} - Get JSON Schema for a function's parameters
  • POST /schema/object - Generate schema from an object
  • GET /schema/dag-config - Get DAG configuration schema

DAG API (Phase II)

  • POST /dag/execute - Execute a DAG from JSON config
  • POST /dag/validate - Validate DAG config without executing
  • GET /dag/examples - Get example DAG configurations

Stream API (Phase III)

  • GET /streams - List all registered streams
  • GET /streams/{id}/metadata - Get stream metadata
  • GET /streams/{id}/slice?bt=0&tt=10 - Slice stream by time range
  • POST /streams/multi-channel/slice - Get synchronized multi-channel data
  • POST /streams/multi-channel/info - Get multi-channel metadata

Development Phases

Phase I: Store Explorer ✅

  • Unified dol-based storage interface
  • Function registry with i2 signatures
  • HTTP service with store CRUD operations
  • Schema generation with ju

Phase II: Mesh Maker (DAG Builder) ✅

  • DAG JSON serialization/deserialization
  • Schema endpoints for function parameters
  • DAG execution and validation
  • Example DAG configurations

Phase III: Multi-Channel Viewer ✅

  • Stream abstraction with creek
  • [bt:tt] time-based slicing
  • Multi-channel synchronization
  • Sample stream generation

Next Steps (Frontend)

  • React-based Store Browser UI
  • React Flow canvas for visual DAG composition
  • RJSF forms for node configuration
  • Plotly/Chart.js for stream visualization

Key Concepts

Source-Keyed Architecture

All data sources are accessed through a uniform Mapping interface:

from app_meshed.stores.root_store import create_default_root_store

root = create_default_root_store()
root.meshes["my_dag"] = {"nodes": [...], "edges": [...]}
config = root.configs["app_settings"]

Function Signatures Drive Everything

Functions registered in the system are introspected using i2, and their schemas are generated with ju:

def process(audio: np.ndarray, gain: float = 1.0) -> np.ndarray:
    """Apply gain to audio signal."""
    return audio * gain

This automatically generates:

  • API endpoint: /schema/function/process
  • JSON Schema for RJSF forms
  • Parameter metadata for the frontend

Time-Based Slicing with [bt:tt]

Stream data is accessed using time ranges:

stream = stream_registry.get("audio_sample")
chunk = stream[0.5:1.5]  # Get data from 0.5s to 1.5s

Contributing

See the main i2mint organization for contribution guidelines.

License

MIT

Metadata

Release files for app-meshed 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for app-meshed 0.0.3
File Size Uploaded Provenance Actions
app_meshed-0.0.3.tar.gz 118.6 kB Without provenance Details for app_meshed-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for app-meshed 0.0.3
File Interpreter ABI Platform Actions
app_meshed-0.0.3-py3-none-any.whl Python 3 none any Details for app_meshed-0.0.3-py3-none-any.whl

Total release size: 142.1 kB

Release files / app_meshed-0.0.3.tar.gz

Download URL app_meshed-0.0.3.tar.gz
Size 118.6 kB
Tags Source
SHA-256 checksum
How to use checksums
84de82aa5e52819dc93662324b75a9844815ee23e4a8c58a00eef9ce2dc23f27
BLAKE2b-256 checksum
How to use checksums
eb90162a09282ff82c5cf5287977431b14a3a17967d0f81ce977a283b832e9b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Release files / app_meshed-0.0.3-py3-none-any.whl

Download URL app_meshed-0.0.3-py3-none-any.whl
Size 23.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
053f3834eb81232c6bcbe4af2ddbd061566d43845e22f321759d212d8c4ed5ad
BLAKE2b-256 checksum
How to use checksums
f045b157183b24b8d8301275f2619e0a736ee762175e55acb95d9847b100a777
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.16

Security for app-meshed 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page