laoshanxi/app-mesh
Sobre
A secure, high-performance, multi-tenant platform for remote App ”Hosting“ and ”Computing“
Sistemas e infraestruturaO que você pode fazer
- Hosting - Application management - Full remote CRUD and control — cgroup limits, OS user, environment variables, Docker apps, stdin/stdout — with start counts, exit codes, and health checks
- Hosting - Scheduling - Periodic jobs, cron expressions, start/end dates, daily time windows, and policy-driven exit behaviors
- Computing - Remote execution - Run commands and scripts on any node; send in-memory task messages to running applications for high-performance computing
- Computing - Workflow engine - GitHub-Actions-style YAML pipelines with DAG scheduling, running natively on App Mesh
Crescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalApp Mesh
One secure, lightweight daemon to run, schedule, and remote-control apps across machines.
🧭 Concepts
App Mesh gives you two capabilities: Hosting and Computing.
🎛 Hosting
Declare an app once. The daemon keeps it running.
- Lifecycle — start, stop, and recover the app after a crash or a daemon restart
- Scheduling — cron, fixed intervals, start and end dates, daily time windows
- Protection — health checks, CPU and memory limits, OS user, file system sandbox, tenant isolation
- Any app — a native process or a Docker app
Think systemd on every machine. Or Kubernetes desired state, for any app.
🧮 Computing
Submit work to any node. Get the result back.
- Command or script — starts a new process, runs once
- Task message — reuses a warm app that is already running, no startup cost
- Parallel and control — fan out work across nodes; run sync or async, stream output, set timeouts
- Workflow — chain many work items into a DAG pipeline and run it natively
- AI — send task messages to a hosted LLM agent, or give coding agents a sandbox node to build and run
Think serverless, on your own machines.
Internal component view
⚡ Quick Start
Start the daemon in Docker:
docker run -d --restart=always --name=appmesh --net=host -v appmesh-work:/opt/appmesh/work -v /var/run/docker.sock:/var/run/docker.sock laoshanxi/appmesh:latest
The appmesh-work volume persists authentication state and application definitions. The container runs as UID 482 — grant that identity access to the Docker socket to manage Docker apps.
Host your first app with the appm CLI — open a shell in the daemon container:
$ docker exec -ti appmesh bash
# Sign in once (non-interactive)
$ /opt/appmesh/script/appmesh-auth.sh print-initial-password | appm logon -u [email protected] --password-stdin
# List registered applications
$ appm ls
ID NAME OWNER ENABLED HEALTH PID USER MEMORY %CPU RETURN
0 py-task system Yes OK 574 appmesh 32.5Mi 0 -
1 py-exec system - - - - - - -
2 identity system Yes OK 344 appmesh 40.5Mi 0 -
# Register a new application
$ appm add -a myapp -c "python3 -u -c 'import time; [print(i, time.ctime()) or time.sleep(1) for i in range(10)]'"
# View its live output
$ appm ls -a myapp -o
0 Wed Sep 16 10:56:12 2026
1 Wed Sep 16 10:56:13 2026
2 Wed Sep 16 10:56:14 2026
Send a task message to a running app through the SDK. Mint an admin token first (see the authentication guide):
$ export APPMESH_BEARER_TOKEN=$(/opt/appmesh/script/appmesh-auth.sh print-initial-password \
| /opt/appmesh/script/appmesh-auth.sh user-token)
import os
from appmesh import AppMeshClient
client = AppMeshClient(bearer_token=os.environ["APPMESH_BEARER_TOKEN"])
result_from_server = "0"
for i in range(10):
task_data = f"print({result_from_server} + {i}, end='')"
result_from_server = client.run_task(app_name="py-task", data=task_data)
print(result_from_server)
For native packages (.deb/.rpm), systemd setup, and cluster initialization, see the Installation Guide and the Dockerfile.
🚀 Capabilities
| Pillar | Capability | What you get |
|---|---|---|
| Hosting | Application management | Full remote CRUD and control — cgroup limits, OS user, environment variables, Docker apps, stdin/stdout — with start counts, exit codes, and health checks |
| Hosting | Scheduling | Periodic jobs, cron expressions, start/end dates, daily time windows, and policy-driven exit behaviors |
| Computing | Remote execution | Run commands and scripts on any node; send in-memory task messages to running applications for high-performance computing |
| Computing | Workflow engine | GitHub-Actions-style YAML pipelines with DAG scheduling, running natively on App Mesh |
| Platform | Security | OAuth/OIDC bearer authentication (RFC 6750) with Principal-based RBAC and multi-tenant isolation; file system sandbox; TLS everywhere; HMAC-PSK internal verification |
| Platform | Observability | Built-in Prometheus exporter, Grafana datasource, Loki integration, host/app resource metrics |
| Platform | AI & LLM | Managed agent runtime, streaming chat, workflow message steps, MCP server |
| Platform | Files & platform extras | File upload/download API with attribute preservation, remote shell execution, hot config reload, bash completion |
Runs on Linux, macOS, and Windows (x86 and ARM).
A workflow in three commands:
appm workflow add -f pipeline.yaml # register
appm workflow run pipeline -e env=prod -f # run and follow output
appm workflow runs pipeline # view history
🤖 AI & LLM Integration
Agents are just managed Apps: the same RBAC, scheduling, encrypted secrets, health checks, and cluster forwarding as any other process — no sidecar, no privileged pod. Host the bundled llm-agent runtime (Claude via Anthropic API, Bedrock, or Vertex; DeepSeek, Qwen, GLM, MiniMax, or any OpenAI-compatible model behind a gateway), drive it interactively or from a workflow message step, and reach the whole platform from AI clients.
- AI and LLM scenarios — interactive chat, scheduled agent jobs, multi-model pipelines
- Remote sandbox for AI coding assistants — an isolated build-and-run node instead of your local shell
- MCP server — manage App Mesh from Claude Code, Codex, and other MCP clients (Streamable HTTP, OAuth 2.1)
- Remote-execution skill for coding agents, MCP bridge, and MQTT bridge
🧰 Interfaces & SDKs
| Interface | Details |
|---|---|
| CLI | appm command reference |
| REST | REST APIs · OpenAPI spec |
| Web GUI | app-mesh-ui |
| SDKs | Python · Golang · Rust · Java · JavaScript |
🆚 Comparison
| Feature | App Mesh | Nomad | Rundeck | Kubernetes | systemd |
|---|---|---|---|---|---|
| Control plane | None | 3–5 servers | 1 (HA: Enterprise) | 3+ nodes | None |
| Native (non-container) app | √ | √ | √ | ||
| Docker app | √ | √ | √ | ||
| Cron schedule | √ | √ | √ | CronJob | Timers |
| Remote command or script | √ | √ | √ SSH | √ | |
| Task message to a running app | √ | ||||
| Workflow | DAG | Steps | Add-on | ||
| LLM agent runtime, MCP server | √ | ||||
| Auth and per-tenant RBAC | OIDC | OIDC | ACL | OIDC, RBAC | |
| SDK | 5 languages | Go | Official |
📚 Documentation
- Read the Docs — full documentation
- Feature Overview — the full capability map behind Hosting and Computing, including the AI and LLM group
- Installation Guide · Security · Application Sandbox · Workflow Guide
- Success stories — worked recipes: remote execution, monitoring stack, Kubernetes, file serving, and more
Community & License
Questions and discussions are welcome on Gitter. Licensed under the MIT License.
Explore projetos relacionados
Carregando…