Giter Club home page Giter Club logo

solid-rest's Introduction

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

solid-rest's People

Contributors

jeff-zucker avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.