import { Meta } from '@storybook/addon-docs';

<Meta
	title="Guides/Extending the Backoffice/Registration/Types/EntryPoint"
	parameters={{ previewTabs: { canvas: { hidden: true } } }}
/>

# Entry Point Manifest Type

The Entry Point manifest type is used to register an entry point for the backoffice. An entry point is a single javascript file that is loaded when the backoffice is initialized. This file can be used to do anything, this enables more complex logic to take place on startup.

**_Register an entry point in a JSON manifest_**

```json
{
	"type": "entryPoint",
	"alias": "My.EntryPoint",
	"js": "./index.js"
}
```

**_Register additional UI extensions in the entry point file_**

```ts
import { extensionRegistry } from "@umbraco-cms/extension-registry"

const manifest = {
  {
    type: '', // type of extension
    alias: '', // unique alias for the extension
    elementName: '', // unique name of the custom element
    js: '', // path to the javascript resource
    meta: {
      // additional props for the extension type
    }
  }
};

extensionRegistry.register(extension);
```
