Skip to content
Back to skills

Inertia

ASecurity

Build modern monolith applications with Inertia.js - combining server-side frameworks (Laravel, Rails, etc.) with React/Vue/Svelte frontends without building APIs. Use when creating Inertia pages and layouts, working with Link component for navigation, building forms with Form component or useForm hook, handling validation and errors, managing shared data and props, implementing authentication and authorization, using manual visits with router, working with partial reloads, setting up persist...

  • 225 stars
  • 0 votes
  • 3 copies
  • 14 views
  • Added September 4, 2026
developmentjavascriptgojavareactvuerailsapifrontenddocumentation

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill inertia --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Inertia?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Inertia
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-inertia/badge)](https://www.skillsdirectory.com/skills/neversight-inertia)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: inertia
description: "Build modern monolith applications with Inertia.js - combining server-side frameworks (Laravel, Rails, etc.) with React/Vue/Svelte frontends without building APIs. Use when creating Inertia pages and layouts, working with Link component for navigation, building forms with Form component or useForm hook, handling validation and errors, managing shared data and props, implementing authentication and authorization, using manual visits with router, working with partial reloads, setting up persistent layouts, or configuring client-side setup."
---

# Inertia.js

Modern monolith framework for building SPAs without APIs. Combine server-side framework power with React/Vue/Svelte frontends.

## Core Concept

Inertia replaces your view layer - controllers return JavaScript page components instead of server-side templates. The `<Link>` component intercepts clicks for XHR visits, providing SPA experience without full page reloads.

## Quick Reference

### Basic Page Structure

```vue
<script setup>
import Layout from './Layout'
import { Head } from '@inertiajs/vue3'
defineProps({ user: Object })
</script>

<template>
    <Layout>
        <Head title="Welcome" />
        <h1>Welcome {{ user.name }}</h1>
    </Layout>
</template>
```

### Navigation

```vue
<Link href="/users">Users</Link>
<Link href="/logout" method="post" as="button">Logout</Link>
<Link href="/search" :data="{ query }" preserve-state>Search</Link>
```

### Form Submission

```vue
<!-- Simple Form Component -->
<Form action="/users" method="post">
    <input type="text" name="name" />
    <button type="submit">Create</button>
</Form>

<!-- useForm Hook -->
<script setup>
import { useForm } from '@inertiajs/vue3'
const form = useForm({ name: '', email: '' })
function submit() { form.post('/users') }
</script>
```

## Documentation by Topic

| Topic | Reference File | Description |
|-------|---------------|-------------|
| **Forms** | [forms.md](references/forms.md) | Form component, useForm helper, validation, error handling |
| **Links & Navigation** | [links.md](references/links.md) | Link component, manual visits, active states |
| **Validation** | [validation.md](references/validation.md) | Server-side validation, error bags, error display |
| **Pages & Layouts** | [pages-layouts.md](references/pages-layouts.md) | Page components, persistent layouts, default layouts |
| **Data & Props** | [data-props.md](references/data-props.md) | Shared data, partial reloads, deferred props |
| **Authentication** | [authentication.md](references/authentication.md) | Auth patterns, CSRF protection, authorization |
| **Setup** | [setup.md](references/setup.md) | Client-side initialization, server-side setup |
| **Advanced** | [advanced.md](references/advanced.md) | Events, error handling, scroll management, SSR |

## Common Patterns

### Displaying Validation Errors

```vue
<div v-if="errors.email">{{ errors.email }}</div>
```

### Accessing Shared Data

```vue
<script setup>
import { usePage } from '@inertiajs/vue3'
const page = usePage()
const user = computed(() => page.props.auth?.user)
</script>
```

### Preserving State/Scroll

```vue
<Link href="/form" preserve-state preserve-scroll>Edit</Link>
```

### Partial Reloads

```vue
<Link :only="['users']">Refresh Users</Link>
router.visit('/users', { only: ['users'] })
```

## Framework Support

- **Client:** Vue 3 (`@inertiajs/vue3`), React (`@inertiajs/react`), Svelte (`@inertiajs/svelte`)
- **Server:** Laravel (official), Rails, Phoenix, Symfony (community adapters)

Files in this skill

  • SKILL.md3.5 KB
  • description_ar.txt1011 B
  • description_cn.txt477 B
  • description_de.txt662 B
  • description_en.txt544 B
  • description_es.txt633 B
  • description_fr.txt743 B
  • description_it.txt650 B
  • description_ja.txt777 B
  • description_ko.txt627 B
  • description_ru.txt1 KB
  • description_tw.txt477 B
  • stats.json65 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.