solidstart-request-events

Community

Master SolidStart server request context.

Authorvallafederico
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill simplifies accessing and managing request-specific data and context within SolidStart server-side functions, ensuring type safety and efficient data flow.

Core Features & Use Cases

  • Access Server Context: Retrieve request details like URL and headers using getRequestEvent.
  • Typed Locals: Define and use type-safe context data (event.locals) across server functions via middleware.
  • Advanced Access: Utilize nativeEvent for direct access to the underlying Vinxi/H3 event object when necessary.
  • Use Case: Securely authenticate users by checking an Authorization header in middleware, storing the user object in event.locals, and then accessing it in a server route to fetch user-specific data.

Quick Start

Use the solidstart-request-events skill to get the current request URL and set a custom response header.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: solidstart-request-events
Download link: https://github.com/vallafederico/solid-ai-rules/archive/main.zip#solidstart-request-events

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.