• Stars
    star
    227
  • Rank 175,900 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 4 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Library for accessing data and managing permissions on data stored in a Solid Pod

Solid JavaScript Client - solid-client

Contributor Covenant

This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].

@inrupt/solid-client is a JavaScript library for accessing data and managing permissions on data stored in Solid Pods. It provides an abstraction layer on top of both Solid and Resource Description Framework (RDF) principles and is compatible with the RDF/JS specification. You can use solid-client in Node.js using either CommonJS or ES modules, and in the browser with a bundler like Webpack, Rollup, or Parcel.

@inrupt/solid-client is part of a family open source JavaScript libraries designed to support developers building Solid applications.

Inrupt Solid JavaScript Client Libraries

Data access and permissions management - solid-client

@inrupt/solid-client allows developers to access data and manage permissions on data stored in Solid Pods.

@inrupt/solid-client-authn-browser allows apps running in a browser to authenticate against a Solid server. This is only necessary if you wish to access private resources in a Pod (to access public resources you could simply use standard window.fetch()).

Vocabularies and interoperability

A fundamental requirement for any two systems to interoperate at all is that they have a shared understanding of the concepts and ideas relevant to those systems. That shared understanding is expressed as a common 'language', and the individual terms from that language are typically described and explained in dictionaries.

The Solid eco-system uses RDF vocabularies (or slightly more formally, 'ontologies') to describe concepts and ideas in a machine-readable, W3C standardized format (effectively, these RDF vocabularies act as dictionaries for systems to share concepts and ideas).

There are already many common vocabularies published on the web, such as the vCard vocabulary for describing the concepts and ideas associated with People and Organizations, or Schema.org for describing the things search engines are typically interested in, intended to be used by webmasters to mark up their pages in ways that those search engines can then understand.

As a convenience for JavaScript developers, Inrupt publishes various npm modules that provide JavaScript classes containing constants representing the individual terms described in many of these vocabularies today, including modules specifically for Solid-related vocabularies, and for Inrupt-specific vocabularies.

By simply importing one of these NPM modules, developers have immediate access to all the terms described in all the RDF vocabularies referenced by that module.

Common RDF vocabularies

This module bundles together JavaScript classes representing many of the most common RDF vocabularies published on the web today (e.g. FOAF, Schema.org, vCard, SKOS, etc.): @inrupt/vocab-common-rdf

Solid-specific RDF vocabularies

This module bundles together JavaScript classes representing all the RDF vocabularies related to Solid (e.g. Solid terms, WebACL, ACP, etc.): @inrupt/vocab-solid-common

Inrupt-specific RDF vocabularies

This module bundles together JavaScript classes representing all the RDF vocabularies created and maintained by Inrupt (e.g. an Inrupt test vocabulary, Inrupt glossaries, Inrupt product vocabularies, etc.): @inrupt/vocab-inrupt-common

Supported environments

Our JavaScript Client Libraries use relatively modern JavaScript, aligned with the ES2018 Specification features, we ship both ESM and CommonJS, with type definitions for TypeScript alongside.

This means that out of the box, we only support environments (browsers or runtimes) that were released after mid-2018, if you wish to target other (older) environments, then you will need to cross-compile our SDKs via the use of Babel, webpack, SWC, or similar.

If you need support for Internet Explorer, it is recommended to pass them through a tool like Babel, and to add polyfills for e.g. Map, Set, Promise, Headers, Array.prototype.includes, Object.entries and String.prototype.endsWith.

Additionally, when using this package in an environment other than Node.js, you will need a polyfill for Node's buffer module.

Node.js Support

Our JavaScript Client Libraries track Node.js LTS releases, and support 14.x, 16.x, 18.x and 20.x.

Installation

For the latest stable version of solid-client:

npm install @inrupt/solid-client

For the latest stable version of all Inrupt Solid JavaScript libraries:

npm install @inrupt/solid-client @inrupt/solid-client-authn-browser @inrupt/vocab-common-rdf

Issues & Help

Solid Community Forum

