
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
@bcaster/bcaster-feed-widget
Advanced tools
An Embeddable web widget for media feeds powered by Bcaster
The BCaster Feed Widget can be accessed via CDN UNPKG or CDN JSDELIVR as well as NPM. When imported via CDN, it exposes a global BCasterFeedWidget which accepts configuration arguments
To get the BCaster Feed Widget working, copy any of the following code snippet examples that apply, into your web project and replace the appId value with your unique bcaster lite app Id
⚠️ In order for the widget to mount, you are required to have an empty div with an id
bcaster-feed-widgetin your html page. The div should be on the page before themountevent is triggered
<div id="bcaster-feed-widget"></div>
<script src="https://unpkg.com/@bcaster/bcaster-feed-widget@0.0.4/dist/bcaster-feed-widget.js"></script>
<script>
const feedWidget = new BCasterFeedWidget({
apiKey: '53d83cs45-1csauy-47c5sfde-80ffad8-45eefsds031de',
apiSecret: '7632vqeldh286vqis89112s5d7vd2938d29dbd286d98b2',
feedId: '5623dxq65d2o9a9u02h29h',
});
feedWidget.mount();
</script>
First install the package by running
npm install @bcaster/bcaster-feed-widgetoryarn add @bcaster/bcaster-feed-widget
const BCasterFeedWidget = require('@bcaster/bcaster-feed-widget');
const feedWidget = new BCasterFeedWidget({
apiKey: '53d83cs45-1csauy-47c5sfde-80ffad8-45eefsds031de',
apiSecret: '7632vqeldh286vqis89112s5d7vd2938d29dbd286d98b2',
feedId: '5623dxq65d2o9a9u02h29h',
});
feedWidget.mount();
First install the package by running
npm install @bcaster/bcaster-feed-widgetoryarn add @bcaster/bcaster-feed-widget
import BCasterFeedWidget from '@bcaster/bcaster-feed-widget';
const feedWidget = new BCasterFeedWidget({
apiKey: '53d83cs45-1csauy-47c5sfde-80ffad8-45eefsds031de',
apiSecret: '7632vqeldh286vqis89112s5d7vd2938d29dbd286d98b2',
feedId: '5623dxq65d2o9a9u02h29h',
});
feedWidget.mount();
The Bcaster Feed widget library exposes a default BCasterFeedWidget Javascript class which accepts configuration options in the form of a standard Javascript Object. The configuration options signature are as follows
@param {Object} args Configuration values
@param {String} args.apiKey (Required) The client api key
@param {String} args.apiSecret (Required) The client api secret
@param {String} args.feedId (Required) The ID of a given feed
@param {String} args.mode (Optional) {Defaults to 'production'} Mode option for switching between development and production. This option allows the possibility to run in a sandbox environment
@param {Number || String} args.numOfItems (Optional) {defaults to 20} The number of items to be displayed as an embeded feed
@param {String} args.lang (Optional) {Defaults to 'en'} Language attribute for localization
@param {Object} [args.divStyle] (Optional) Configuration values for the feed div style
@param {Number} [args.divStyle.height] (Optional) {Defaults to 200} Height for the media feed div {unit value in `px`}
@param {Number} [args.divStyle.width] (Optional) Width for the media feed div {unit value in `%`}
@param {String} [args.divStyle.orientation] (Optional) {Defaults to 'vertical'} The orientation of the feed div scrolling direction i.e. (either 'vertical' or 'horizontal')
@example
const feedWidget = new BCasterFeedWidget({
apiKey: '53d83cs45-1csauy-47c5sfde-80ffad8-45eefsds031de',
apiSecret: '7632vqeldh286vqis89112s5d7vd2938d29dbd286d98b2',
feedId: '5623dxq65d2o9a9u02h29h',
mode: 'development',
numOfItems: 20,
lang: 'en',
});
Currently the following language options are supported
en - Englishfi - Finnishesc key to closing the modal to ensure accessibility.margins.FAQs
An embeddable web widget for showing bcaster feed items
We found that @bcaster/bcaster-feed-widget demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.

Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.

Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.