🚀. Socket Launch Week Day 2:Introducing Manifest Alerts.Learn more
Sign In

@agent-format/renderer

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agent-format/renderer

React renderer for the agent file format (.agent).

latest
Source
npmnpm
Version
0.1.8
Version published
Weekly downloads
32
-17.95%
Maintainers
1
Weekly downloads
 
Created
Source

@agent-format/renderer

React renderer for the agent file format (.agent).

Status: Draft v0.1 — API will change until v1.0.

Install

npm install @agent-format/renderer

Requires React 18+.

Usage

import { AgentRenderer, type AgentFile } from '@agent-format/renderer'
import '@agent-format/renderer/styles.css'

export default function Page({ data }: { data: AgentFile }) {
    return <AgentRenderer data={data} />
}

// Loading the file (browser):
// const res = await fetch('/my-project.agent')
// const data = await res.json() as AgentFile

Section support (v0.1)

The renderer supports 13 built-in section types, plus the deprecated inheritance-diagram alias and x-<vendor>:<name> extension sections:

TypeUse for
kanbanStatus-column board with cards, labels, WIP limits
checklistGrouped todo items with progress counts
notesOrdered plain-text blocks (newlines preserved)
timelineItems + milestones with dates
tableRows with typed columns (text / number / date / select / status)
logRisks, decisions, issues with badges
metricsKPI cards with value / unit / trend
diagramNested tree (mind map / hierarchy)
reportRepeating plain-text reports (newlines preserved)
formInput fields + submission count
linksURL list grouped by category
referencesFile references with memos
family-graphGenealogy / inheritance diagrams, including plugin variants
inheritance-diagramDeprecated alias for family-graph
x-<vendor>:<name>Extension sections rendered by plugins or fallback UI

Unknown section types render as a fallback showing the raw JSON, per the spec's conformance rule that readers MUST NOT error on unknown section types.

Styling

Import @agent-format/renderer/styles.css. CSS variables (prefixed --af-*) can be overridden at the root level for theming. Dark mode is handled via prefers-color-scheme.

Development

npm install
npm run build      # produces dist/
npm run dev        # watch mode

License

MIT.

Keywords

agent

FAQs

Package last updated on 13 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts