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
Own this skill? Claim it
What it does
- Covers dual-mode CLI and HTTP development patterns, including
@Actionrouting,ActionRegistry, the built-in HTTP server, SSE, uploads, and outbound networking - Centers on
bin/dispatcheras the primary run, test, and debug entry point, with--importhandling for Application classes - Explains generating the
bin/dispatcherandbin/dispatcher.cmdlauncher scripts from the framework jar, including per-OS behavior and.gitattributesline 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 -yInstalls 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- Homelab Pihole Dns8.6K
- Quarkus Verification8.6K
- Prisma Patterns8.5K
- Fsharp Testing8.5K
- React Patterns8.5K
- React Testing8.5K
- React Performance8.5K
- Frontend A11y8.4K
- Recsys Pipeline Architect8.2K
- Marketing Campaign8.1K
- Uncloud8.1K
- Benchmark Optimization Loop7.8K
- Social Publisher7.8K
- Latency Critical Systems7.8K
- Parallel Execution Optimizer7.7K
- Prediction Market Risk Review7.7K
- Data Throughput Accelerator7.7K
- Prediction Market Oracle Research7.7K
- Recursive Decision Ledger7.7K
- Team Agent Orchestration7.3K
- Dynamic Workflow Mode7.1K
- Kubernetes Patterns7K
- Intent Driven Development6.9K
- Inherit Legacy Style6.9K
Similar to Tinystruct Patterns
More Java & JVMmcp-server-patternsSkillaffaan-m/ecc11.9K installsPractical guide to building MCP servers with the Node/TypeScript SDK, covering tools, resources, prompts, and transport choice.
appbuilder-action-scaffolderSkilladobe/skills804 installsScaffolds, implements, and debugs Adobe Runtime actions with templates for App Builder SDKs and event patterns.
quarkus-patternsSkillaffaan-m/ecc8.7K installsQuarkus 3.x patterns for event-driven services with Camel messaging, Panache data access, and CDI service layers.
Mcp Server FilesystemMCP serverbytedance39.6K starsThis is ByteDance's filesystem MCP server extracted from their TARS multimodal AI agent stack. It exposes standard file operations over stdio, SSE, or streamabl
fastify-best-practicesSkillmcollina/skills108.7K installsComprehensive Fastify backend guide covering routes, plugins, schemas, auth, performance, and production deployment.
MCP Golang ServerMCP servermetoro-io1.2K starsA Go library for building MCP servers and clients with type-safe tool arguments and multiple transports.