
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
@epic-web/remember
Advanced tools
For when your "hot module replacement" involves re-evaluating a module, but you don't want to actually re-evaluate a portion of it.
npm install @epic-web/remember
You're using a framework like Remix with
--manual mode and
re-evaluating your modules on every change. But you have some state that you
don't want to lose between changes. For example:
This was copy/paste/modified/tested from
@jenseng's abuse-the-platform demo
(ISC). It's basically a type-safe singleton implementation that you can use to
keep state between module re-evaluations.
import { remember } from '@epic-web/remember'
export const prisma = remember('prisma', () => new PrismaClient())
Keep in mind that any changes you make within that callback will not be reflected when the module is re-evaluated (that's the whole point). So if you need to change the callback, then you'll need to restart your server.
It might be required to explicitly forget a value if it gets outdated, a memorized connection gets lost or memorized instance closes/errors/etc.
import { remember, forget } from '@epic-web/remember'
export const server = remember('server', () =>
http.createServer().listen('8080')
.on('close', () => forget('server')))
MIT
The original code was written by @jenseng and then I modified it and published it to fit my needs.
FAQs
Simple, type-safe, "singleton" implementation.
We found that @epic-web/remember demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

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.