open-app-graphql-server
Server running Secure Scuttlebot over GraphQL.
Last updated 2 years ago by luandro .
ISC · Original npm · Tarball · package.json
$ cnpm install open-app-graphql-server 
SYNC missed versions from official npm registry.

Open App GraphQL Server

npm version

A simple server that supports GraphQL schemas as plugins. Made for building apps on top of distributed protocols such as ssb and dat.

Used for an implementation of an Open App Ecosystem of interoperable APIs based on distributed protocols.

Works with Node v8 or higher.

Usage

To try an example simply npm i && npm run install-example and run npm run dev or yarn dev to run the example server. Go to http://localhost:4000/graphql to try it out.

To use for your own project simply install with npm i -S open-app-graphq-server or yarn add open-app-graphq-server.

const server = require('open-app-graphql-server')
const ssb = require('ssb-graphql-defaults')
const dat = require('dat-graphql')
const economic = require('economic-sentences-graphql')

server([
  ssb,
  dat,
  economic,
])
// Starts a Secure Scuttlebot server and a client that feeds a GraphQL layer
// Use http://localhost:4000/graphql

Blobs are served from localhost:7777/ using the ssb-serve-blobs plugin. Exmaple:

http://localhost:7777/&AWg5t0YSygakE2Ky9M338qoHC5p4GOqdwFvBU/6MpsY=.sha256

Check out economic-sentences-graphql for an example of how to make a plugin.

Plans

  • Schema to deal with fs
  • Have plugins that include not only GraphQL schemas but also ssb plugins and flumedb views.

Current Tags

  • 2.0.1                                ...           latest (2 years ago)

24 Versions

  • 2.0.1                                ...           2 years ago
  • 2.0.0                                ...           2 years ago
  • 1.1.2                                ...           2 years ago
  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.3                                ...           2 years ago
  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
  • 0.0.12                                ...           3 years ago
  • 0.0.11                                ...           3 years ago
  • 0.0.10                                ...           3 years ago
  • 0.0.9                                ...           3 years ago
  • 0.0.8                                ...           3 years ago
  • 0.0.7                                ...           3 years ago
  • 0.0.6                                ...           3 years ago
  • 0.0.5                                ...           3 years ago
  • 0.0.4                                ...           3 years ago
  • 0.0.3                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 2
Last Day 0
Last Week 1
Last Month 0
Dependencies (40)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |