# Primate 0.40: Collocated Routes, Store Enums, and Async Schemas

Original title: Primate 0.40: Route pages, store enums, async schemas and events

> Hacker News story 48899449 · language: en · submitted 2026-07-13
> Web version: https://zeli.app/story/48899449
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 15 · by [terrablue](<https://news.ycombinator.com/user?id=terrablue>) · 💬 6
[original](<https://primate.run/blog/primate-040>) · [HN discussion](<https://news.ycombinator.com/item?id=48899449>)

## Summary

I am excited to announce Primate 0.40, featuring collocated route pages that keep frontend files alongside their routes. We now support fully typed store enums to prevent data drift, plus derived and async schemas for flexible data normalization. The update also simplifies Server-Sent Events with a single setup function and introduces auto-applying migrations for smoother production deployments.

## Key quote

> The route handles data loading, validation, redirects and status codes; the page handles rendering.

## HN discussion (6 comments)

### [rubyfan](<https://news.ycombinator.com/item?id=48980856>)

> I don’t understand what is the primary innovation over other frameworks. In passing it looks like Express 10 years ago but maybe with some modernization and flexibility to leverage components from various other frameworks.

### [happyPersonR](<https://news.ycombinator.com/item?id=48979883>)

> Lolll
>
> I love stuff like this
>
> Just post a link to a random software framework… with no description

---

## Cite

- Page: https://zeli.app/story/48899449
- Date: 2026-07-13
- Source: primate.run (https://primate.run/blog/primate-040)
- Hacker News: https://news.ycombinator.com/item?id=48899449

## Other languages

- zh: https://zeli.app/zh/story/48899449 · markdown: https://zeli.app/zh/story/48899449.md
- ja: https://zeli.app/ja/story/48899449 · markdown: https://zeli.app/ja/story/48899449.md
- ko: https://zeli.app/ko/story/48899449 · markdown: https://zeli.app/ko/story/48899449.md
- de: https://zeli.app/de/story/48899449 · markdown: https://zeli.app/de/story/48899449.md
- es: https://zeli.app/es/story/48899449 · markdown: https://zeli.app/es/story/48899449.md
