
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
@huddle01/feature-flags
Advanced tools
Unleash the Power of Controlled Feature Rollouts in Your Typescript Projects
NOTE: Request for access to the huddle01-client pkg on Huddle01's discord or reach out to the team.
Feature Flags are necessary for multiple usecases, when you need to hide certain features from the end-user for cases like
After installing the package, you can fetch the feature flags
import { getEdgeFeatFlags } from '@huddle01/feature-flags';
const featFlags = await getEdgeFeatFlags(configUrl);
console.log({ featFlags });
// Output
{
"feature-1": {
enabledFor: ["axit.eth"];
};
"feature-2": {
enabledFor: ["*"]; // enabled for everyone in huddle01 team
};
}
Once you've fetched the feature flags you need to sync them to state which can be done using the useSyncFlags()
hook.
import { useSyncFlags } from '@huddle01/feature-flags';
const App = () => {
useSyncFlags(featFlags);
return <></>;
};
Once you've synced the feature flags you can use a feature flag in the following way:
import { useSyncFlags } from '@huddle01/feature-flags';
const App = () => {
const { enabledFor, isEnabled } = useFeatureFlag({
key: 'feature-1',
address: 'axit.eth',
});
console.log({ enabledFor, isEnabled });
return <></>;
};
// Output
{
enabledFor: ['axit.eth'];
isEnabled: true;
}
💡 For more information head to https://huddle01.com/docs
💡 For any help reach out to us on Discord
FAQs
Unleash the Power of Controlled Feature Rollouts in Your Typescript Projects
We found that @huddle01/feature-flags demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.