Scan your whole stack
Are you using gravity-icons-svelte?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.1
gravity-icons-svelte was last scanned on 29 Nov 2026 at version 1.0.1. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 1.0.1 LATEST | 29 Nov 2026 | No rules fired |
| 1.0.0 | 28 Nov 2026 | No rules fired |
| 0.0.1 | 28 Nov 2026 | No rules fired |
| 0.0.0-stage | 28 Nov 2026 | Not shown |
Findings for v1.0.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 1.0.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
The Gravity UI icons as Svelte 5 components. This is an unofficial port of @gravity-ui/icons, the icon set Yandex publishes for React. Every component is generated from that package's SVG files, so the icons, their names and their 16 × 16 grid are the same.
Browse the icons at gravity-ui.com/icons.
npm install gravity-icons-svelte
The package needs Svelte 5.20 or later.
Import each icon from its own file. The file name is the upstream SVG name in kebab case:
<script>
import Folder from "gravity-icons-svelte/icons/folder";
import FolderFill from "gravity-icons-svelte/icons/folder-fill";
let open = $state(false);
</script>
<button aria-pressed={open} onclick={() => (open = !open)}>
{#if open}<FolderFill />{:else}<Folder />{/if}
</button>
The package index also exports every icon under the upstream component name (import { Folder } from "gravity-icons-svelte"). Bundlers keep only the icons you import either way. Per-file imports also keep a development server from loading all of them.
Each icon renders one <svg>:
| Prop | Effect |
|---|---|
size |
Width and height. A number is in pixels. Defaults to the icon's grid: 16, or 17 for alarm and alarm-fill. |
class |
Added after the icon's own classes, gravity-icon and gravity-icon-<name>. Accepts any Svelte class value. |
aria-label, aria-labelledby |
Give the icon a name: it gets role="img". Without a name it has aria-hidden="true". |
| Anything else | Passed to the <svg>: style, event handlers, data-* attributes. |
The drawings use currentColor, so an icon takes the colour of the text around it. Five icons with a notification dot (bell-dot, circle-question-dot, comments-dot, gear-dot, wallet-dot) draw the dot in a fixed red, as upstream does.
TypeScript types come with the package. IconProps describes the props, and every icon is a Component<IconProps>:
import type { Component } from "svelte";
import type { IconProps } from "gravity-icons-svelte";
let icon: Component<IconProps>;
Icon is the root every icon is drawn in. Draw on the same 16 × 16 grid and the result takes the same props, classes and accessibility behaviour:
<script lang="ts">
import Icon from "gravity-icons-svelte/icon";
import type { IconProps } from "gravity-icons-svelte";
let props: IconProps = $props();
</script>
<Icon {...props} name="brain">
<path fill="currentColor" d="…" />
</Icon>
Give name after the props, as the package's own icons do. name is also an attribute of <svg>, so a name passed in would otherwise replace the icon's own, together with its class, and TypeScript reports the clash.
gravity-icons-svelte/metadata.json lists every icon with its file name, component name, style (regular or fill), keywords and categories, and records the version of @gravity-ui/icons the package was generated from.
The package has its own semantic version. When a release takes a new version of @gravity-ui/icons, its version goes up by the same level as upstream's: a patch for an upstream patch, a minor version for an upstream minor version, a major version for an upstream major version. Each GitHub release names the upstream version it contains, and so does metadata.json.
The release tags (vX.Y.Z) hold the versions. package.json in the repository keeps the placeholder 0.0.0-development; the release workflow sets the real version in the package it builds.
You need Node.js 24 or later (.nvmrc), which runs the TypeScript scripts and tests directly.
npm ci
npm run build # generates dist/ from node_modules/@gravity-ui/icons
npm run check # TypeScript, and the consumer example in test/types against dist/
npm test # every icon compiles and renders exactly its upstream SVG
scripts/generate.ts writes one component per upstream SVG, the index, the type declarations and metadata.json. scripts/svg.ts reads each SVG and accepts only the elements, attributes and values upstream uses (paths, groups, clip paths, colours and references to ids inside the icon). An SVG with anything else fails the build, so nothing that runs code or loads a resource reaches a consumer. Ids are rewritten per component instance with $props.id(), so two copies of an icon on one page never share an id.
Dependabot (.github/dependabot.yml) checks npm daily. A new version of @gravity-ui/icons gets a pull request of its own once it is seven days old. Minor and patch updates of the other development dependencies share one pull request, a major update gets its own, and the actions used by the workflows are updated weekly in another. ci.yml checks every pull request.
release.yml runs on every push to main:
ci.yml on the commit.scripts/release-plan.ts. It compares the version of @gravity-ui/icons in package-lock.json with the one in the last release tag's package-lock.json. When they differ, the next version is the last one raised by the same level. When they are equal, nothing is released and the run ends here.dist/, sets the version and packs the tarball.npm environment and is the only one with the OIDC token npm accepts; it runs nothing but npm.vX.Y.Z and creates the release.Merging a Dependabot pull request for @gravity-ui/icons therefore releases the package. To release a change of the package itself, run release.yml by hand from the Actions tab on main and choose the level; the plan takes it when it is higher than the upstream change.
npm accepts publishes for this package only from release.yml in the npm environment, and refuses token-based publishing, so no npm token exists.
MIT. The icons are © YANDEX LLC, also under the MIT License; both notices are in LICENSE.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.