
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
horseless.remodel
Advanced tools
Magical data binding.
We have our model. We build something based on the model. The model changes, we do it all again. It changes again, we remember that we're programmers and we automate... Then we build something else based on the model. And then something else. Can't we just say "whenever we do anything with the model automate it, like forever?
horseless.remodel exposes four methods: remodel, watchFunction, unwatchFunction, and after.
remodel(model)remodel wraps a simple model (something you could JSON) and returns a proxy. Mutating the model's attributes through the proxy then triggers the watched functions that accessed those attributes.
watchFunction(f)watchFunction runs the function it's passed and collects a list of attributes accessed by that function. It registers that function as a listener for any future change to those attributes.
unwatchFunction(f)unwatchFunction removes the function it's passed from the list of valid listeners
after(f)after adds a one time callback for after the current round of watched functions have executed
import { remodel, watchFunction } from 'horseless.remodel'
const model = remodel({ name:'Theon' })
function setGreeting () {
document.querySelector('.greeting').innerText = `Hello ${model.name}`
}
watchFunction (setGreeting)
setTimeout(() => {
model.name = 'Reek'
}, 5000)
Result: "Hello Theon" is displayed for five seconds after which "Hello Reek" is displayed
This repo contains about a hundred lines of pretty straight-forward code. Please take a peak in remodel.js. If you have questions or suggestions, I'd love to hear from you!
FAQs
magical data binding
We found that horseless.remodel 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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

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.