npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@hexagon6/solid-kit

v0.2.0

Published

solid-kit -> [Social Linked Data](https://solidproject.org) with [SvelteKit](https://kit.svelte.dev/)

Downloads

181

Readme

@hexagon6/solid-kit

solid-kit -> Social Linked Data with SvelteKit

Goals

  • Test-bed for svelte components usable in sveltekit applications.
  • An SDK for getting started with Solid and Single Page Applications.
  • Deployable on static webservers with "@sveltejs/adapter-static"
  • No backend required, only a POD

Non-Goals

  • Server side rendering.

Implementation

This software is available on npm.org as @hexagon6/solid-kit.

Installation

Using your favorite package manager, run: npm install @hexagon6/solid-kit.

It is supposed to be used within a sveltekit project.

Usage

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'

SvelteKit routes

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.

Components

There are some Svelte components that can be used with payloads returned from a Solid POD.

  • LDContent: Linked Data (application/json+ld), supports TypeIndex & Preferences file
  • Markdown: Render Markdown

Some Svelte components can be used for interacting with a Solid OIDC server, which handles login, authorization, redirect & logout

  • Redirect: Redirect from registered URL to the page the user would like to land on authenticated.
  • SolidLogin: A login component, which allows setting a validated webid / oidc provider and subsequently shows log in and out buttons
  • SolidStorage: A component, capable of resolving a Storage URL with the LDP-Container http link headers

helper functions

Integration Testing

Run pnpm run ci to check if the full stack is still working after changes.

Base Path

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.

Storybook

Status: Implemented, but not yet published

pnpm run storybook to try it locally