If you have questions about working with Solid or just want to share what youโ€™re working on, visit the Solid forum. The Solid forum is a good place to meet the rest of the community.

Bugs and Feature Requests

  • For public feedback, bug reports, and feature requests please file an issue via Github.
  • For non-public feedback or support inquiries please use the Inrupt Service Desk.

Documentation

Changelog

See the release notes.

License

MIT ยฉ Inrupt

More Repositories

1

solid-ui-react

React SDK using @inrupt/solid-client
TypeScript
95
star
2

solid-react-sdk

Solid React SDK by Inrupt
81
star
3

solid-client-authn-js

A client library for authenticating with Solid
TypeScript
67
star
4

pod-browser

JavaScript
66
star
5

solid-react-components

Reusable components for Solid React applications
JavaScript
62
star
6

generator-solid-react

Generator for Solid React applications
JavaScript
43
star
7

pod-server

Solid server package that bind together solid-idp, wac-ldp, and websockets-pubsub.
HTML
40
star
8

generator-solid-angular

Generator for Solid Angular applications
HTML
31
star
9

solid-style-guide

Atomic Style Guide for Solid Applications
JavaScript
18
star
10

solid-ui-react-demo

JavaScript
15
star
11

wac-ldp

A central component for Solid servers, handles Web Access Control and Linked Data Platform concerns.
TypeScript
12
star
12

typescript-sdk-tools

Tooling used when writing Inrupt's Typescript SDK for Solid
TypeScript
11
star
13

solid-client-java

Java Client Libraries for Solid
Java
10
star
14

artifact-generator

Tool for generating and publishing programming-language-specific libraries (i.e., artifacts) that bundle together source-code classes to represent individual RDF vocabularies, where each class contains constants for all of the RDF terms (i.e., the RDF Classes and Properties) defined in each of those vocabularies.
JavaScript
9
star
15

universal-fetch

A library to access fetch in any node or browser environment
TypeScript
7
star
16

solid-sdk-forms

A Form Library for the Solid SDK
TypeScript
6
star
17

solid-lib-comparison

Three branches with common Solid operations implemented in rdflib, ldflex and Tripledoc, respectively
HTML
6
star
18

solid-common-vocab-js

A library providing JavaScript objects to represent the individual terms (i.e. the classes and properties) defined in RDF vocabularies.
TypeScript
6
star
19

mashlib-dev

Development setup for the mashlib project
Shell
5
star
20

public-documentation

Anything open to the public that is related to documentation, code examples, standards.
5
star
21

rdf-wrapping-java

An RDF Wrapping library for working with domain models
Java
5
star
22

solid-client-access-grants-js

Library for managing verifiable consent grants in Solid
TypeScript
5
star
23

experimental-solid-graphql-js

TypeScript
4
star
24

solid-common-vocab-rdf

Collections of RDF vocabularies and Artifact Generator YAML configuration files used to generate and bundle together source-code artifacts that represent the terms (e.g. the Classes, Properties and Literals) from those (and remote) RDF vocabularies.
JavaScript
4
star
25

friend-requests-exploration

An exploration into how Solid users might send each other friend requests
HTML
3
star
26

websockets-pubsub

WebSockets pubsub for Solid servers
TypeScript
3
star
27

authorization-management-component

A tool for accepting and revoking AccessGrants to Pod data
TypeScript
2
star
28

solid-idp

A webId Identity Provider that can be integrated with the Solid community server.
CSS
2
star
29

solid-server-ts

Experiment for modeling Solid server components in TypeScript
TypeScript
2
star
30

solid-client-vc-js

Client library to ease working with Verifiable Credentials in Solid
TypeScript
2
star
31

solid-client-notifications-js

TypeScript
2
star
32

launcher-exploration

Exploration of how a Solid Launcher App could work
HTML
1
star
33

solid-github-action

A Solid client for GitHub actions
JavaScript
1
star
34

docs-react-sdk

Documentation for the Inrupt Solid React SDK
Python
1
star
35

jose-legacy-modules-js

JavaScript
1
star
36

ess-changelog

1
star