RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/CLAUDE.md/livewire/livewire

CLAUDE.md

CLAUDE.md
CLAUDE.mdroot

Quality

100/100

Scores the file, not the repository.

Length

374 words

11 headings · 3 code blocks

Repository

24k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
livewire/livewire/CLAUDE.mdRawGitHub
1# Project Overview
2 
3Livewire is a full-stack framework for Laravel. It allows you to build dynamic front-end applications without leaving the comfort of PHP/Laravel/Blade.
4 
5It is similar to projects like Phoenix Liveview however it isn't "live" in that it doesn't use real-time connections like websockets. Just simple http requests.
6 
7It renders on the server and uses morphing algorithm to path the DOM with updates from the server.
8 
9It "dehydrates" the state of a component into a JS-consumable object that is passed back to the server to be "hydrated" during the next request.
10 
11# Tech Stack
12 
13- Laravel + PHP + Vanilla JS
14- JS Bundling: esbuild
15 
16# Project Structure
17 
18```
19src/ → The PHP source files
20- Features/ → Individual ~modules to isolate features
21js/ → The JavaScript source files
22tests/ → A smattering of PHP tests however, most tests are inside their src/Feature directories
23```
24 
25# Development Workflow
26 
27## Setup
28 
29Run `composer setup` to install all dependencies (PHP, JS, ChromeDriver).
30 
31## Build JS assets
32 
33Run `npm run build` to bundle the JS
34 
35**IMPORTANT:** Do not commit `dist/` files. They are built in CI.
36 
37# Code Patterns
38 
39- Write JavaScript without semicolons
40- Always use `let` (no `const`)
41- Strive for single-word features and affordances (ex. `wire:click.stop` instead of `wire:click.stop-propagation`)
42 
43# Testing
44 
45Most browser and unit tests live inside of feature directories for example:
46 
47src/Features/SupportSlots/[UnitTest.php|BrowserTest.php]
48 
49```bash
50composer test # all tests
51composer test:unit # unit tests only
52composer test:browser # browser tests (headless)
53composer test:browser:headed # browser tests (opens Chrome)
54composer test:browser -- --filter="SupportCSP" # specific browser tests
55```
56 
57**IMPORTANT:** Never run the full Livewire browser test suite — it takes too long. Always use `--filter` to run only the specific tests relevant to your changes. The full suite runs in CI.
58 
59# Releasing
60 
61## Bumping Alpine (optional)
62 
63If you need to update the Alpine.js dependency before a release:
64 
65```bash
66npm run bump-alpine
67```
68 
69Then commit the updated `package.json` and `package-lock.json`.
70 
71## Creating a release
72 
731. Go to **Actions → "Release" → "Run workflow"**
742. Enter the version number (e.g. `4.3.0` — the `v` prefix is added automatically)
753. The workflow installs deps, builds assets, runs JS tests, creates a tag with the built `dist/` files, and creates a GitHub Release with auto-generated notes
76 

Commands it names

  • composer test
  • composer test:unit
  • composer test:browser
  • composer test:browser:headed
  • composer test:browser -- --filter="SupportCSP"
  • npm run bump-alpine
  • composer setup
  • npm run build

Sections

  • Project Overview
  • Tech Stack
  • Project Structure
  • Development Workflow
  • Setup
  • Build JS assets
  • Code Patterns
  • Testing
  • Releasing
  • Bumping Alpine (optional)
  • Creating a release

What it covers

setupbuildtestcode-stylearchitecturedeploymentdo-notagent-behaviour

Stack — with the evidence

php

(1.00)

vitest

(1.00)

laravel

(0.70)

javascript

(0.60)

github-actions

(0.60)

vercel

(0.60)

Format

CLAUDE.md

Claude Code's memory file. Shaped like AGENTS.md but with two things it lacks: @path imports, so shared rules live in one place, and a user-scope layer that follows the developer across repos rather than shipping with the code.

What the corpus says about it

Repository

Owner
livewire
Language
—
License
—
Archived
no

All configs in this repo

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.4kCLAUDE.mdtypescriptnode+16setupbuildstylearch+2100/1003 days ago
Adit-Jain-srm/NightmareNetCLAUDE.md · 45CLAUDE.mdtypescriptpython+18buildtestlint-formatstyle+6100/1003 days ago
filamentphp/filamentCLAUDE.md · 32kCLAUDE.mdphplaravel+5buildtestlint-formatstyle+7100/1003 days ago
bagisto/bagistoCLAUDE.md · 28kCLAUDE.mdphplaravel+8setupbuildteststyle+5100/1003 days ago
ruvnet/rufloruflo/src/ruvocal/CLAUDE.md · 67kCLAUDE.mdtypescriptnode+15setupbuildtestlint-format+697/1003 days ago
oven-sh/buntest/CLAUDE.md · 95kCLAUDE.mdtypescriptjavascript+14teststyletesting-strategydo-not97/1003 days ago
carrot-foundation/middle-earthCLAUDE.md · 0CLAUDE.mdtypescriptnode+12setupbuildtestlint-format+697/1003 days ago
MetaMask/metamask-design-systemCLAUDE.md · 34CLAUDE.mdtypescriptnode+12buildtestlint-formatstyle+597/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack