Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graffy

Package Overview
Dependencies
Maintainers
1
Versions
219
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graffy

Graffy Project

  • 0.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
41
decreased by-74.69%
Maintainers
1
Weekly downloads
 
Created
Source

Graffy logo

Graffy Build Status

Graffy is a Javascript library to power efficient and intuitive real-time APIs. It's built on a sound set-theoretic model of queries and graphs.

Why Graffy?

Graffy provides live queries, which give clients a real-time view of the data they need. Graffy supports complex queries with nested graph traversals and pagination, while exposing a simple and intuitive API for building clients and servers.

Graffy was inspired by (and borrows from) Facebook's GraphQL and Netflix's Falcor. Compared to GraphQL, Graffy offers a more familiar data model, true live queries and more efficient caching. Compared to Falcor, it provides cursor-based pagination and real-time subscriptions.

Unlike GraphQL resolvers and Falcor data providers, Graffy providers can be composed like Express/Koa middleware. This allows authentication, validation, custom caches and resource limiting to be implemented in a straightforward manner.

Graffy providers can also perform efficient bulk reads from underlying data stores (for example by constructing optimized SQL queries). This is particularly hard to do with GraphQL (see dataloader) and Falcor.

Documentation

Development status

Graffy is under heavy development and not ready for production use.

ModuleStatusProvides
corenpm version-
clientnpm versionEventStream/HTTP client
servernpm versionEventStream/HTTP server
cachenpm versionIn-memory cache
reactnpm versionContainer and hooks API
gql⌛ backlogGraphQL subset DSL for queries
schema⌛ backlogValidation, introspection API
viewer⌛ backlogSchema introspection client
auth⌛ backlogAuthentication and authorization
limit⌛ backlogResource consumption accounting

Capabilities

GraffyGraphQLFalcorDescription
Narrow queriesQueries specify required fields; Allows API evolution
Deep queriesQueries can expand nested resources; Reduces round-trips
Live queriesPush changes to query results in real time
Pagination cursorsEnables efficient pagination on the server
ParametersCustom filtering criteria, etc.
Caching pagesCache result of paginated queries
Atomic writesWrites that trigger accurate cache invalidation
Non-data endpointsMutations, subscriptions, cross-resource search

FAQs

Package last updated on 20 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc