# libgql

> GraphQL Linked Library bindings for javascript.

Latest version **0.0.1** (published 2017-12-03) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install libgql
pnpm add libgql
yarn add libgql
bun add libgql
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-12-03 |
| First published | 2017-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Bryan Goldstein |
| Maintainers | brysgo1 |

## Links

- npm: https://www.npmjs.com/package/libgql
- Repository: git@github.com:brysgo/libgql
- npm.io page: https://npm.io/package/libgql

## Dependencies (1)

- [graphql](https://npm.io/package/graphql.md) ^0.9.6

## Recent versions

- 0.0.1 (latest) — 2017-12-03

## README

# DEPRECATED

This project never took off and is not worth maintaining anymore. Let me know if it interests you.

# libgql - GraphQL Linked Libraries

[![CircleCI][build-badge]][build]
[![Greenkeeper badge][greenkeeper-badge]][greenkeeper]

[![npm package][npm-badge]][npm]
[![pip package][pip-badge]][pip]

## The Problem

How can I build libraries and modules that operate accross programming
languages and environments?

## The Solution

To solve this problem with web services, we build APIs that we can use between
languages. Unfortunately, these APIs require us to make HTTP requests.

...or do they?

Enter GraphQL: Protocal Agnostic, that means, we can implement it over a CLI
interface and have an incredibly handy way to build cross language bindings
without all the fuss.

## What does it do?

libgql will define a protocal for doing graphql over CLI and implement as many
language bindings as we possibly can.

## Usage

I would recommend looking at the tests for usage, since it varies from language
to language. To consume a module that uses libgql, install the bindings for your
language:

| javascript | `yarn add libgql`       |
|------------|-------------------------|
| python     | `pipenv install libgql` |

Then import the bindings and load the module:


### javascript
```javascript
import { loadModule } from "libgql"

const myModule = loadModule("./path/to/libgql/module/executable");

result = await myModule(graphqlQueryStringHere, optionalVariables);
```

### python

```python
from "libgql" import load_module

myModule = load_module("./path/to/libgql/module/executable")

result = myModule(graphqlQueryStringHere, optionalVariables)
```

[build-badge]: https://circleci.com/gh/brysgo/libgql.svg?style=shield
[build]: https://circleci.com/gh/brysgo/libgql

[npm-badge]: https://img.shields.io/npm/v/libgql.png?style=flat-square
[npm]: https://www.npmjs.org/package/libgql

[pip-badge]: https://badge.fury.io/py/libgql.svg
[pip]: https://badge.fury.io/py/libgql

[greenkeeper-badge]: https://badges.greenkeeper.io/brysgo/libgql.svg
[greenkeeper]: https://greenkeeper.io/

---
_Source: https://npm.io/package/libgql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
