Pulse
A spec-first, AI-native web framework. Early access.
Write a plain JavaScript object that describes what a page does. Pulse handles routing, SSR, hydration, client-side navigation, compression, security headers, and caching automatically.
export default {
route: '/counter',
meta: {
title: 'Counter',
styles: ['/app.css'],
},
state: { count: 0 },
constraints: {
count: { min: 0, max: 10 },
},
view: (state) => `
<main id="main-content">
<p>${state.count}</p>
<button data-event="decrement">−</button>
<button data-event="increment">+</button>
</main>
`,
mutations: {
increment: (state) => ({ count: state.count + 1 }),
decrement: (state) => ({ count: state.count - 1 }),
},
}