solid-kit -> Social Linked Data with SvelteKit
This software is available on npm.org as @hexagon6/solid-kit.
Using your favorite package manager, run: npm install @hexagon6/solid-kit
.
It is supposed to be used within a sveltekit project.
see src/lib/index.js for importable components and helper functions:
import {
LDContent,
Markdown,
Redirect,
SolidLogin,
SolidStorage,
createSession,
fetchLinkHeaders,
container,
getParentContainer,
oidcIssuer,
} from '@hexagon6/solid-kit'
Run this repo locally with pnpm run dev
and inspect what you find in src/routes/.
login/
and redirect/
pages are recommended as endpoints in your sveltekit project, so openid connect works within a single-page-application setup.
There are some Svelte components that can be used with payloads returned from a Solid POD.
Some Svelte components can be used for interacting with a Solid OIDC server, which handles login, authorization, redirect & logout
Run pnpm run ci
to check if the full stack is still working after changes.
If you want to deploy your Single Page Application on a different path than /
you can set the environment variable BASEPATH when building, e.g.:
BASEPATH=/alternative pnpm run build
if you will deploy your application in a /alternative
subfolder on your webserver.
Status: Implemented, but not yet published
pnpm run storybook
to try it locally