stratal-incremental-adoption

Mount Stratal as a sub-app in existing Hono applications.

10|1|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/strataljs/stratal --skill stratal-incremental-adoption
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stratal-incremental-adoption
Source: https://github.com/strataljs/stratal/tree/main/.agents/skills/stratal-incremental-adoption
Command: npx skills add https://github.com/strataljs/stratal --skill stratal-incremental-adoption

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill allows developers to gradually integrate the Stratal framework into an existing Hono application without requiring a complete rewrite, enabling incremental adoption and coexistence of legacy and new code.

Core Features & Use Cases

  • Sub-app Mounting: Mount Stratal as a sub-application within a Hono app using app.route().
  • Coexisting Handlers: Manage both Stratal's queue consumers/cron jobs and legacy handlers within the same Cloudflare Worker.
  • Gradual Migration: Migrate features piece by piece from a legacy Hono app to Stratal modules.
  • Use Case: You have a large Hono application and want to start using Stratal for new features like user authentication and API endpoints, while keeping the rest of your application running on plain Hono.

Quick Start

Mount the Stratal Hono app under the '/api' route in your existing Hono application.

Frequently Asked Questions about stratal-incremental-adoption

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I incrementally adopt a framework into an existing Hono app?

To incrementally adopt a new framework into an existing Hono app, you can mount it as a sub-application using `app.route()`, allowing new modules to coexist with legacy handlers during gradual migration.

Can I run queue consumers and cron jobs alongside legacy Hono handlers in a Cloudflare Worker?

Yes, you can run queue consumers and cron jobs alongside legacy Hono handlers in a Cloudflare Worker by explicitly forwarding queue and scheduled events from the worker's exports to the new framework's handlers.

What is the best way to migrate a large Hono application piece by piece?

The best way to migrate a large Hono application piece by piece is to mount the new framework under a specific route like `/api`, enabling you to migrate features individually while keeping the rest of the app on plain Hono.

Does mounting a sub-app in Hono support coexistence of old and new code?

Mounting a sub-app in Hono supports the coexistence of old and new code by allowing both the mounted framework's handlers and legacy handlers to operate within the same Cloudflare Worker environment.

Do I need to forward events manually when integrating into a Hono application?

Yes, you need to manually forward queue and scheduled events from the worker's exports to the integrated framework's handlers to ensure coexisting handlers process background tasks correctly.