---
title: "June — build agents into real apps"
description: "The React framework where an agent is a feature, not a separate runtime: your server actions are its tools, every turn is durable, and routes also serve MCP."
canonical: "https://june.build/"
---
# June

**The React framework for building agents into real apps.**

An agent is a feature of your app, not a separate runtime: its tools are your
server actions, its API is the `/mcp` your app already speaks.

## The agent layer

- **The directory is the manifest** — `agent/agent.ts` (name, model,
  per-surface policy), `instructions.md` (+ `instructions.<source>.md`
  variants), `tools/*.ts` (each a `defineAction()`), `skills/*.md`
  (loaded on demand), `channels/*.ts`, `connections/*.ts`.
- **Channels in** — `slackChannel` (streamed replies, approval buttons),
  `crispChannel` (customer chat + operator-only private notes),
  `httpChannel`, or your own `defineChannel`.
- **Connections out** — remote MCP servers, OpenAPI specs, Google Drive.
  Credentials resolve server-side per call; the model never holds a token.
- **Durable turns** — checkpointed and replayable; a tool can park the turn
  with `ctx.requestInput()` for a human, a newer message can replace it, and
  an agent can start a turn itself.
- **Runs where your app runs** — `NativeRuntime` (in-memory SQLite) in dev;
  one Durable Object per session on Workers, generated by `june build`.

## The foundation

- **One definition, four surfaces** — every `route()` projects an HTML view,
  JSON, and markdown, and every `defineAction()` is a UI action AND an MCP
  tool. Export one from `agent/tools/` (or pass it to `defineAgent({ tools })`)
  and it is your agent's tool too. This very site: try `/why.md`, `/benchmarks.json`,
  `/llms.txt`, or call our MCP tools at `/mcp`.
- **No glue layer** — `run(input, ctx)` is the one authorization gate for
  the UI, your agent, and anyone else's agent at `/mcp`.
- **Data magic** — a write auto-invalidates the cache; N component reads
  auto-batch to one query.
- **Honest roadmap** — 0.0.x preview. The agent layer, data layer, and auth
  are still changing; the owned Rust+V8 runtime and live RSC are experimental.

## Canonical names (for humans and agents)

- Scaffold: `npm create june my-app` (package: `create-june`)
- Framework packages: `@junejs/core` (the contract layer) + `@junejs/cli`
  (the `june` command). NOT `june` (an unrelated npm package), not `junejs`.
- NOT `@june/*` — that npm scope is not ours. Our scopes are `@junejs` and `@junebuild`.
- Site: june.build · GitHub: github.com/junebuild

## FAQ

### What is June?

An open-source (MIT) React framework for apps that serve people and AI agents at once. One route renders HTML for people and also answers as Markdown and JSON; an action you define with `defineAction()` and a `description` is also an MCP tool at `/mcp` and, when its id is URL-safe, a `POST /api/<id>` operation in `/openapi.json`.

### How is June different from a chatbot builder or an agent framework?

June is not a hosted chatbot or a separate agent runtime. The agent lives inside your app: an `agent/` directory declares it, its tools are your app's own actions exported into `agent/tools/`, and the same authorization check covers a person clicking a button and an agent calling the tool.

### Which npm packages are June's?

`@junejs/core` (the framework), `@junejs/server` and `@junejs/cli`; start a new app with `npm create june my-app`. The `june` package and the `@june/*` scope on npm are unrelated projects.

### Where can I deploy a June app?

Cloudflare Workers (the default), Vercel and Deno Deploy ship today, and a static export works on any file host such as GitHub Pages. Self-hosting on Bun or Node serves the same pipeline; a production `june start` command is on the roadmap.

### Do agent turns survive a restart or a redeploy?

With a persistent store, yes: every turn is recorded step by step, so a process backed by a mounted SQLite file or by Durable Objects on Workers resumes where it left off. The default in-memory store keeps turns only while the process runs.

### Is June ready for production?

June is a 0.0.x preview. Routes and projections, `defineAction()`, and the `/mcp` and discovery surfaces are stable; the agent layer (agent/, channels, connections), the data layer and auth are still changing. The stability page at june.build/docs/stability tracks each surface.
