Skip to content

Commit 2084dfc

Browse files
code/lang/js/tools: Add Brangr (#1473)
* code/language/js/tools: Add Brangr * code/lang/js/tools/brangr: Fix table to use html * code/lang/js/tools/brangr: Fix table borderspacing * code/lang/js/tools/brangr: Fix blurb to use bullets * code/lang/js/tools/brangr: Fix description * code/lang/js/tools/brangr: Fix formatting per Prettier * code/lang/js/tools/brangr: Fix formatting per Prettier, again
1 parent 1ab6cc3 commit 2084dfc

File tree

1 file changed

+48
-0
lines changed
  • src/content/code/language-support/javascript/tools

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
---
2+
name: Brangr
3+
description: Browse Any Graph - A user-friendly viewer for any GraphQL service
4+
url: https://github.com/networkimprov/brangr
5+
github: networkimprov/brangr
6+
---
7+
8+
**Brangr - *Br*owse *An*y *Gr*aph**
9+
10+
- Brangr is a simple, unique tool that any web server can host
11+
to provide a user-friendly browser/viewer for any GraphQL service (or many).
12+
13+
- Brangr formats GraphQL results attractively, via a selection of
14+
user-configurable layouts.
15+
It lets users extract the generated HTML, and its source JSON.
16+
It provides a clever schema browser.
17+
It has built-in docs.
18+
19+
- Brangr enables sites hosting it to present users with
20+
a collection of pre-fab GraphQL requests, which they can edit if desired,
21+
and let them create their own requests.
22+
And it allows sites to define custom CSS styling for all aspects of the
23+
formatted results.
24+
25+
- Try it at the
26+
[**public Brangr site**](https://mnmnotmail.org/bgr/brangr.html).
27+
28+
**Example**
29+
30+
```
31+
query {
32+
heroes(_layout:{type:table}) { # _layout arg not sent to service
33+
first
34+
last
35+
}
36+
}
37+
```
38+
39+
Brangr renders the above query as follows (though not in a quote block):
40+
41+
<blockquote>heroes...
42+
<table style="border-spacing:0.5em 0">
43+
<tr><th>First </th><th>Last </th></tr>
44+
<tr><td>Arthur</td><td>Dent </td></tr>
45+
<tr><td>Ford </td><td>Prefect </td></tr>
46+
<tr><td>Zaphod</td><td>Beeblebrox</td></tr>
47+
</table>
48+
</blockquote>

0 commit comments

Comments
 (0)