Getting started¶
This page runs Middleware Forge on a development machine (the backend API, the web UI and optionally a local LLM) and generates a first Oracle Service Bus project with its documentation.
System requirements¶
| Component | Requirement |
|---|---|
| Backend API and CLI | Python 3.11 or later (3.13 is used in the container and CI), uv |
| Web UI | .NET 10 SDK (development); .NET 10 Hosting Bundle on IIS (production) |
| LLM | Any OpenAI-compatible endpoint (LM Studio, vLLM, Ollama's OpenAI API, Azure OpenAI, OpenAI). A 14B+ instruct model with JSON-schema output is recommended for chat edits. Not needed for UI work with the mock backend. |
| git | Required on the backend host for repository write-back |
| Production backend host | Docker Engine 24+ with Compose v2; 2 vCPU, 4 GB RAM and a few GB of disk for /data are enough for a team |
| Browser | A current Edge, Chrome or Firefox with WebSockets allowed |
1. Install¶
git clone https://github.com/mKamiAsim/middleware-forge.git
cd middleware-forge
uv sync --extra dev # backend, CLI and test tools in .venv
cp .env.example .env # local settings, git-ignored
2. Point it at an LLM¶
Edit .env. For a local OpenAI-compatible server:
OPENAI_API_BASE=http://localhost:1234/v1
LLM_MODEL=local-model
LLM_JSON_MODE=json_schema
LANGSMITH_TRACING=false
LLM_MODEL is the name your server serves. Unprefixed names are routed through LiteLLM's OpenAI-compatible route. See Configuration for every setting.
No LLM available?
Skip this step and use the mock backend in step 3. It answers planning and chat calls with canned replies; parsing, grouping, generation and repository write-back are real.
Corporate TLS inspection
If HTTPS calls fail with certificate errors, set FORGE_CA_BUNDLE to your internal CA bundle. SSL_VERIFY=false also works around it, for development only.
3. Start the backend and the web UI¶
This starts the API on 127.0.0.1:8000 and the web UI on 127.0.0.1:5180. Open http://127.0.0.1:5180.
The data (SQLite databases, uploads, generated runs) goes to ./output unless you set FORGE_DATA_DIR.
4. Generate your first project¶
- Click New task.
- Upload
example/PersonTravel.jsonandexample/travel-services.jsonin the chat or on the Documents tab. The agent reads 7 operations from two backends and proposes one proxy per document:PersonTravelandTravelServices. - Open the Designer tab and click New proxy; rename it
Combined. Select all seven operations in the list and choose Add to proxy → Combined. The card shows Routing table → TravelServices_BS (5, default), PersonTravel_BS (2), and the two original proxies keep their operations. Click Save plan. - Click Approve and generate and follow the run on the Progress tab.
- Browse the files on the Artifacts tab, or click Download ZIP.
Combined_PL.pipelineroutes through a routing table and reuses the schemas and XSLT files of the other two proxies;Docs/holds an Interface Control Document and a consumer guide per proxy.
Compare the result with the hand-built reference project in example/OSB/TravelService/.
The same thing from the command line:
uv run middleware-forge generate --document example/travel-services.json \
--source-type REST --target-type REST --project-name TravelPermission \
--namespace http://www.sample/TravelPermission --output ./output/cli
5. Run the tests¶
uv run --extra dev pytest # backend (about 220 tests)
uv run --extra dev ruff check src tests scripts
uv run --extra dev basedpyright # deprecated-API check
dotnet test ui/MiddlewareForge.slnx # web UI (bUnit)
See Development for the project layout, fixtures and the end-to-end smoke test.
Sample inputs¶
| File | What it is |
|---|---|
example/travel-services.json |
OpenAPI 3.1 travel-permission service, 5 operations with header parameters |
example/PersonTravel.json |
OpenAPI 3.0 person-travel service, 2 operations with HTTP Basic security |
example/OSB/TravelService/ |
A hand-built OSB reference project generated from the two files above, plus the combined PersonTravel service with a routing table; its files are also the examples given to the LLM fallback |
template/docs/ICD-template.docx |
The Interface Control Document template the generated ICDs are filled into |
tests/fixtures/ |
The documents the automated tests use, including user-profile.json (8 operations under /User, /Profile and /Health) |