
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
github.com/Shiningrush/avatarbuilder
Advanced tools
Using go freetype to build default avatar with string
![]()
go get -u github.com/shiningrush/avatarbuilder
You can referrence ./example
Some snipet is as blow
// init avatarbuilder, you need to tell builder ttf file and how to alignment text
ab := avatarbuilder.NewAvatarBuilder("./SourceHanSansSC-Medium.ttf", &calc.SourceHansSansSCMedium{})
ab.SetBackgroundColorHex(colors[1])
ab.SetFrontgroundColor(color.White)
ab.SetFontSize(80)
ab.SetAvatarSize(200, 200)
if err := ab.GenerateImageAndSave("12", "./out.png"); err != nil {
fmt.Println(err)
return
}
Because element of width of each font is different, so you need tell builder how to align the content.
AvatarBuilder already implement a free font(made by google and adobe)'s center algorithm in ./calc,
If you need other font, feel free to PR or issue.
FAQs
Unknown package
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
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.