RFC: viscn, a shadcn registry for Open Visualization projects
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
- Domain
- developer-experience
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
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
GraphLayerstarter 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.jsonand generatedr/<name>.jsonitems, 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/*, ...), soshadcn addinstalls 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 onDeckCanvas(#10392)color-legend: legend that reads the color scales from #11147layer-toggle/basemap-switcher: control panels for deck.gl widgetsgraph-starter: minimal@deck.gl-community/graph-layersappchart-scatter:OrthographicViewscatter 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
- Decide where it lives and set up the registry build (
shadcn build) and hosting. - Publish two or three first items and a docs page on how to install and contribute them.
- Add CI that installs each item into a scratch app and builds or renders it.
- 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
viscnOK?
- Dominant language
- TypeScript
- Stars
- 14.8k
- Forks
- 2.3k
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 230
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from visgl/deck.gl
-
[Bug] Tile3DLayer selects no tiles until the camera moves when tileset.json loads right after a layer updatePossibly taken @lee3Q claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
[Bug] SplitterWidget calls onDragStart on drag end; Deck._getViews writes into the app's views arrayPossibly taken @04jennet-coder claimed this 20 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
[Bug] WMSLayer positions EPSG:4326 images as CARTESIANPossibly taken @athomct claimed this 3 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
[Bug] MapLibreOverlay under React StrictMode: 'WebGL context already attached to device' because the attach path omits _reuseDevicesPossibly taken @jsve claimed this 84 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
visgl/deck.gl#10681 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
accessibility area:ci ci-test level:low priority:high type:test
Difficulty 2/5 1-3 hours Newbie friendliness 71/100
skytuhua-org/Gen-V1#3132 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
drmrd/vernacular#1238 ·
Maintainers usually reply within 1 day
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
enhancement migration-prioritized
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Hudson-Pufferfish/local-party-console#136 ·
Maintainers usually reply within 1 day
-
priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day