New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@feature-hub/core

Package Overview
Dependencies
Maintainers
0
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feature-hub/core

Create scalable web applications using micro frontends.

  • 3.7.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
101K
decreased by-23.62%
Maintainers
0
Weekly downloads
 
Created

What is @feature-hub/core?

@feature-hub/core is a package that provides a framework for building micro frontends. It allows developers to create and manage feature apps, which are independent, self-contained units of functionality that can be integrated into a larger application.

What are @feature-hub/core's main functionalities?

Creating a Feature App

This code demonstrates how to create a simple feature app using @feature-hub/core. The feature app is defined with an ID and a create function that returns an object with a render method.

const {createFeatureAppDefinition} = require('@feature-hub/core');

const myFeatureApp = createFeatureAppDefinition({
  id: 'my-feature-app',
  create: () => ({
    render: () => '<div>Hello, Feature Hub!</div>'
  })
});

Integrating Feature Apps

This code shows how to integrate a feature app into a feature hub. The feature hub is created with a feature app manager and a feature service registry, and the feature app is registered with the feature app manager.

const {createFeatureHub} = require('@feature-hub/core');

const featureHub = createFeatureHub({
  featureAppManager: {},
  featureServiceRegistry: {}
});

featureHub.featureAppManager.registerFeatureApp(myFeatureApp);

Other packages similar to @feature-hub/core

Keywords

FAQs

Package last updated on 03 Sep 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc