Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@meonode/ui

Latest version: v3.4.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: l7aromeo
2 Stars
0 Forks
16 Versions
3.5K Downloads
TypeScript Repo language

Scan summary

@meonode/ui was last scanned on 27 Nov 2026 at version 3.4.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 16 versions; the latest was published on 27 Nov 2026.
  • Findings: No rules fired in version 3.4.1.
  • Downloads: 3,481 downloads.

Versions

16 versions published
Versions and the rules that fired in each
VersionPublishedStatus
3.4.1 LATEST 27 Nov 2026 No rules fired
3.3.0 19 Nov 2026 No rules fired
3.2.0 19 Nov 2026 No rules fired
3.1.5 16 Nov 2026 Not shown
3.1.3 27 Sep 2026 Not shown

No rules fired in 3.4.1

Findings

Findings for v3.4.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 3.4.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@meonode/ui

NPM version License: MIT Bundle Size

Type-safe React components without JSX

A production-ready component library that replaces JSX with function-based composition, featuring direct CSS prop styling, context-based theming, opt-in node-level memoization, and full React Server Components support—powered by @emotion/react.

Core Concept

MeoNode UI eliminates JSX while maintaining full React compatibility through functional composition. Style components with CSS properties as props, leverage automatic theme resolution via React Context, and benefit from intelligent caching without manual optimization.

JSX Pattern:

<div style={{ padding: '20px', borderRadius: '12px' }}>
  <h2 style={{ fontSize: '1.5rem', marginBottom: '8px' }}>{title}</h2>
  {children}
</div>

MeoNode Pattern:

Div({
  padding: '20px',
  borderRadius: '12px',
  backgroundColor: 'theme.primary',
  children: [H2(title, { fontSize: '1.5rem', marginBottom: '8px' }), ...children],
})

Features

Function-Based Composition

Plain JavaScript functions replace JSX—no build transforms, no syntax extensions. Compose UIs as first-class function trees with full TypeScript inference.

Nothing here requires a build step. An optional build-time plugin, @meonode/compiler, moves part of the per-render prop work to build time.

Nested Array Children

A children array can hold arrays, and the nesting carries meaning: a nested array is a list, its siblings are not.

Div({
  children: [
    H2('Members'), // an authored sibling
    members.map(member => Row({ key: member.id, children: member.name })), // a list — React checks these for keys
  ],
})

React skips the missing-key check on children it receives as separate arguments and runs it on the members of an array it receives as one. Nesting keeps those two apart: the heading is exempt, the rows are checked, and a row without a key is reported. Spreading the rows instead — ...members.map(...) — makes each one look like an authored sibling, so the check never runs and the missing key goes unreported while the rows still remount on every render. Spreading was the only option before, because a nested array used to reach React unrendered and throw Objects are not valid as a React child.

Nesting is unlimited. The same array placed twice renders twice, as in React; only an array that contains itself is dropped, rather than left to overflow the stack.

A child renders as React renders it: Span(0) gives <span>0</span>, and '' reaches a component as ''. Only null, undefined and false render nothing. So children: count && Badge(count) renders 0 when count is 0, exactly as {count && <Badge />} does in JSX; write count > 0 && Badge(count) to render nothing.

Built Elements as Children

A node takes elements made elsewhere as children: createElement output, JSX from another file, or a node's .render() result. Their props are final, so the node passes them on as they are rather than sorting them into styles and attributes again.

  • Keys and attributes stay as written. A theme.* token is turned into a CSS variable only where it is a style value: in a plain tag's inline style, and in a component element's props, which may take style values under any name (MUI's sx, an icon's color). A title or a key that happens to contain theme. is left alone.
  • Children keep their shape. A list stays a list, a list of one included, so React checks its keys and reports a missing one exactly as when it renders the element itself.
Keyed Lists with For()

React matches children by position unless they carry a key, so deleting or reordering an unkeyed list hands each surviving row the previous row's fiber — its state, its focus, its half-typed input. children: items.map(...) inherits that rule in full, and position is the one thing that cannot tell you which row is which after a reorder.

The data can. For() takes the data rather than the finished nodes and keys each row from it.

Div({ children: For(todos, todo => TodoRow({ todo })) })

A row is identified by its object reference, which survives the row's contents changing: renaming a row keeps its state, where hashing the contents would throw it away on every keystroke. Pass an identity accessor whenever the items are rebuilt between renders — a fresh fetch, a .map() that spreads — since references cannot see through that.

Div({ children: For(todos, todo => TodoRow({ todo }), todo => todo.id) })

Development says so when it detects that case, rather than letting the list remount silently.

