Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH 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
The npm package @huddle01/feature-flags receives a total of 1 weekly downloads. As such, @huddle01/feature-flags popularity was classified as not popular.
We found that @huddle01/feature-flags demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.