• This repository has been archived on 23/Nov/2020
  • Stars
    star
    265
  • Rank 154,577 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸŒ• Application State Management done with GraphQL

Loona

CircleCI Join the community on Spectrum

Loona is a state management library built on top of Apollo Client. It brings the simplicity of managing remote data with Apollo, to your local state. Instead of maintaining a second store for your local data with tools like Redux, MobX or NGRX, use Loona to keep data in just one space and make it a single source of truth.

With Loona you get all the benefits of Apollo, like caching, offline persistence and more. On top of that you gain all the other benefits like stream of actions, better sepatation between mutation and store updates.

UI Frameworks

Loona works with React and Angular:

Documentation

All of the documentation for Loona including usage articles and helpful recipes lives on loonajs.com.

Read about Loona

Features

  • Single store - Keep your remote and local data in just one space and make it a single source of truth.
  • Separation of concerns - Loona helps you to keep every piece of your data flow separated.
  • Benefits of Apollo - You get all the benefits of Apollo, like caching, offline persistence and more.
  • Works on Mobile - Works out of the box with React Native and NativeScript.

Concept

Loona can be described by few core concepts. First two of them are related to GraphQL:

  • Queries - ask for what you need.
  • Mutations - a way to modify your remote and local data.
  • Store - a single source of truth of all your data.

It also uses a concept of:

  • Actions - declarative way to call a mutation or trigger a different action
  • Updates - modify the store after a mutation happens

By having it all, Loona helps you to keep every piece of your data's flow separated.


Contributing

This project uses Lerna.

Bootstraping:

yarn install

Running tests locally:

yarn test

Formatting code:

yarn format

This project uses TypeScript for static typing. You can get it built into your editor with no configuration by opening this project in Visual Studio Code, an open source IDE which is available for free on all platforms.

More Repositories

1

graphql-inspector

πŸ•΅οΈβ€β™€οΈ Validate schema, get schema change notifications, validate operations, find breaking changes, look for similar types, schema coverage
TypeScript
1,645
star
2

apollo-angular

A fully-featured, production ready caching GraphQL client for Angular and every GraphQL server 🎁
TypeScript
1,499
star
3

graphql-config

One configuration for all your GraphQL tools (supported by most tools, editors & IDEs)
TypeScript
1,170
star
4

graphql-hive

GraphQL Hive is a schema registry and observability
TypeScript
420
star
5

bob

Build tool used in libraries maintained by The Guild
TypeScript
48
star
6

apollo-client-rxjs

Adds RxJS to ApolloClient
TypeScript
44
star
7

apollo-angular-ssr

Server-Side Rendering + Store Rehydration in apollo-angular
TypeScript
34
star
8

apollo-angular-services

Write .graphql files, use them as auto generated Angular services. https://github.com/kamilkisiela/apollo-angular-introduction
TypeScript
31
star
9

apollo-link-rxjs

Use RxJS with Apollo Link
TypeScript
30
star
10

angular2-graphql-rest

An Angular2 app with REST Api and GraphQL (apollo-client and angular2-apollo)
JavaScript
28
star
11

split-tests

Split test files in Jest and Cypress into parallel CI jobs
TypeScript
28
star
12

apollo-link-maxage

An Apollo Link to invalidate cached queries
TypeScript
21
star
13

angular-emojify

Angular Pipe that replaces all :emoji: with the actual emoji
TypeScript
18
star
14

apollo-angular-introduction

Use GraphQL in Angular - step by step - includes code generation
TypeScript
17
star
15

graphql-breaking-changes

Improving breaking change detection in GraphQL
TypeScript
15
star
16

angular-suspense

React-like Suspense API for Angular (Suspense + ErrorBoundary) - experimental
TypeScript
14
star
17

angular2-apollo-examples

List of angular2-apollo examples
13
star
18

cloudflare-graphql-api

GraphQL API for Cloudflare API
TypeScript
13
star
19

reddit-score-js

JavaScript implementation of Reddit hot ranking algorithm
TypeScript
10
star
20

rollup-plugin-graphql

Convert graphql files to ES6 modules
JavaScript
9
star
21

bru

Bru 🀡helps you manage monorepos!
TypeScript
9
star
22

apollo-angular-nativescript

NativeScript + Angular + GraphQL
TypeScript
8
star
23

apollo-angular-link-network-status

Information about the network status of your GraphQL operations. Built for Apollo Angular.
TypeScript
7
star
24

instagraph

GraphQL / REST API / Angular2
TypeScript
7
star
25

GitHunt-Lite-Angular

Step by step tutorial (see the steps branch)
TypeScript
6
star
26

ngx-graphql

TypeScript
6
star
27

incremental-schema-apollo-link

TypeScript
6
star
28

GitHunt-Lite-API

Step by step tutorial
JavaScript
5
star
29

apollo-rx-observable

An implementation of QueryObservable that works with RxJS
TypeScript
4
star
30

meteor-angular-lazy

An example of Lazy Loading Angular's NgModules with Meteor 1.5
TypeScript
4
star
31

graphql-modules

TypeScript
3
star
32

angular-graphql-subcriptions

GraphQL subscriptions in an Angular project
TypeScript
3
star
33

release-canary

JavaScript
3
star
34

graphql-stream

TypeScript
3
star
35

angular2-rest-to-graphql

How to implement GraphQL in your REST API based application
TypeScript
3
star
36

graphql-webpack

TypeScript
3
star
37

graphql-blog

AngularCamp 2017
TypeScript
3
star
38

string-env-interpolation

Use Environment Variables in String
TypeScript
3
star
39

nest-graphql-apollo

Nest GraphQL starter repository
TypeScript
2
star
40

httpcall

Make HTTP calls to remote servers
TypeScript
2
star
41

graphql-codegen-config

TypeScript
2
star
42

apollo-leaks

JavaScript
2
star
43

WhatsApp-ngAtlanta

What's app ngAtlanta?
TypeScript
2
star
44

graphql-inspector-example

Demo of GraphQL Inspector
JavaScript
2
star
45

meteor-angular-ui-router-example

Example AngularJS app with ui-router
JavaScript
2
star
46

angular2-graphql

TypeScript
1
star
47

bar

TypeScript
1
star
48

graphql-inspector-ci

Use GraphQL Inspector with any Continuous Integration
1
star
49

sequelize-init

reproduction
TypeScript
1
star
50

foo

1
star
51

apollo-angular-lazy-modules

Use multiple Apollo Clients in lazy loaded modules
TypeScript
1
star
52

collection-of-subgraphs

JavaScript
1
star
53

apollo-pessimism

JavaScript
1
star
54

vienna

TypeScript
1
star
55

meteor-typescript-testing

TypeScript
1
star
56

graphql-inspector-repro-1488

1
star
57

tsconfig-diff

Compare two tsconfig files
JavaScript
1
star
58

graphql-first-resolvers-firsters

TypeScript
1
star
59

gatsby-starter-netlify-cms

JavaScript
1
star
60

graphql-subscription-cases

TypeScript
1
star
61

apollo-angular-reproduction

Simple repository to use for an issue reproduction
TypeScript
1
star
62

incremental-graphql-schema

TypeScript
1
star
63

ccitest

JavaScript
1
star