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 - vela-tools/components: React components and an NGSI-LD client for context broker applications: browse entities, build queries and manage subscriptions.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
api-surface
api-surface
 
 
apps/playground
apps/playground
 
 
docs/assets
docs/assets
 
 
packages
packages
 
 
scripts
scripts
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.lockfile-lintrc.json
.lockfile-lintrc.json
 
 
.node-version
.node-version
 
 
.npmrc
.npmrc
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.json
.prettierrc.json
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE.md
LICENSE.md
 
 
NOTICE.md
NOTICE.md
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
cliff.toml
cliff.toml
 
 
eslint.config.js
eslint.config.js
 
 
knip.json
knip.json
 
 
osv-scanner.toml
osv-scanner.toml
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.base.json
tsconfig.base.json
 
 
turbo.json
turbo.json
 
 
zizmor.yml
zizmor.yml
 
 

Repository files navigation

Vela Components

React components and an NGSI-LD client for building NGSI-LD applications.
Browse types and entities, build queries and manage subscriptions on any NGSI-LD context broker, with parts you arrange yourself or ready-made assemblies.

Quick start · Documentation · Sovereignty · Community · License

format lint test dependencies license: EUPL-1.2 ngsi-ld v1.9.1

Part of Vela Tools · Based on EU open standards 🇪🇺 · Built in Ljubljana, Slovenia 🇸🇮 by SenLab d.o.o.


How it works

Vela Components is three npm packages. @vela-tools/ngsi-client is the only one that talks to a broker: it implements the NGSI-LD API as adapters for entities, types, subscriptions and saved queries. @vela-tools/ngsi holds the NGSI-LD model, a runtime that caches what the adapters return and validates what the user changes, and components bound to that runtime. @vela-tools/ui holds the components themselves, the theme and the app shell, and knows nothing about brokers.

Every component comes in two sizes: a family of parts you arrange in your own layout, and a ready-made composite that you place in one line. The packages are a library, not an application. They do not run a server, store context data or handle logins; the application that uses them decides where they run and who may use them.

Quick start

Install the three packages with their peer dependencies:

npm install @vela-tools/ui @vela-tools/ngsi @vela-tools/ngsi-client \
  @mantine/core @mantine/hooks @tanstack/react-query react react-dom

Wrap the application in the providers, give it a broker, and place a composite:

import { createRoot } from 'react-dom/client';
import { MantineProvider } from '@mantine/core';
import '@mantine/core/styles.css';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { theme } from '@vela-tools/ui';
import '@vela-tools/ui/styles.css';
import '@vela-tools/ui/fonts';
import { EntityBrowser, NGSI_LD_CORE_CONTEXT, NgsiBrokersProvider, type NgsiBroker } from '@vela-tools/ngsi';
import { createNgsiLdAdapter } from '@vela-tools/ngsi-client';

const brokers = [{ name: 'My broker', url: 'https://broker.example.com/ngsi-ld/v1', contextUrl: NGSI_LD_CORE_CONTEXT }];
const createAdapters = (broker: NgsiBroker) => createNgsiLdAdapter({ url: broker.url, context: broker.contextUrl });

createRoot(document.getElementById('root')!).render(
  <MantineProvider theme={theme}>
    <QueryClientProvider client={new QueryClient()}>
      <NgsiBrokersProvider defaultBrokers={brokers} storageKey="my-app.brokers" createAdapters={createAdapters}>
        <EntityBrowser defaultColumns={['id', 'type']} />
      </NgsiBrokersProvider>
    </QueryClientProvider>
  </MantineProvider>,
);

The page now lists the broker's entity types and entities, with the details of the selected one. The broker must allow the application's origin in its CORS settings. The packages are ES modules for React 19 and Mantine 9, and support current versions of Chrome, Edge, Firefox and Safari. They have been tested against the Scorpio broker.

Why?

NGSI-LD is a rich standard, and every application that reads or changes a context broker ends up writing the same things: a client that handles the broker's many response shapes, queries built from user input, subscription forms that the broker will accept, and the screens around them. Written again for each application, they drift apart, and each one learns the quirks of each broker on its own.

Vela Components writes them once. Applications share one client, one model of what a valid subscription is, and one set of components, so a fix for a broker quirk reaches all of them, and they look and behave the same.

What it does

The client reads and writes entities, types and their attributes, temporal data, subscriptions and saved queries. It accepts the shapes brokers actually return, including the compacted single values some of them send, and reports what it cannot read instead of dropping it. Subscription changes are checked before they are sent, and edits a broker would apply incorrectly are refused with the reason.

The components cover broker configuration and connection status, type, entity and attribute pickers, an entity browser with a JSON-LD view, a query builder with conditions, entity types and a geographic region, and a subscription list and editor that cover the subscription members of the standard. Each is a family of parts that read only their own context, so an application can rearrange or replace any of them, and each family has a composite for the common layout. A testing entry point provides a mock adapter for tests and demos.

Documentation

This README and the README of each package, @vela-tools/ui, @vela-tools/ngsi and @vela-tools/ngsi-client, are the documentation. More product information is available at velacontext.com.

Sovereignty

Vela Components speaks ETSI NGSI-LD, an EU open standard, to the broker you choose, and keeps no data of its own: the context data and subscriptions stay on your broker, and the application decides where its own settings live. Vela Components runs on your own machines under the European Union Public Licence v. 1.2 (EUPL-1.2), without an account, licence key, or telemetry.

SenLab's full position on ownership, export, and reversibility is at velacontext.com/sovereignty.

Contributing

Vela Components is not accepting external source-code contributions right now. Bug reports, feature requests, and documentation feedback are welcome. See CONTRIBUTING.md.

Never report a security vulnerability through a public issue. Follow the Vela Components security policy instead.

Community

  • Issues: GitHub Issues
  • Discussions: GitHub Discussions
  • Newsletter: velacontext.com/newsletter
  • General contact: [email protected]
  • Security: private vulnerability reporting, see the security policy
  • Code of conduct: Contributor Covenant

License

Vela Components is licensed under the European Union Public Licence v. 1.2 (EUPL-1.2). The full licence text in all EU languages and additional information are available at eupl.eu.

About

Vela Components is part of Vela Tools, an open-core infrastructure project for the NGSI-LD ecosystem. SenLab d.o.o. builds it in Ljubljana, Slovenia. Learn more at velacontext.com.

About

React components and an NGSI-LD client for context broker applications: browse entities, build queries and manage subscriptions.

velacontext.com

Topics

componentscontext-brokeretsieupleuropejson-ldmantinengsi-ldnpmopen-sourcereactsmart-data-modelssubscriptionstypescriptvela-tools

Resources

Readme
EUPL-1.2 license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402775 — 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.