Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@ecopages/ecopages-jsx

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ecopages/ecopages-jsx

JSX integration plugin for Ecopages

latest
Source
npmnpm
Version
0.2.0-alpha.12
Version published
Maintainers
1
Created
Source

@ecopages/ecopages-jsx

Integration plugin for @ecopages/jsx templates in Ecopages. It provides server-rendered JSX pages, Radiant-backed web component support, and optional MDX route handling.

Installation

bunx jsr add @ecopages/ecopages-jsx @ecopages/radiant

@ecopages/radiant is a required peer dependency for this package.

Usage

Register the ecopagesJsxPlugin in your eco.config.ts.

import { ConfigBuilder } from '@ecopages/core/config-builder';
import { ecopagesJsxPlugin } from '@ecopages/ecopages-jsx';

const config = await new ConfigBuilder()
	.setBaseUrl(import.meta.env.ECOPAGES_BASE_URL)
	.setIntegrations([ecopagesJsxPlugin()])
	.build();

export default config;

Radiant Support

Radiant runtime bundles are enabled by default so JSX pages can render and hydrate Radiant custom elements.

ecopagesJsxPlugin({
	radiant: true,
});

Set radiant: false when your JSX pages do not need the Radiant browser runtime on a given app.

MDX Support

Enable MDX to treat .mdx files as JSX routes compiled against the @ecopages/jsx runtime.

import { ConfigBuilder } from '@ecopages/core/config-builder';
import { ecopagesJsxPlugin } from '@ecopages/ecopages-jsx';

const config = await new ConfigBuilder()
	.setIntegrations([
		ecopagesJsxPlugin({
			mdx: {
				enabled: true,
			},
		}),
	])
	.build();

export default config;

Keywords

ecopages

FAQs

Package last updated on 14 Apr 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