New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

orbity

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

orbity

Interactive 3D tag cloud library for web apps (TypeScript, ESM/CJS, React/Vue wrappers)

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

Orbity JS Library

Orbity is a modern, accessible JavaScript/TypeScript library for creating interactive 3D tag clouds. It supports text, image, and SVG tags, multiple shapes, keyboard navigation, and is framework-friendly (React/Vue wrappers included).

Features

  • 3D tag cloud rendering (Sphere, Cube, Torus, Helix, etc.)
  • Text, image, or SVG tags
  • Touch, mouse, and keyboard interaction
  • Device orientation support
  • Undo/redo, dynamic tag management
  • Accessibility: ARIA, keyboard navigation, focus styles
  • Hover/click effects, custom fonts/styles
  • ESM & CJS builds, TypeScript types
  • React and Vue wrappers
  • Unit tested, CI/CD, ready for npm

Installation

npm install orbity

Or via CDN:

<script src="https://cdn.jsdelivr.net/npm/orbity/dist/orbity.min.js"></script>

Usage (Vanilla JS)

import Orbity from "orbity";
const canvas = document.getElementById("tagCloudCanvas");
const orbity = new Orbity(canvas, {
  radius: 200,
  shape: "sphere",
  hoverEffect: true,
  clickEffect: true,
  customFont: "serif",
});
orbity.setTags([
  { text: "JavaScript", color: "#f39c12", fontSize: 20 },
  { imageUrl: "logo.png", color: "#fff" },
  { svg: "<svg ...></svg>", color: "#fff" },
]);

React Usage

import ReactOrbity from "orbity/wrappers/ReactOrbity";
<ReactOrbity tags={[{ text: "React", color: "#61dafb" }]} radius={200} />;

Vue Usage

<VueOrbity :tags="[{ text: 'Vue', color: '#42b883' }]" :radius="200" />

API

See index.d.ts for full type definitions.

  • setTags(tags: OrbityTag[])
  • addTag(tag: OrbityTag)
  • removeTag(index: number)
  • updateTag(index: number, data: Partial<OrbityTag>)
  • clearTags()
  • updateOptions(options: Partial<OrbityOptions>)
  • undo(), redo()
  • pause(), resume()
  • on(event, callback), off(event, callback)

Accessibility

  • All tags are keyboard focusable (Tab/Arrow keys)
  • ARIA roles and labels on canvas and tags
  • Focus styles for keyboard users

Browser Support

  • Chrome, Firefox, Safari, Edge, modern mobile browsers

Contributing

See CONTRIBUTING.md.

License

MIT

Keywords

3d

FAQs

Package last updated on 13 Jul 2025

Did you know?

Socket

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.

Install

Related posts