wayfinder-development

Generate type-safe Laravel route references in Svelte components with Wayfinder.

Updated Feb 9, 2026
One-click install
npx skills add https://github.com/TUNBudi06/iseki_label --skill wayfinder-development-tunbudi06
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wayfinder-development
Source: https://github.com/TUNBudi06/iseki_label/tree/main/.github/skills/wayfinder-development
Command: npx skills add https://github.com/TUNBudi06/iseki_label --skill wayfinder-development-tunbudi06

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of referencing backend routes within frontend Svelte components, ensuring type safety and reducing common errors associated with manual URL management.

Core Features & Use Cases

  • Type-Safe Route Referencing: Import and use backend routes directly in your TypeScript/JavaScript frontend code with full type checking.
  • Simplified Route Generation: Provides commands to generate route definitions, keeping your frontend in sync with your backend.
  • Use Case: When building a new feature that requires creating a link to a specific post in your Laravel application from a Svelte component, you can use Wayfinder to get the correct URL and HTTP method without hardcoding it.

Quick Start

Use the wayfinder-development skill to import the show function from the PostController and call it with an ID of 1.

Frequently Asked Questions about wayfinder-development

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

FAQPage Schema
How do I reference Laravel routes in Svelte components with type safety?

You can reference Laravel routes in Svelte with type safety by using the Wayfinder package to import route actions directly into TypeScript, ensuring full type checking and reducing manual URL management errors.

What is the best way to generate type-safe URLs for a Laravel backend from a Svelte frontend?

Generating type-safe URLs for Laravel from Svelte is done by using Wayfinder to generate route definitions that keep your frontend synced with the backend, providing correct URLs and HTTP methods without hardcoding.

Can I call Laravel controller actions directly from TypeScript in a Svelte application?

Yes, you can call Laravel controller actions directly from TypeScript in a Svelte application by importing the specific route functions, such as a show function from a controller, and calling them with the required parameters.

Does Wayfinder work with TypeScript to provide type checking for Laravel route integration?

Wayfinder works with TypeScript to provide type checking for Laravel route integration by allowing you to import and use backend routes directly in your frontend code, ensuring robust and error-free frontend-backend integration.

How do I get the correct HTTP method and form attributes for a Laravel route in Svelte?

To get the correct HTTP method and form attributes for a Laravel route in Svelte, use Wayfinder to generate route definitions and form attributes, eliminating the need to manually manage HTTP methods in your frontend components.