worker.md SPEC
Menu

tinystruct

A lightweight, modular Java application framework for web and CLI development, designed for AI integration and plugin-based architecture. Enabling developers to create robust soluti...

Tool registry 365 stars Java Apache-2.0 Worker-compatible

Source#

Tags#

agentagent-frameworkagent-frameworksai-agentai-developmentjava

Integration notes#

Repository is focused on tool/server interoperability; wrap in bounded worker contracts for production use.

worker.md example#

Starter worker.md contract mapped from this registry entry. Copy this file and adapt schemas, constraints, and statuses for your task.

---
id: tinystruct-repo-derived-worker
name: tinystruct Repo-Derived Worker
version: 1.0.0
source_registry_url: https://worker.md/registry/tinystruct/
source_repository: https://github.com/tinystruct/tinystruct
repository_default_branch: master
repository_language: Java
repository_license: Apache-2.0
repository_updated_at: 2026-11-19
worker_mode: workflow-automation-worker
derivation_method: github_repository_metadata_plus_raw_readme
derivation_confidence: 0.9
derived_on: 2026-11-22
tags:
  - agent
  - agent-framework
  - agent-frameworks
  - ai-agent
  - ai-development
  - java
---

# tinystruct Repo-Derived Worker

## Repo-derived summary
- Registry summary: A lightweight, modular Java application framework for web and CLI development,         designed for AI integration and plugin-based architecture.         Enabling developers to create robust soluti...
- Repository description: A lightweight, modular Java application framework for web and CLI development,         designed for AI integration and plugin-based architecture.         Enabling developers to create robust solutions with ease for building efficient and scalable applications.
- Stars (snapshot): 365
- Primary language: Java
- Worker mode classification: workflow-automation-worker

## Extracted from
- https://github.com/tinystruct/tinystruct
- https://github.com/tinystruct/tinystruct/blob/master/README.md
- https://badges.mvnrepository.com/badge/org.tinystruct/tinystruct/badge.svg?label=MvnRepository
- https://img.shields.io/maven-central/v/org.tinystruct/tinystruct?label=Maven%20Central
- https://github.com/tinystruct/tinystruct/actions/workflows/build.yml/badge.svg

## Evidence notes (from repository text)
- README summary paragraph: `"How many are your works, O LORD ! In wisdom you made them all; the earth is full of your creatures."` ***Psalms 104:24***
- A simple framework for Java development. Simple thinking, Better design, Easy to be used with better performance!
- https://github.com/tinystruct/tinystruct/actions/workflows/build.yml/badge.svg](https://github.com/tinystruct/tinystruct/actions/workflows/build.yml)
- https://github.com/tinystruct/tinystruct/actions/workflows/codeql.yml/badge.svg](https://github.com/tinystruct/tinystruct/actions/workflows/codeql.yml)
- Or create a project with a single command (Linux/macOS, requires JDK 17+ and Maven; choose basic, web, mcp, workflow or agent):
- To use the framework as a standalone command-line tool, build the optional jar that bundles all dependencies (about 50 MB, not part of the release):

## Installation hints found in README
- No explicit package installation command detected in README text.

## worker.md contract (derived starter)
Purpose: Execute one automation workflow step in a bounded worker run.

### Input schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_id",
    "trigger",
    "step"
  ],
  "properties": {
    "run_id": {
      "type": "string"
    },
    "trigger": {
      "type": "object"
    },
    "step": {
      "type": "string"
    }
  }
}
```

### Output schema
```json
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "run_id",
    "step",
    "status",
    "artifacts"
  ],
  "properties": {
    "run_id": {
      "type": "string"
    },
    "step": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ok",
        "retryable_error",
        "invalid_request",
        "invalid_output"
      ]
    },
    "artifacts": {
      "type": "array"
    }
  }
}
```

### Constraints
- timeout_seconds: 30
- max_attempts: 2
- idempotency_key: run_id
- status_enum: [ok, retryable_error, invalid_request, invalid_output]
- notes: adapt to concrete APIs/classes documented in this repository before production use

## How this should be used
1. Treat this file as a repo-derived starter profile, not a claim of an official repository API contract.
2. Replace schemas with exact interfaces from code/docs you adopt.
3. Keep execution bounded and auditable using worker protocol constraints.

How to use#

  • Save this as a worker spec file (for example: tinystruct-my-task.worker.md).
  • Replace the input/output schemas and purpose with your real bounded task.
  • Enforce schema validation + timeout + retry policy in your runtime before production use.

Citation#

Reference URL: https://worker.md/registry/tinystruct/

Source URL: https://github.com/tinystruct/tinystruct