stratal-framework

Provide modular components for Cloudflare Workers with authentication, database, and RBAC.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the development of complex Cloudflare Workers applications by providing pre-built modules for essential functionalities like authentication, database management, and authorization, reducing boilerplate code and development time.

Core Features & Use Cases

  • Authentication: Integrates Better Auth for secure user authentication and session management.
  • Database Management: Leverages ZenStack ORM for type-safe database interactions, supporting multi-connection and per-connection schemas.
  • RBAC: Implements Role-Based Access Control using Casbin for granular permission management.
  • Authorization Guards: Provides AuthGuard for protecting routes based on authentication status and permissions.
  • Test Factories: Offers utilities for generating test data, streamlining the testing process.

Quick Start

Use the stratal-framework skill to set up authentication with Better Auth and configure a ZenStack database connection.

Frequently Asked Questions about stratal-framework

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

FAQPage Schema
How do I set up authentication in a Cloudflare Workers application?

Authentication in Cloudflare Workers can be set up using Better Auth, which provides secure user authentication and session management modules. It integrates directly into the application structure to reduce boilerplate.

What is the best way to manage Role-Based Access Control for Cloudflare Workers?

Role-Based Access Control (RBAC) for Cloudflare Workers is managed using Casbin, enabling granular permission definitions. An AuthGuard component protects routes by validating authentication status and enforcing these permissions.

Can I use ZenStack ORM for type-safe database operations on Cloudflare Workers?

Yes, ZenStack ORM supports type-safe database interactions within Cloudflare Workers. It handles multi-connection setups and per-connection schemas, ensuring robust data management for edge applications.

Does this framework provide dependency injection and cron job support for Cloudflare Workers?

It provides modular components for Cloudflare Workers including dependency injection, cron jobs, and queues. It also includes OpenAPI documentation generation to streamline API development workflows.

How do I generate test data for a Cloudflare Workers application?

Test data generation is handled by built-in test factories, which provide utilities to create mock data. This streamlines the testing process by automating data setup for development and validation.