
Security News
November CVEs Fell 25% YoY, Driven by Slowdowns at Major CNAs
November CVE publications fell 25% YoY even as 2025 totals rose, showing how a few major CNAs can swing “global” counts and skew perceived risk.
icodi
Advanced tools
Generate repeatable random SVG icons from any string, similar to GitHub identicons.
$ gem install icodi
Visit the Icodi Playground to experiment with the parameters.
This is the general usage pattern:
require 'icodi'
# initialize with optional text and options
icon = Icodi.new text, options
# get the SVG string
icon.render
# or save to SVG file
icon.save 'logo'
Generate a random icon with the default options, and save it to icon.svg:
icon = Icodi.new
icon.save 'icon'
Generate persistent random icon (same input generates the same output):
icon = Icodi.new "any string"
icon.save 'icon'
Options can be provided as the first or second argument:
Icodi.new "any string", pixels: 8, density: 0.3
Icodi.new pixels: 8, density: 0.3, stroke: 2
| Parameter | Default | Type | Description |
|---|---|---|---|
pixels | 5 | Integer | Grid size. |
mirror | :x | Symbol | Mirroring mode: :x, :y, :both or :none. |
color | Deterministic Random | String | A color string for the pixels. |
density | 0.5 | Float | A value between 0 and 1 representing the chance for a pixel to be drawn. Lower values mean less pixels. |
stroke | 0.1 | Float | Width of the border around each pixel. Note that each pixel is a 10x10 box, so a stroke of 1 means it will take 10% of the box. Higher values generate more overlap between the pixels. |
jitter | 0 | Float | A value between 0 and 1 representing the chance for a pixel to be dislocated by half of its size in a random direction. |
background | #fff | String | A named SVG color string (blue, yellow etc.) or RGB color (for example #dddddd). |
id | icodi | String | The ID to assign the SVG object. Normally this should not matter, but if you intend to embed this icon in an HTML, or in another SVG, this can be useful. |
template | :default | Symbol/String | SVG template to use. Can be :default, :html or a path to a file. Read more on Victor SVG Templates. |
To create a Sinatra server that serves Icodi images, see the config.ru example code.
If you experience any issue, have a question or a suggestion, or if you wish to contribute, feel free to open an issue.
FAQs
Unknown package
We found that icodi 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
November CVE publications fell 25% YoY even as 2025 totals rose, showing how a few major CNAs can swing “global” counts and skew perceived risk.

Security News
React disclosed a CVSS 10.0 RCE in React Server Components and is advising users to upgrade affected packages and frameworks to patched versions now.

Research
/Security News
We spotted a wave of auto-generated “elf-*” npm packages published every two minutes from new accounts, with simple malware variants and early takedowns underway.