بسم الله الرحمن الرحيم
In the name of Allah, the Compassionate, the Merciful
REST API server for ModelScript. Provides endpoints for package management, publishing, simulation, GraphQL, SPARQL, and RDF queries.
| Command | Description |
|---|---|
npm run build |
Clean, lint, and compile TypeScript |
npm run clean |
Remove dist/ output |
npm run dev |
Start development server (port 3000) |
npm run lint |
Run ESLint on src/ |
npm run watch |
Compile in watch mode |
npm run devThe API server starts on http://localhost:3000.
| Endpoint | Description |
|---|---|
/api/packages |
List, search, and manage Modelica libraries |
/api/publish |
Publish and unpublish packages |
/api/simulate |
Run simulations and return results |
/api/graphql |
GraphQL endpoint for querying library metadata |
/api/sparql |
SPARQL endpoint for RDF-based queries |
/api/rdf |
RDF data export for Modelica libraries |
/api/auth |
Authentication and token management |
The API is available as a Docker service:
docker compose up apiExposes port 3000.