Skip to content
affaan-m avatar

Tinystruct Patterns

Dispatcher-centered developer toolkit for tinystruct Java applications covering actions, HTTP, events, JSON, and persistence.

CCM score
75 of 100
skills.sh installs
8.6K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers dual-mode CLI and HTTP development patterns, including @Action routing, ActionRegistry, the built-in HTTP server, SSE, uploads, and outbound networking
  • Centers on bin/dispatcher as the primary run, test, and debug entry point, with --import handling for Application classes
  • Explains generating the bin/dispatcher and bin/dispatcher.cmd launcher scripts from the framework jar, including per-OS behavior and .gitattributes line endings
  • Designed for Java developers building transport-neutral actions that must run from both the terminal and a browser

Install

$ npx -y skills add affaan-m/ecc --skill tinystruct-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

tinystruct Development Patterns

Architecture and implementation patterns for building modules with the tinystruct Java framework – a lightweight, high-performance framework that treats CLI and HTTP as equal citizens, requiring no main() method and minimal configuration.

Core Principle

CLI and HTTP are equal citizens. A transport-neutral @Action uses Mode.DEFAULT (or omits mode) and has no HTTP-only dependencies. Such an action can run from both a terminal and a web browser. Mode.DEFAULT removes the transport restriction; it does not make an HTTP-dependent method CLI-compatible. Request and Response parameters come from HTTP context attributes and remain null when those attributes are absent, as in an ordinary CLI invocation. Keep shared logic independent of HTTP objects, sessions, and uploads, and call it from transport-specific entry points when needed. This "dual-mode" capability is the core design philosophy of tinystruct. An action with a transport-specific mode (Mode.CLI, Mode.HTTP_GET, Mode.HTTP_POST, ...) is deliberately bound to that transport: the framework rejects it from the other one with "The action is not allowed to be executed."

Details

Repository
github.com/affaan-m/ecc
Categories
Java & JVM, Backend & APIs
First seen
Jul 14, 2026

Questions

What does the tinystruct-patterns skill help me do?

It guides development with the tinystruct Java framework, covering @Action-mapped routes, Application classes, unit tests, ActionRegistry, and the built-in HTTP server. It also covers the event system, JSON with Builder/Builders, database persistence with AbstractData, POJO generation, Server-Sent Events, file uploads, and outbound HTTP networking.

Who should use the tinystruct-patterns skill?

It is for developers working on the tinystruct codebase or on any project built with tinystruct. It explains how transport-neutral actions can run from both a terminal and a web browser.

How do I install the tinystruct-patterns skill?

Run npx -y skills add affaan-m/ecc --skill tinystruct-patterns -y in a project. Once installed, the agent can generate the bin/dispatcher and bin/dispatcher.cmd launcher scripts when a project lacks them.

Where does tinystruct-patterns rank among Java and JVM skills?

It ranks in the top 25 on the Java and JVM category page on Claude Marketplaces. It sits alongside java-springboot, springboot-patterns, java-coding-standards, jpa-patterns and kotlin-patterns, and focuses on the tinystruct framework specifically.

More from affaan-m/ecc

All 257

Similar to Tinystruct Patterns

More Java & JVM