This is a series of web component respecting both the web components standards and the Linked Data Platform convention. They are aimed at enabling anyone with little development skills to create their own web application by placing these components in an HTML file.

An full app example can be found in index.html:


You first need to load the webcomponents polyfill for the browsers that have not implemented them yet, and import the components you want to use in your HTML file:

<script type="text/javascript" src=""></script>
<script type="module" src=""></script>

Then you can use the new tags in your markup, for instance: <solid-router>. More details on each component in the following section.


Displays a menu and handle the navigation for you.

    <solid-route name="list">List</solid-route>
    <solid-route name="form">Form</solid-route>
    <solid-route name="detail">Details</solid-route>

<solid-router> attributes:

  • default-route: The name attribute of the default <solid-route> displayed.

  • route-prefix: If you app is not run from the root of your domain name, for instance, you should set route-prefix to "some-uri".

  • use-hash: If you can’t rewrite the URLs on your server, you might want to set this attribute to use location.hash instead of location.pathname as URLs.

  • keep-url: It freezes the URL of all the <solid-route> included. Usefull to freeze the URL when a pop-up is displayed.

<solid-route> attributes:

  • use-id: indicates that the route takes an id.

  • name: The name of the route. Must match the data-view of the view that is to be displayed. The same name is used as a url identifier as well.

  • rdf-type: Can be used as an alternative of name. The route will be activated if a resource with the given type is passed to the router.

  • active: This attribute is present on route being displayed by <solid-router>. It is automatically added/removed by <solid-router> and should not be tinkered manually.

<div data-view=[name]> attributes:

  • view-title: allows to change the title of the page when a user navigates to this view.

  • view-description: allows to change the <meta name="description"> of the page when the user navigates to this view.


Manage browsing statistics.

Sign in on a web analytics service and set <solid-analytics> inside <body>, at the begining for example.

<solid-analytics> accepts the following attributes:

  • type: the type of web analytics service used (currently supports 'matomo', 'google' or 'debug').

  • url: URL of the service. For type="google" it is not necessary to specify the url attribute.

  • id: id of the website on the service.

Type 'debug' allow to test solid-analytics. It will display the route on the console each time a navigation is triggered.

Example :

<solid-analytics type="matomo" url="" id="1234"></solid-analytics>

Interacting with the router

bind-resources attribute

To associate the currently displayed resource to a component, add the bind-resources attribute to it. It will set its data-src attribute to the currently displayed resource’s URL.



will result in:


In the same way, the bind-user attribute can be used to associate the currently logged in user to a component and set its data-src attribute accordingly. More informations about this in the sib-auth documentation.