
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
@gotamedia/cmp
Advanced tools
A CMP package dedicated to be used in React + Fluffy applications
npm i @gotamedia/cmp
CMP requires that you install following depdencies in your own project
npm i react
react-dom \
styled-components
@gotamedia/fluffy
import { createRoot } from 'react-dom/client'
import { CMP } from '@gotamedia/cmp'
const Component = () => (
<CMP {...CMP_PROPS}>
<App />
</CMP>
)
const root = createRoot(document.getElementById('app'))
root.render(<Component />)
CMP uses Storybook to present itself, you can find the the main story in root/src/index.stories.tsx
To start run:
npm start
In case you can't see the Didomi consent notice then try to be in an alias different than localhost
CMP uses Rollup to build and bundle
npm run build
To inspect the package before publishing to npm
npm run package:details
To publish to npm
npm run package:publish
In order to develop with CMP with your project locally, make sure to have yalc installed globally on your machine by running:
npm install -g yalc
To use CMP in your project locally make sure to build CMP by running:
npm run build:local
This will make sure to build and publish CMP into a local registery on your machine so you can install it as a package in your projects
In your project run the following command:
yalc add @gotamedia/cmp
npm install
After you are done with running CMP locally in your project, make sure to clean up and remove the link from your project's dependencies
yalc remove @gotamedia/cmp
This will make sure to remove the link from your project's dependencies and revert to the old value if there was any
That's it 🎉 You just trigered a release action and Github will take care of the rest 🙃
This will run build workflow in Github Actions and once it's successfully done it will trigger a publish workflow to publish the package to NPM registery.
Storybook - Build & Deploy on the left sidebarRun workflow on the top rightRun workflow buttonThis will run Storybook Docs build and once it's successfully done it will trigger a deploy to S3 and revalidate all the files in the associated CloudFront.
This project uses a trunk based development workflow.
This project works with conventional commits.
FAQs
A CMP package dedicated to be used in React + Fluffy applications
The npm package @gotamedia/cmp receives a total of 27 weekly downloads. As such, @gotamedia/cmp popularity was classified as not popular.
We found that @gotamedia/cmp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

Security News
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.