
Security News
Packagist Urges Immediate Composer Update After GitHub Actions Token Leak
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.
@okiba/pool-system
Advanced tools
Manages a dinamically grown pool of DOM Elements import PoolSystem from '@okiba/pool-system'
__
const container = document.querySelector('#container')
function createEl(){
return document.createElement('img');
}
const pool = new PoolSystem(container, createEl)
npm i --save @okiba/pool-system
Or import it directly in the browser
<script type="module" src="https://unpkg.com/@okiba/pool-system/index.js"></script>
import PoolSystem from '@okiba/pool-system'
Okiba Core packages are not transpiled, so don't forget to transpile them with your favourite bundler. For example, using Babel with Webpack, you should prevent imports from okiba to be excluded from transpilation, like follows:
{
test: /\.js$/,
exclude: /node_modules\/(?!(@okiba)\/).*/,
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-env']
}
}
}
parent: ObjectDOM Element used as container for all pool elements.
createEl: functionFunction that creates an istance the element you want to add to the pool.
Makes sure the pool can host a minimum number of elements, grows it if that's not the case.
size: NumberMinimum pool size to ensure.
Hands a free element from the pool. If there isn't one, it automatically grows the pool's. This provides dynamic sizing which ensures
Element A free DOM Element
Marks an element as elegible for reutilization, and pushes it into the pool
Element: Elementto mark as free
Nulls all references to DOM Elements
FAQs
Class to manage dinamically a pool of system
We found that @okiba/pool-system demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Packagist urges PHP projects to update Composer after a GitHub token format change exposed some GitHub Actions tokens in CI logs.

Research
GemStuffer abuses RubyGems as an exfiltration channel, packaging scraped UK council portal data into junk gems published from new accounts.

Company News
Socket was named to the Rising in Cyber 2026 list, recognizing 30 private cybersecurity startups selected by CISOs and security executives.