# @junejs/core

> June — the agent-native React framework. Contract layer (pure, host-free).

Latest version **0.2.2** (published 2026-10-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install @junejs/core
pnpm add @junejs/core
yarn add @junejs/core
bun add @junejs/core
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.2.2 |
| Published | 2026-10-19 |
| First published | 2026-06-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 1 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 6 |
| Maintainers | linyiru |

## Links

- npm: https://www.npmjs.com/package/@junejs/core
- Repository: https://github.com/junebuild/june
- Homepage: https://june.build
- Issues: https://github.com/junebuild/june/issues
- npm.io page: https://npm.io/package/@junejs/core

## Recent versions

- 0.2.2 (latest) — 2026-10-19
- 0.2.1 (dev) — 2026-10-14
- 0.2.0 — 2026-10-14
- 0.2.0-dev.66 — 2026-10-12
- 0.2.0-dev.65 — 2026-09-30
- 0.2.0-dev.63 — 2026-09-29
- 0.2.0-dev.57 — 2026-09-28
- 0.2.0-dev.50 — 2026-09-28
- 0.2.0-dev.49 — 2026-09-28
- 0.2.0-dev.47 — 2026-09-27
- 0.2.0-dev.45 — 2026-09-27
- 0.2.0-dev.44 — 2026-09-27
- 0.2.0-dev.39 — 2026-09-03
- 0.2.0-dev.38 — 2026-08-12
- 0.2.0-dev.37 — 2026-08-11
- … 80 more at https://npm.io/package/@junejs/core/versions

## README

# @junejs/core

The agent-native React framework. This package is the **pure, host-free
contract layer** — the most stable artifacts of the design, with zero `node:*`
or `Bun.*` (enforced by `test/purity.test.ts`).

| Subpath | What |
| --- | --- |
| `@junejs/core/route` | `route()` + content-negotiated projections (view/json/agent/md) |
| `@junejs/core/config` | config schema + pure resolvers (`defineJune`, `resolveAgent`, speculation rules) |
| `@junejs/core/document` | the shared HTML shell — one document drives dev + built worker (charset lives here) |
| `@junejs/core/agent` | the unified action registry: `defineAction`, `manifest`, `invokeAction` |
| `@junejs/core/discovery` | llms.txt (with the canonical-names stanza), sitemap, api-catalog, MCP card, ARD ai-catalog, agent skills index, Link header |
| `@junejs/core/mcp` | the Web-standard MCP endpoint (`mcpHandler`) |
| `@junejs/core/cache` | `cache()` / `invalidate()` + the `CacheStore` seam (memory built in) |
| `@junejs/core/instrumentation` | request tracing; the host installs the async-context provider |

Host-coupled concerns (fs config loader, content pipeline, dev server,
build/deploy, data layer) live in later layers and import *from* here — never
the other way around.

---
_Source: https://npm.io/package/@junejs/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
