RFC: viscn, a shadcn registry for Open Visualization projects

Open
#11,376 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
react, typescript

Research direction

This is a draft RFC with no implementation files or tests identified. First read the shadcn registry documentation and the linked deck.gl-community and DeckCanvas issues, then help resolve where the registry will live, which items it will include, and who will review them. Done means those open decisions are settled and there is an agreed registry setup and initial scope.

Written by the indexing model from the issue text.

Description

feature

RFC: viscn, a shadcn registry for Open Visualization projects

RFC details

  • Status: Draft
  • Authors: deck.gl contributors
  • Target release: none (website and registry; no library code required to start)
  • Related:
    • #10454 RFC: Grow the pydeck community (Topic C: route users to deck.gl-community modules)
    • #10392 RFC: DeckCanvas components
    • #11147 Tracker: Color scales, SQL domains/ranges, legends, and HDR across vis.gl
    • deck.gl-community
    • shadcn registry docs

Summary

Publish viscn, a shadcn-compatible registry of copy-in components and recipes from deck.gl, deck.gl-community, luma.gl, loaders.gl and the other vis.gl / OpenJS Open Visualization projects. Users install an item with npx shadcn add <url>, which copies its source into their project and installs its npm dependencies.

Motivation

  • Many vis.gl "features" are glue code that apps copy from examples: a legend wired to a color scale, a layer picker, a tooltip panel, a basemap switcher, a tile-loading indicator. That code doesn't fit in an npm package and goes stale in example folders.
  • shadcn's model fits it. Users get the source and own it, so there is no new runtime package to version or maintain.
  • deck.gl-community gets the most from this. A semi-maintained module can ship a small, readable entry point (for example a GraphLayer starter or an editable-layers toolbar) without the full maintenance cost of a published package.
  • shadcn registries are already how many React and AI-assisted apps get UI. Registry items are plain JSON, so coding agents can find and install them directly.

Proposal

  • A registry.json and generated r/<name>.json items, hosted with the deck.gl-community website or on their own site.
  • Items declare their npm dependencies (@deck.gl/core, @deck.gl/react, @deck.gl-community/*, ...), so shadcn add installs them.
  • Themes follow the deck.gl widget CSS variables, so items match the built-in widgets.
  • Possible first items:
    • deck-canvas-panel: React panel built on DeckCanvas (#10392)
    • color-legend: legend that reads the color scales from #11147
    • layer-toggle / basemap-switcher: control panels for deck.gl widgets
    • graph-starter: minimal @deck.gl-community/graph-layers app
    • chart-scatter: OrthographicView scatter plot with axes (pairs with the #10454 chart examples)

Non-Goals

  • Replacing published packages. Anything that needs versioning, tests, and a stable API stays in npm modules.
  • A new component framework or design system. Items are thin wrappers over existing vis.gl APIs.

Implementation Plan

  1. Decide where it lives and set up the registry build (shadcn build) and hosting.
  2. Publish two or three first items and a docs page on how to install and contribute them.
  3. Add CI that installs each item into a scratch app and builds or renders it.
  4. Invite deck.gl-community module owners to contribute entry-point items.

Open questions

  • Should it live in deck.gl-community or in its own repo under visgl?
  • React only at first, or also plain TypeScript items for non-React apps (and pydeck custom widgets)?
  • Who reviews items, and what CI renders each one so it doesn't rot?
  • Is the name viscn OK?
Dominant language
TypeScript
Stars
14.8k
Forks
2.3k
Avg merge
1d 9h
Merged PRs (30d)
230

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from visgl/deck.gl

All issues in visgl/deck.gl

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.