ProductPromotion
Logo

Open.Source

made by https://0x3d.site

GitHub - exogee-technology/graphweaver: Turn multiple data sources into a single GraphQL API
Turn multiple data sources into a single GraphQL API - exogee-technology/graphweaver
Visit Site

GitHub - exogee-technology/graphweaver: Turn multiple data sources into a single GraphQL API

GitHub - exogee-technology/graphweaver: Turn multiple data sources into a single GraphQL API

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.

Other tools are oriented around the schema file. This is great until you actually need to go to production. Need to override that one operation? Change exactly how your auth tokens are handled? With Graphweaver you're never constrained because it's all just a standard GraphQL server which you can tweak the behaviour of however you like.

That's why we built Graphweaver. Start quickly, use the default for most things, change whatever you like, self-host, and never lose control.

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.

Quick Start

https://github.com/exogee-technology/graphweaver/assets/81122022/3c4eb47e-84ff-476c-998f-936994e8064b

Before we start the installer make sure you are running:

  • Node >22.*
  • PNPM >9.*

With those two installed you can create a new project with the Graphweaver CLI, by running:

npx graphweaver@latest init

The prompts will ask you which backends to install for this app.

First you will be asked to name the project:

? What would your like to call your new project?
test-project

Next, you will be asked to choose your data source. Select your data source and press enter.

? Which Graphweaver backends will you need?
◯ MikroORM - PostgreSQL Backend
◯ MikroORM - MySQL Backend
◯ REST Backend

Finally, you are asked to confirm that the project is going to be created.

? OK, we're ready- I'm going to create a new app in "/Users/test-project" - is that OK?
Yes

All Done!

Make sure you npm install / yarn install / pnpm install, then run the start script to get started
❯

Once the new app has been created cd test-project. Then run pnpm install to install all the required dependencies.

Once installed, you can start the development server by running pnpm start.

This will launch the Graphweaver server and Admin UI at http://localhost:9000:

Very empty! We need to fill the API with data! To do that, we need to connect to a data source and create some entities.

Next Steps

There are two options to connect a data source:

  1. If you have an existing database (Postgres, MySql or Sqlite) then go to the Importing a Database page. This will guide you through importing your database.
  2. If you have a data source but it is currently empty then go to How to Connect a Data Source page.

Contributing

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

We use Gitleaks to ensure that secrets remain secret:

  • brew install gitleaks
  • brew install pre-commit
  • pre-commit autoupdate

Publishing

Follow these steps to release new packages:

1. Create a new Branch:

Begin by creating a new branch. Base it on the latest main branch.

2. Update Package Versions:

Evaluate changes and adhere to Semantic Versioning (semver). Run the relevant command for major, minor or patch changes.

$ pnpm version:bump patch

To release a beta build run:

pnpm version:bump 1.0.0-beta.2

3. Update Package References:

Now the versions are bumped, but packages that depend on each other are still referencing the old version. Run this command to update all the references across the monorepo.

$ pnpm relink:deps

4. Commit and Pull Request:

Commit the changes. Create a pull request targeting the main branch.

5. Review and Merge:

Await PR approval, then merge it into main to integrate new versions.

6. Publish to NPM:

After merging, trigger the "Publish to NPM" workflow in the Actions tab.

7. Verify and Monitor:

Monitor the workflow progress in GitHub Actions. Confirm successful publication in the npm registry.

You're done!

License

Distributed under the Apache 2.0 License. See LICENSE for more information.

Articles
to learn more about the open-source concepts.

Resources
which are currently available to browse on.

mail [email protected] to add your project or resources here 🔥.

FAQ's
to know more about the topic.

mail [email protected] to add your project or resources here 🔥.

Queries
or most google FAQ's about Open-Source.

mail [email protected] to add more queries here 🔍.

More Sites
to check out once you're finished browsing here.

0x3d
https://www.0x3d.site/
0x3d is designed for aggregating information.
NodeJS
https://nodejs.0x3d.site/
NodeJS Online Directory
Cross Platform
https://cross-platform.0x3d.site/
Cross Platform Online Directory
Open Source
https://open-source.0x3d.site/
Open Source Online Directory
Analytics
https://analytics.0x3d.site/
Analytics Online Directory
JavaScript
https://javascript.0x3d.site/
JavaScript Online Directory
GoLang
https://golang.0x3d.site/
GoLang Online Directory
Python
https://python.0x3d.site/
Python Online Directory
Swift
https://swift.0x3d.site/
Swift Online Directory
Rust
https://rust.0x3d.site/
Rust Online Directory
Scala
https://scala.0x3d.site/
Scala Online Directory
Ruby
https://ruby.0x3d.site/
Ruby Online Directory
Clojure
https://clojure.0x3d.site/
Clojure Online Directory
Elixir
https://elixir.0x3d.site/
Elixir Online Directory
Elm
https://elm.0x3d.site/
Elm Online Directory
Lua
https://lua.0x3d.site/
Lua Online Directory
C Programming
https://c-programming.0x3d.site/
C Programming Online Directory
C++ Programming
https://cpp-programming.0x3d.site/
C++ Programming Online Directory
R Programming
https://r-programming.0x3d.site/
R Programming Online Directory
Perl
https://perl.0x3d.site/
Perl Online Directory
Java
https://java.0x3d.site/
Java Online Directory
Kotlin
https://kotlin.0x3d.site/
Kotlin Online Directory
PHP
https://php.0x3d.site/
PHP Online Directory
React JS
https://react.0x3d.site/
React JS Online Directory
Angular
https://angular.0x3d.site/
Angular JS Online Directory