npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

graphweaver

v2.8.1

Published

A tool for managing, running, debugging and building Graphweaver projects

Downloads

1,374

Readme

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.generated.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.