
Security News
Scaling Socket from Zero to 10,000+ Organizations
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.
@douyinfe/semi-foundation
Advanced tools
The infrastructure layer is used to build modern component libraries.
Semi UI adopts a set of cross-front-end framework technical solutions to split the JavaScript of each component into two parts: Foundation and Adapter.
This allows us to reuse Foundation code across frameworks by only re-implementing the adapter, e.g, React and Vue. Quickly build common component libraries on different platforms.
Foundation
Foundation contains the business logic that best represents Semi Design without actually referencing any DOM elements. Foundation delegates Adapter methods for any logic that requires DOM manipulation
Adapter
Adapter is an interface that has all the methods needed by Foundation to implement Semi Design business logic. Adapter can have many implementations, allowing interoperability with different frameworks.
βββ semi-foundation // Foundation and Stylesheet of component
βΒ Β βββ utils
β βββ tooltip
βΒ Β βββ constants.js // Constant definition, including numbers, strings, cssClass
βΒ Β βββ foundation.js // Core foundation
βΒ Β βββ tooltip.scss // Stylesheet
βΒ Β βββ mixin.scss // Scss mixin
βΒ Β βββ rtl.scss // Rtl
βΒ Β βββ variables.scss // Scss variable

MIT
FAQs
> The infrastructure layer is used to build modern component libraries.
We found that @douyinfe/semi-foundation demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 10 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.

Security News
Socket CEO Feross Aboukhadijeh shares lessons from scaling a developer security startup to 10,000+ organizations in this founder interview.

Research
Socket Threat Research maps a rare inside look at OtterCookieβs npm-Vercel-GitHub chain, adding 197 malicious packages and evidence of North Korean operators.

Research
Socket researchers identified a malicious Chrome extension that manipulates Raydium swaps to inject an undisclosed SOL transfer, quietly routing fees to an attacker wallet.