# What’s the function of \`@node-red/registry\`?

**URL:** https://discourse.nodered.org/t/what-s-the-function-of-node-red-registry/65289
**Category:** Core Development
**Tags:** node-red-dashboard
**Created:** [19 July 2022 01:09 UTC](https://discourse.nodered.org/t/what-s-the-function-of-node-red-registry/65289 "2022-07-19T01:09:31Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![liaodalin19903](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/liaodalin19903/32/64409_2.png) [@liaodalin19903](https://discourse.nodered.org/u/liaodalin19903)
#### Post date: [19 July 2022 01:09 UTC](https://discourse.nodered.org/t/what-s-the-function-of-node-red-registry/65289/1 "2022-07-19T01:09:31Z")

</div>

When I read this doc [node-red API.md](https://github.com/node-red/node-red/blob/master/API.md)I have several questions:

1. 

> common utilities for the Node-RED runtime and editor moduleswhether `editor modules` means `@node-red/editor-client` and `@node-red/editor-api` ? whether `Node-RED editor` = `@node-red/editor-client` + `@node-red/editor-api`?

1. what’s the function of `@node-red/registry` ?
2. 

> 

@node-red/nodes  
the default set of core nodes. This module only contains the Node-RED nodes - it does not expose any APIs.why there says `it does not expose any APIs.`?

[API.md](https://github.com/node-red/node-red/blob/master/API.md)

Node-RED consists of 6 node modules under the `@node-red` scope, which are pulled together  
by the top-level `node-red` module. The typical scenario is where you are embedding Node-RED into your  
own application, in which case you would use the `node-red` module rather than any of the  
internal modules directly.

```auto
let RED = require("node-red");

```

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [19 July 2022 07:06 UTC](https://discourse.nodered.org/t/what-s-the-function-of-node-red-registry/65289/2 "2022-07-19T07:06:58Z")

</div>

> [@liaodalin19903](#):
>
> - what’s the function of `@node-red/registry` ?

That module is responsible for loading the Node-RED nodes into the runtime.

> [@liaodalin19903](#):
>
> why there says `it does not expose any APIs.`?

The `@node-red/nodes` module contains the core nodes for the palette. Unlike other npm modules it cannot be loaded using `require('@node-red/nodes')` as it does not export anything that way.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [17 September 2022 07:07 UTC](https://discourse.nodered.org/t/what-s-the-function-of-node-red-registry/65289/3 "2022-09-17T07:07:23Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
