npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@zumer/orbit

v0.6.0

Published

Orbit is a CSS framework for radial interfaces

Downloads

429

Readme

🖖 Orbit in a nutshell

Orbit is the first general-purpose CSS framework designed specifically for radial user interfaces. We've used the latest CSS features to make building radial layouts a breeze. It provides intuitive CSS classes and Custom Elements for building radial menus, dashboards, creative portfolios, or a cutting-edge applications.

Why Orbit?

Because creating radial UIs generally involves resorting to JS or other languages to calculate angles, radius, distances, etc. Orbit helps and saves you a lot of time by allowing you to build these UIs with just CSS.

Status

We’re in the early stages of development, things are still evolving. You’re welcome to explore and experiment, but keep in mind that names, features, and functionalities may change as we refine our project. We appreciate your understanding and flexibility during this exciting phase!

What is radial UI?

Radial UI refers to a design paradigm where elements are organized and laid out in a circular or radial pattern, rather than the traditional grid-based or linear layouts. This approach can create visually appealing and intuitive interfaces, especially for applications that involve:

  • Circular data visualization (e.g., pie charts, multi-level pie charts, gauges, watch faces)
  • Navigation menus or controls (e.g., radial or pie menus, circular scrolling)
  • Dashboards (e.g., car dashboards, infotainment, smart-home dashboards)
  • Landing pages (e.g., Orbit website landing page)

Characteristics of Radial UI:

  • Circular layout: Elements are arranged in a circular or curved pattern.
  • Center-focused: The center of the circle often serves as a focal point.
  • Symmetry: Radial UIs often exhibit symmetry, creating a sense of balance.
  • Angular relationships: Elements are positioned at specific angles relative to each other.

Benefits of Radial UI:

  • Aesthetics: Radial designs can be visually stunning and engaging.
  • Intuitive navigation: Circular layouts can simplify navigation and reduce cognitive load.
  • Space efficiency: Radial UIs can make efficient use of screen real estate.

Features

With Orbit, you can:

  • ⁠Build any kind of radial UI using our predefined CSS classes that do the heavy lifting.
  • ⁠Easily compose simple or complex radial designs by combining Orbit elements.
  • ⁠Use Orbit alongside other traditional CSS frameworks.
  • ⁠Get started quickly with our detailed documentation, examples, and guides that walk you through using Orbit's features effectively.

🚀 Try Orbit now!

To quickly get a taste of Orbit, you can try it directly in a Orbit Codepen template.

Installation

Orbit comes with just two files: orbit.css (or orbit.min.css), and orbit.js (or orbit.min.js).

Getting the Orbit files:

You have three ways to get Orbit files:

1. Download the Orbit files

2. Use Orbit via CDN (content delivery network)

3. Install Orbit via a Package Manager

You can also install Orbit using npm or yarn:

npm install @zumer/orbit

Or

yarn add @zumer/orbit

Setting up Orbit in your project:

After install Orbit, follow this simple steps to get Orbit working.

Link Orbit files or CDN in your HTML file:

If you have downloaded them just use <link> tag for the CSS file, and <script> tag for the JS file within the <head> section:

In case you have downloaded the files:

<head>
  <link rel="stylesheet" href="path/to/orbit.css">
  <script src="path/to/orbit.js"></script>
</head>

In case you are using CDN:

<head>
  <link rel="stylesheet" href="https://unpkg.com/@zumer/orbit@latest/dist/orbit.css">
  <script src="https://unpkg.com/@zumer/orbit@latest/dist/orbit.js"></script>
</head>

Tip for CSS file: You can use @import CSS rule in your <style> tag to import the CSS file:

Downloaded file:

@import url('path/to/orbit.css');

Or via CDN:

@import url('https://unpkg.com/@zumer/orbit@latest/dist/orbit.css');

🏁 Quick start

Basic Orbit layout

Just add .bigbang CSS class in a HTML element like <div>. Then use .gravity-spot class, and within it, add another element with .orbit class. Finally, inside .orbit element, add radial elements, such us: .satellite, .vector, .side, or <o-text>, <o-arc>, <o-progress> web components . Here’s a minimal working example:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <link rel="stylesheet" href="https://unpkg.com/@zumer/orbit@latest/dist/orbit.css" />
    <script src="https://unpkg.com/@zumer/orbit@latest/dist/orbit.js" defer></script>
    <title>Orbit Quick Start</title>
  </head>
  <body>
    <div class="bigbang">
      <div class="gravity-spot">
        <div class="orbit">
          <div class="satellite">1</div>
          <div class="satellite">2</div>
          <div class="satellite">3</div>
        </div>
        <div class="orbit">
          <o-text>Curved text</o-text>
        </div>
      </div>
    </div>
  </body>
</html>

Radial elements

Bigbang

The foundation of every Orbit project, serving as a container for your application.

Gravity-spot

The parent container for organizing Orbit elements within a radial layout.

Orbit

Defines a circular path around a .gravity-spot, with variations from .orbit-0 to .orbit-24. Within .orbit element, various Orbit elements such as satellites, o-arcs, o-progress, vectors, sides, and o-texts can be positioned.

Satellite

Places elements along an .orbit or .orbit-* path, serving as content containers or nesting points for other orbits.

Vector

Renders perpendicular lines across orbits, perfect for creating connector lines or minute marks.

Side

Generates a regular polygon figure when used with other sides.

O-Text

A web-component for rendering curved text.

o-arc

A web-component for rendering radial slices, arcs, or pies.

O-Progress

A web-component for rendering a radial progress bar.

Examples

A dashboard

An orbital map

A watch

The solar system

Show & Tell:

Join to Discussion section and show off what have you done with Orbit.

🥋 Mastering Orbit

Read the Orbit docs here.

Stay in orbit

There are many ways to contribute to Orbit development:

  • Contribution guidelines: This guide outlines how you can contribute to Orbit, help us test and improve it, and share your experiences with the community.
  • GitHub discussions: Engage with other contributors, ask questions, and share your experiences.
  • Telegram group: Join our Telegram group for real-time discussions and updates.

License

MIT