0.2.24 • Published 2 months ago

graphweaver v0.2.24

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

Table of Contents

Why

We consistently find that everyone has lots of sources of truth. You know, CRM holding customer data, accounting systems handling invoices, and more scattered across different SaaS platforms and databases? It's a real pain to sync it all up!

In the past we used to copy data from everywhere to the DB, but that always breaks at some point.

Well, after years of grappling with this issue, we wanted a way to easily build a single GraphQL API in front of all those sources. An API that allows you to execute queries that even span across datasources (give me DB records where customer in CRM name is "Bob"), and also allows you to administer your data all from one place.

That's why we built Graphweaver. We've been using it on our projects for about a year now and think you'll love it too!

Features

  • Instant GraphQL API - Instant CRUD API from any data source
  • Granular Permissions - Row and column-level security
  • Multiple Data Sources - Combine multiple data sources (Postgres, Mysql, SQLite, Saas Platforms, REST)
  • Cross Source Filters - Graphweaver allows you to filter across data sources, from one database by another
  • 100% Open Source - Available on GitHub under the MIT license, so you are free to change and deploy as needed.
  • Admin Panel - Out of the box Admin UI to view and manipulate data
  • Code First - Maximum flexibility for you to write your own resolvers and UI
  • Code Generator - Introspect a database and instantly create the Typescript resolvers

Security

Graphweaver comes pre-built with the following security features:

  • Role Based Access Control - Define permissions and access rights at a role level and assign those roles to users.
  • Access Control Lists- Define and apply permissions based on user roles and assign them to Create, Read, Update, and Delete operations.
  • Row Level Security - Implement row-level security and define who has access to which rows in the data source.
  • Column Level Security - Fine-grained control over which fields and columns a user can access and modify.
  • Identity Providers - Pre-built identity providers for Local Database and Amazon Cognito.

For more on security see the security documentation.

Documentation

Comprehensive documentation and usage examples can be found on our Docs Site. It covers installation instructions, detailed API documentation, security implementation and guides to help you get started with Graphweaver.

Pre-requisite

Before we start the installer make sure you are running:

  • Node >18.*
  • PNPM >8.*

Graphweaver CLI graphweaver

The Graphweaver Command Line Interface (CLI) tool enables you to set up and manage Graphweaver using commands in your command-line shell.

Installing

npm install -g graphweaver

Commands

* graphweaver init
* graphweaver import [source]
* graphweaver analyse [target]
* graphweaver build [environment]
* graphweaver build-types
* graphweaver start [environment]
* graphweaver watch [environment]

graphweaver help

Display help for graphweaver

USAGE
    $ graphweaver help

DESCRIPTION
    Shows a list of available commands in graphweaver

graphweaver init

Step by step helper to create a graphweaver project in various ways.

USAGE
    $ graphweaver init [--name <value>] [--backend <value>] [--useVersion <value>] [--host <value>] [--port <value>][--password <value>] [--user <value>]

FLAGS
    --database <value>
    Name of this project

    --backend <value>
    Data source type. Select a choice from these options: `postgres`, `mysql`, `rest`, `sqlite`.

    --useVersion <value>
    Specify a version of Graphweaver to use

    --database <value>
    Name of database to import

    --host <value>
    Database server host name

    --port <value>
    Database server port

    --password <value>
    Database server password

    --user <value>
    Database server user name

graphweaver import source

Inspect the schema of an external data source or an API endpoint and then import its entities into your GraphQL API.

USAGE
    $ graphweaver import [SOURCE] [--database <value>] [--host <value>] [--port <value>] [--password <value>] [--user <value>]

ARGUMENTS
    SOURCE  Data source for e.g. rest api, xero, sqlite, mysql, postgresql

FLAGS
    --database <value>
    Name of database to import

    --host <value>
    Database server host name

    --port <value>
    Database server port

    --password <value>
    Database server password

    --user <value>
    Database server user name

graphweaver analyse target

Instruments your graphweaver project in various ways.

USAGE
    $ graphweaver analyse [TARGET]

ARGUMENTS
    TARGET  Available choices are `bundle`. When `bundle` is selected, it returns the build result.

graphweaver build environment

Builds your graphweaver project for deployment

USAGE
    $ graphweaver build [ENVIRONMENT] [--adminUiBase <value>]

ARGUMENTS
    ENVIRONMENT  Available choices are `backend`, `frontend`, `all`.

FLAGS
    --adminUiBase <value>
    Specify the base path for the Admin UI

graphweaver build-types

Builds a types.ts file containing all the types in the Graphweaver schema.

USAGE
    $ graphweaver build-types

graphweaver start environment

Runs a development version of the project locally.

USAGE
    $ graphweaver start [ENVIRONMENT] [--host <value>] [--port <value>]

ARGUMENTS
    ENVIRONMENT  Available choices are `backend`, `frontend`, `all`.

FLAGS
    --host <value>
    Specify a host to listen on e.g. `graphweaver start --host 0.0.0.0`

    --port <value>
    Specify a base port to listen on. Frontend will start on this port, and backend will start on port+1

graphweaver watch environment

Runs a development version of the project locally and watches files for changes.

USAGE
    $ graphweaver start [ENVIRONMENT] [--host <value>] [--port <value>]

ARGUMENTS
    ENVIRONMENT  Available choices are `backend`, `frontend`, `all`.

FLAGS
    --host <value>
    Specify a host to listen on e.g. `graphweaver start --host 0.0.0.0`

    --port <value>
    Specify a base port to listen on. Frontend will start on this port, and backend will start on port+1

Contributing

We welcome contributions from the community! If you're interested in improving Graphweaver, please refer to our Contribution Guidelines for detailed instructions.

License

Distributed under the MIT License. See LICENSE for more information.

0.2.24

2 months ago

0.2.23

2 months ago

0.2.22

2 months ago

0.2.20

2 months ago

0.2.18

3 months ago

0.2.17

3 months ago

0.2.16

3 months ago

0.2.15

4 months ago

0.2.14

4 months ago

0.2.13

4 months ago

0.2.12

4 months ago

0.2.11

4 months ago

0.2.10

5 months ago

0.2.9

5 months ago

0.2.8

5 months ago

0.2.7

5 months ago

0.2.6

8 months ago

0.2.3

9 months ago

0.2.5

9 months ago

0.2.4

9 months ago

0.2.2

10 months ago

0.2.1

10 months ago

0.2.0

10 months ago

0.1.25

11 months ago

0.1.24

11 months ago

0.1.23

11 months ago

0.1.22

11 months ago

0.1.21

11 months ago

0.1.20

11 months ago

0.1.19

11 months ago

0.1.18

11 months ago