solid-rest
treat any storage as a mini Solid server
Last updated a month ago by jeff-zucker .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install solid-rest 
SYNC missed versions from official npm registry.

Solid REST

treat any storage backend as a minimal Solid server

This package sits between auth modules like solid-auth-client and solid-auth-cli to handle requests for file:// and app:// URIs. and then uses the appropriate storage module to do the work. Doing it this way means that any app that uses those auth modules (which AFAIK is all Solid apps) can make use of the extended storage spaces. The file:// portion is already working in rdflib in nodejs. So far I have backends working for a file-system and for localStorage. Files work only in node; localStorage works either in browser or node (using a simulated in-memory localStorage). Otto_A_A is working on a cache backend which will use web-workers to dynamically update a mini-pod in the browser's cache.

diagram of solid-rest

For those who want to use file:// or app:// URLs Soon, solid-rest will be included in the auth modules. At that point, in a nodejs app, you simply require solid-rest and then use the extra URLs and in a browser app you supply script tags for solid-rest and for whichever of the app:// handlers you want.

For those who want to create other storage handlers: This package provides request routing, header handling, response preparation, and a test framework. Storage modules can leverage all of that and/or over-ride what they want. I am preparing an API guide, in the meantime there is documentation in the localStorage file.

copyright © 2019, Jeff Zucker, may be freely distributed with the MIT license

Current Tags

  • 1.1.3                                ...           latest (a month ago)

13 Versions

  • 1.1.3                                ...           a month ago
  • 1.1.2                                ...           2 months ago
  • 1.1.1                                ...           2 months ago
  • 1.1.0                                ...           2 months ago
  • 1.0.9                                ...           3 months ago
  • 1.0.8                                ...           3 months ago
  • 1.0.7                                ...           7 months ago
  • 1.0.5                                ...           8 months ago
  • 1.0.4                                ...           8 months ago
  • 1.0.3                                ...           8 months ago
  • 1.0.2                                ...           8 months ago
  • 1.0.1                                ...           8 months ago
  • 1.0.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 24
Last Day 0
Last Week 20
Last Month 76
Dependencies (4)
Dev Dependencies (7)

Copyright 2014 - 2017 © taobao.org |