GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alexjcm/tag-sphere: Ultra lightweight 3D rotating tag sphere

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
astro
astro
 
 
examples
examples
 
 
scripts
scripts
 
 
src
src
 
 
styles
styles
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.npmrc
.npmrc
 
 
BUNDLE_SIZE_POLICY.md
BUNDLE_SIZE_POLICY.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.dts.json
tsconfig.dts.json
 
 
tsconfig.json
tsconfig.json
 
 
tsup.config.ts
tsup.config.ts
 
 
vitest.config.ts
vitest.config.ts
 
 

Repository files navigation

tag-sphere

A ultra lightweight, dependency-free 3D rotating tag sphere for Vanilla JS, React, and Astro. View demo.

npm version License TypeScript Node React Astro

Features

  • Ultra lightweight core target.
  • Zero runtime dependencies.
  • Framework-ready entrypoints for Vanilla JS, React (18+), and Astro.
  • SEO-friendly Astro pre-render strategy with client animation.
  • Mouse and touch interaction support.

Installation

npm i tag-sphere

Quick Start

Vanilla JS

import { tagSphere } from 'tag-sphere';

const el = document.getElementById('my-sphere');

const instance = tagSphere(el, {
  tags: ['Astro', 'TypeScript', 'React'],
  radius: 120,
  speed: 0.01,
  direction: 20,
});

React

import { TagSphere } from 'tag-sphere/react';

export function Example() {
  return (
    <TagSphere
      tags={['Astro', 'TypeScript', 'React']}
      radius={120}
      speed={0.01}
      direction={20}
      style={{ width: 320, height: 320, position: 'relative' }}
    />
  );
}

Astro

---
import TagSphere from 'tag-sphere/astro';
import 'tag-sphere/styles.css'; // Optional
---

<TagSphere
  tags={['Astro', 'TypeScript', 'Vite']}
  radius={150}
  speed={0.01}
  direction={20}
/>

Styling Modes

  • Unstyled (default): no CSS import from the library; bring your own styles via .ts-tag and/or tagClass.
  • Styled (Default) (optional): import tag-sphere/styles.css (or alias tag-sphere/styles) for a basic preset.

API Reference

Options

Property Type Default Description
tags string[] required Labels to render. Min 1, max 50 (extra tags are truncated).
radius number 120 Sphere radius in pixels. Clamped to [60, 200].
speed number 0.01 Idle angular speed. Normalized to absolute value, rounded to 3 decimals, clamped to [0.001, 0.08].
direction number 20 Idle direction in clockwise degrees, normalized to [0, 359].
tagClass string undefined Extra class added to each .ts-tag.

Runtime Compatibility

  • Core library: Node >=20.
  • Astro projects: follow your Astro version requirement.

Development

npm install
npm run build

Examples

The unified React showcase lives in examples/. To test library changes with hot-reloading alongside the React demo application, run the following from the repository root:

npm run examples:dev

License

MIT

About

Ultra lightweight 3D rotating tag sphere

alexjcm.github.io/tag-sphere/

Topics

3d-animationastrolightweightreactspheretypescriptvanilla-js

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.