Skip to content

stanleyjones/ssb-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssb-graphql

A GraphQL server for Secure Scuttlebutt (SSB)


ssb-graphql is a collection of GraphQL schema, queries, and mutations that make it easier for clients to work with Scuttlebot. Ask only for what you need, when you need it.

Example request:

query {
  profile (key: '@...') {
    name
    messages { key }
    channels { name }
  }
}

Example response:

profile {
  name: 'Stanley'
  messages: [
    { key: '@...' }
    { key: '@...' }
    { key: '@...' }
  ]
  channels: [
    { name: 'scuttlebutt' }
    { name: 'solarpunk' }
  ]
}

There is also a GraphiQL client that lets you explore the schema.

About

An experiment in providing a GraphQL server layer for Scuttlebot (and the SSB protocol)

Topics

Resources

Stars

Watchers

Forks