
Security News
Insecure Agents Podcast: Certified Patches, Supply Chain Security, and AI Agents
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.
`ObservableStore` is a synchronous in-memory store for a single value, that you can subscribe to updates on.
ObservableStore is a synchronous in-memory store for a single value,
that you can subscribe to updates on.
const store = new ObservableStore(initState)
store.subscribe(function showValue(value) {
console.log('saw value:', value)
})
store.putState(5) // "saw value: 5"
store.putState(true) // "saw value: true"
store.putState({ hello: 'world' }) // "saw value: { hello: 'world' }"
console.log(store.getState().hello) // "world"
Each ObservableStore can be turned into an ObservableStoreStream.
An ObservableStoreStream is a duplex stream that you can pipe new values into it or
pipe its updated values out of it.
Special behavior: Doesnt buffer outgoing updates, writes latest state to dest on pipe.
const pipe = require('pump')
const asStream = require('obs-store/lib/asStream')
const storeOne = new ObservableStore(initState)
const storeTwo = new ObservableStore()
pipe(
asStream(storeOne),
transformStream,
asStream(storeTwo)
)
ObservableStore are no longer streams. You can create streams via asStream.
FAQs
`ObservableStore` is a synchronous in-memory store for a single value, that you can subscribe to updates on.
The npm package obs-store receives a total of 556 weekly downloads. As such, obs-store popularity was classified as not popular.
We found that obs-store demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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 joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.

Security News
The planned feature introduces a review step before releases go live, following the Shai-Hulud attacks and a rocky migration off classic tokens that disrupted maintainer workflows.