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

hasura-auto-tracker

v2.3.1

Published

Automatically configure Hasura tracking and generate additional tracked SQL views, e.g. views which can expose JSON data as SQL columns

Downloads

38

Readme

hasura-auto-tracker

NPM

License: GPL v3

Source Code

https://github.com/axis-tech/hasura-auto-tracker

Introduction

Configure Hasura to track tables, views and functions using a configuration driven process that fits perfectly into your Continuous Integration or Continuous Delivery piepline.

What's the big deal?

We all know how awesome Hasura is and how easy it is to fire up the user interface and configure the tracking. But what if you want to control and configure the tracking as part of an automated build, test and deploy cycle?

Hasura can read values from JSON objects stored in SQL tables, but the values are not returned as their most appropraite type, i.e the values are not typed as integers and floats etc.

Also, what if as part of your build process, you start with a clean database, want to inject your test data and run various scripts? You would have to restort to using different tools to configure hasura and then run your scripts.

hasura-auto-tracker to the rescue!

hasura-auto-tracker (HAT) can be used anytime you want to configure the tracking of tables, views and functions, and don't want to interact with a user-interface, i.e. you want to use it as part of a scripted/automated process, or you want to build the code directly into your own tools / apps.

HAT not only configures the tracking, but you can also control the names of realtionships that are created between objects, such as customers and their orders. This means that you can optimise the names of relationships and therefore increase the readbility of your queries. This feature alone is awesome!

Finally, HAT let's you easily create views which can extract values from JSON objects and present them as correctly typed values. So now you can have integers, floats, dates, anything, as a SQL type, instead of just a string.

Example Folder

You can install HAT as an npm package, or pull the code from github.

Refer to the example folder, and particularly the package.json. You will see a docker-compose file which will create a test database, so you can put HAT through its paces, and you will see ways to run HAT from your own code, or even from the command line.