Direct CSS-in-Props

Pass CSS properties directly to components. No separate styled-components declarations, no className juggling. All valid CSS properties work as props with full type safety.

Button('Submit', {
  padding: '12px 24px',
  backgroundColor: 'theme.primary',
  borderRadius: 8,
  transition: 'all 0.2s ease',
  css: {
    ':hover': { transform: 'scale(1.05)' },
  },
})
Advanced Portal System

Manage complex UI layers like modals, drawers, and overlays with a powerful stack-based portal system. Supports nested portals and state synchronization.

Key Features:

  • Global Layout Integration: Define the provider and host at the root for app-wide access.
  • Auto-Sync: Keep portal content in sync with parent state automatically.
  • Nested Portals: Open portals from within other portals easily.
  • Stack-based management: Automatically manages multiple overlapping layers.
// 1. Setup at Layout Level
const RootLayout = ({ children }: { children: ReactNode }) => 
  PortalProvider({
    children: [
      ...children,
      PortalHost() // Portals render here, on top of content
    ]
  })

// 2. Define data interface and portal content
interface MyData {
  count: number;
  setCount: React.Dispatch<React.SetStateAction<number>>;
}

const MyPortalContent = ({ data, close }: PortalLayerProps<MyData>) => 
  Div({
    children: [
      Text(`Count: ${data?.count}`),
      Button('Increment', { onClick: () => data?.setCount(c => c + 1) }),
      Button('Close', { onClick: close })
    ]
  })

// 3. Use anywhere in the tree
const MyComponent = () => {
  const [count, setCount] = useState(0)
  // Auto-sync: portal updates whenever count changes
  const portal = usePortal<MyData>({ count, setCount })

  return Div({
    children: [
      Button('Open Modal', { 
        onClick: () => portal.open(MyPortalContent) 
      })
    ]
  })
}
Context-Based Theming

Theme values resolve automatically through React Context. Reference semantic tokens anywhere without prop drilling.

ThemeProvider({
  modes: ['light', 'dark'],
  defaultMode: 'light',
  tokens: {
    primary: { default: '#FF6B6B', content: '#4A0000' },
    spacing: { sm: 8, md: 16, lg: 24 },
  },
  children: [
    /* your app */
  ],
})

Every token becomes a CSS variable, so Div({ color: 'theme.primary' }) renders color: var(--meonode-theme-primary) in client and server components alike. A nested ThemeProvider can add tokens of its own for its subtree, but its variables are declared on :root like the outer provider's: a nested provider that gives a token the outer provider already defines another value changes it for the whole page, so in development it warns. So do two providers mounted side by side that give one token different values. Give nested tokens names of their own.

Theme Modes Without a Flash

A server-rendered page cannot know which mode a reader is in. A cookie makes the response depend on who asked for it, so no cache can share it; a guess is a flash of the wrong theme for everyone it got wrong.

ThemeProvider avoids both. Colours are var() references, so one token object serves every mode and the server sends the same bytes to every reader. Which palette applies is decided by data-theme on <html>, written by themeScript before the first paint: there is no flash because there was never a wrong first paint to correct.

import { Body, Head, Html, themeScript, ThemeProvider, type ThemeScriptConfig } from '@meonode/ui'

// Mode names are yours -- `light` and `dark` are not required.
const themeConfig = {
  modes: ['morning', 'night'],
  defaultMode: 'morning',       // where everything falls back to when nothing else answers
  defaultPreference: 'system',  // where a reader who has chosen nothing starts
  system: { light: 'morning', dark: 'night' },
} satisfies ThemeScriptConfig

// Place the script first in <head>, ahead of any stylesheet.
Html({
  lang: 'en',
  suppressHydrationWarning: true,
  children: [
    Head({ key: 'theme', children: themeScript(themeConfig) }),
    Body({ key: 'body', children: ThemeProvider({ ...themeConfig, tokens, children }) }),
  ],
})

Spreading one literal into both halves is the point: a mode added in one place reaches the script and the provider together. Augment MeoTheme with mode: 'morning' | 'night' and setMode autocompletes your names and rejects a typo.

If your Content-Security-Policy pins hashes, import THEME_SCRIPT_CSP_HASH rather than copying the value — a copied literal goes stale the first time the body changes, and it fails silently.

Do not render markup from mode. The server cannot know it, so a component that branches on it disagrees with the server during hydration for every reader not on the default, and React answers that by re-rendering the whole page on the client — which clears the attributes the script wrote. Key the CSS off [data-theme='…'], or gate on hydrated from useTheme().

Surgical Memoization

