Core API
Packages And Imports
Find optional packages and Core subpath entrypoints.
For initial setup, use Installation. This page lists additional capabilities and their imports.
Packages
| Package | Purpose | Guide |
|---|---|---|
@nexus-js/core | Connections, services, callbacks, and resources | Quick start |
@nexus-js/chrome | Chrome extension communication | Chrome |
@nexus-js/iframe | Parent/iframe communication | iframe |
@nexus-js/node-ipc | Local daemon/client communication | Node IPC |
@nexus-js/react | React bindings | React |
@nexus-js/testing | Application-level test doubles | Testing |
Install testing utilities as a development dependency. They mock the public application seam, not transports or real sessions.
Core Subpath Imports
These entrypoints are included in @nexus-js/core; they are not separate packages
to install.
| Import | Purpose |
|---|---|
@nexus-js/core/state | Synchronized state |
@nexus-js/core/transport | Transport contracts for adapter authors |
@nexus-js/core/transport/virtual-port | Port multiplexing over message buses |
For example:
import { connectNexusStore } from "@nexus-js/core/state";Applications using an existing adapter normally do not need the low-level transport entrypoints.