> For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt.

# Function: parseReactLynxSource()

> **parseReactLynxSource**(`text`: `string`): [`ReactLynxSource`](/next/api/genui/reactlynx/interfaces/ReactLynxSource.md)

Parse JSON or a JSON code fence and validate the two-file source contract.

## Parameters

| Parameter | Type     |
| --------- | -------- |
| `text`    | `string` |

## Returns

[`ReactLynxSource`](/next/api/genui/reactlynx/interfaces/ReactLynxSource.md)

## Throws

When JSON is invalid, files are missing or extra, or source limits are exceeded.