Memoize at node-level granularity—not just entire components. A node given a dependency array renders inside a React fiber of its own, and the array is handed straight to useMemo: it means exactly what it means in React, so an empty array freezes the subtree and a node that should follow a value has to name it. Nodes without one are not memoized and rebuild with their parent.

Node-Level Memoization:

const UserCard = ({ user }) =>
  Div(
    {
      padding: 16,
      children: [
        H2(user.name),
        Text(user.bio),
      ],
    },
    [user.id],
  ).render() // The whole subtree rebuilds only when user.id changes

Component-Level Memoization:

Node(ExpensiveComponent, { data }, [data.id]).render()
React Server Components Compatible

Full RSC support with proper client/server component boundaries. Use in Next.js App Router, Remix, or any RSC-enabled environment without configuration.

The package ships a separate build for the server components layer, selected through the react-server export condition, so the code only server components run stays out of the browser bundle. Import it by its package name and let the bundler resolve it. An alias that points @meonode/ui at a file in its dist/ folder loads the browser's build in that layer, and @meonode/ui throws an error saying so. Don't list it in Next.js serverExternalPackages either: its client components only work when the bundler handles the package.

Emotion-Powered Styling

Built on @emotion/react for:

  • Automatic critical CSS extraction
  • Vendor prefixing
  • Dead code elimination
  • Server-side rendering support
Smart Prop Differentiation

Automatically separates style props from DOM attributes. Pass onClick, aria-*, data-* alongside CSS props—MeoNode routes them correctly.

Button('Click Me', {
  padding: '12px', // → style
  color: 'theme.primary', // → style
  onClick: handleClick, // → DOM attribute
  'aria-label': 'Submit', // → DOM attribute
  disabled: isLoading, // → DOM attribute
})
Debug Mode

There are two levels of diagnostics, and only the second needs a flag.

On in development, nothing to turn on. Each of these is your own code, and each is actionable:

  • a theme.* token the active theme does not define — the common cause of a style that silently fails to apply, since the browser drops a declaration referencing a variable no :root rule declares
  • the two other shapes that emit invalid CSS: a number written as a string (padding: '12', which Emotion will not add px to) and a unitless length in a media query
  • a generated list whose children have no key. React reports the missing key itself; this names the call site it came from, which React's own message cannot (needs @meonode/compiler with callSiteLocations). Like React's warning, it is logged once per call site
  • an error thrown inside a function-as-a-child, which is otherwise swallowed and leaves the element missing with nothing printed
  • For() given a list where every item is a fresh object, so reference identity cannot match renders and every row remounts
  • a children array that contains itself

React's own warnings and React DevTools name the component that called .render() as the owner of every element in the tree it returns, including an element built in another component and passed in as a child: a node rebuilds that element where it renders. So when App builds an element and Panel passes it to a node, a missing-key warning for a list inside it ends "It was passed a child from Panel." Look in the component that built the element too.

Behind setDebugMode, in any environment. These are MeoNode's own introspection recovering from itself — the render is correct afterwards and there is nothing for you to fix, so they are off unless you go looking:

  • @meonode/compiler marker buckets colliding with reserved keys
  • the node.prototype.render probe failing
  • the key-name derivation falling back
import { setDebugMode } from '@meonode/ui'

setDebugMode(true)

Set it at module scope in your entry file, not in a useEffect — theme diagnostics fire as nodes are constructed and an effect runs too late to catch the first render's worth.

In a production build the flag also turns the first group back on. That group is quiet there because NODE_ENV says production — read at runtime on Node, or substituted by a bundler, which folds that half of the gate to false; a browser bundle in which nothing substitutes it counts as production too. That is deliberate — the bugs worth this much logging are usually the ones that only reproduce in production.

React's production build reports no missing key, so there the generated-list note is the only report: it is logged for every compiled list whose children lack a key, with the call site when callSiteLocations recorded one and without it otherwise. Without the compiler, a list generated at runtime is reported at the same growth as in development once a styled node or a ThemeProvider has rendered: from it MeoNode learns where React's production build calls components, which is where a call site ends. Before that, under a class component's render, and in engines without V8's structured stack frames (Safari, Firefox), a list that first rendered in a transition, as a page hydrated by Next.js does, is reported one growth later.

A production build leaves the diagnostics' code out of what a page loads first, in a chunk of its own, and setDebugMode(true) loads that chunk. The checks made before it arrives are held, then run in the order they were made, a few milliseconds later; one that would throw in development is logged with console.error instead, as the render it was made in has finished. Up to 60,000 checks are held, a first render of about 12,000 to 20,000 nodes; past that, they are counted and reported as dropped.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @meonode/ui

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229