Skip to content

code/lang/js/tools: Add Brangr #1473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions src/content/code/language-support/javascript/tools/brangr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Brangr
description: Browse Any Graph - A user-friendly viewer for any GraphQL service
url: https://github.com/networkimprov/brangr
github: networkimprov/brangr
---

**Brangr - *Br*owse *An*y *Gr*aph**

- Brangr is a simple, unique tool that any web server can host
to provide a user-friendly browser/viewer for any GraphQL service (or many).

- Brangr formats GraphQL results attractively, via a selection of
user-configurable layouts.
It lets users extract the generated HTML, and its source JSON.
It provides a clever schema browser.
It has built-in docs.

- Brangr enables sites hosting it to present users with
a collection of pre-fab GraphQL requests, which they can edit if desired,
and let them create their own requests.
And it allows sites to define custom CSS styling for all aspects of the
formatted results.

- Try it at the
[**public Brangr site**](https://mnmnotmail.org/bgr/brangr.html).

**Example**

```
query {
heroes(_layout:{type:table}) { # _layout arg not sent to service
first
last
}
}
```

Brangr renders the above query as follows (though not in a quote block):

<blockquote>heroes...
<table style="border-spacing:0.5em 0">
<tr><th>First </th><th>Last </th></tr>
<tr><td>Arthur</td><td>Dent </td></tr>
<tr><td>Ford </td><td>Prefect </td></tr>
<tr><td>Zaphod</td><td>Beeblebrox</td></tr>
</table>
</blockquote>