
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
Simple reactive state management.
import {makeAtom, useAtom} from 'j-atom'
import {useAtom} from 'j-atom/react'
// create atom
const atom = makeAtom<T>()
const atomWithInitial = makeAtom<T>(initialValue) // with initial value
// use atom in React component
const value = useAtom(atom)
// getter and setter
atom.value = newValue // set value synchronously
const currentValue = atom.value // get value synchronously
// subscribe for changes
const unsub = atom.sub((newVal, oldVal) => console.log(newVal, oldVal))
const unsub2 = atom.sub(() => console.log(atom.value))
// subscribe with cleanup
const unsub3 = atom.sub((newVal) => {
const handler = () => console.log('cleanup')
window.addEventListener('resize', handler)
return () => window.removeEventListener('resize', handler)
})
// subscribe and run immediately
const unsub4 = atom.sub((newVal, oldVal) => console.log(newVal, oldVal), {now: true})
// subscribe with conditional updates
const unsub5 = atom.sub(
(newVal, oldVal) => console.log(newVal),
{skip(newVal, oldVal) {return newVal === oldVal}} // skip if values are the same
)
unsub() // unsubscribe
makeAtom<T>(initialValue?: T): Creates an atom with optional initial valueuseAtom(atom: Atom<T>): T: React hook to subscribe to atom changesatom.value: Get or set the value synchronouslyatom.sub(subscriber, options?): Subscribe to value changes
(newValue, oldValue) and can return cleanup functionnow: boolean - Call subscriber immediately with current valueskip: (newVal, oldVal) => boolean - Skip subscriber if returns trueFAQs
Simple reactive state management.
We found that j-atom demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.