
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.
@sdl-codegen/node
Advanced tools
GraphQL .d.ts file generation for SDL-first projects
This project is for creating the .d.ts files for codebases where you have SDL like:
export const schema = gql`
type Game {
id: ID!
homeTeamID: Int!
awayTeamID: Int!
homeTeamScore: Int!
awayTeamScore: Int!
}
type Query {
games: [Game!]! @skipAuth
upcomingGames: [Game!]! @skipAuth
game(id: ID!): Game @requireAuth
}
`
Then separately, you write functions like:
export const games = () => db.game.findMany({ orderBy: { startDateTime: "asc" } })
export const upcomingGames = () => db.game.findMany({ isCompleted: false, startDateTime: { gt: new Date() } })
export const game = ({ id }) => db.game.findUnique({ where: { id } })
This repo will create .d.ts files which very accurately, and very concisely represent the runtime for these functions. It's goal is to take all of the possible logic which might happen in the TypeScript type system, and pre-bake that into the output of the .d.ts files.
You could think of it as a smaller, more singular focused version of the mature and well-featured graphql-codgen.
This repo provides the APIs for building a codegen for framework authors or confident tool builders, and the goal is not to provide a CLI for a generalized use-case.
This app is architected as a pipeline of sorts. Here's the rough stages:
It's still a bit of a work in progress to have these discrete steps, but it's getting there.
See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md.
Thanks!
Make a commit like: git commit --allow-empty -m "feat: Prepare for release"
FAQs
GraphQL .d.ts file generation for SDL-first projects
We found that @sdl-codegen/node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
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.