8000 GitHub - tuxology/cpgqls-client-js: JS library for querying Joern CPGQL Server
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tuxology/cpgqls-client-js

Repository files navigation

cpgqls-client

cpgqls-client is a simple Javascript library for communicating with an instance of a Code Property Graph server

Install

npm install @tuxology/cpgqls-client

Use

Make sure Joern has been started in server mode via ./joern --server

client = new CpgqlsClientLib.CpgqlsClient('localhost:8080');
client.execute(
  new CpgqlsClientLib.JoernQuery(
    'cpg.method.name.l',
      data => {
        console.log(data);
    },
  ), 
);

Build

yarn install
yarn build

Testing

Start Chrome/Chromium with CORS disabled and make sure Joern server is running

chrome --disable-web-security --user-data-dir="/tmp" &
yarn serve

Click on the served page. Browse to index.html page in examples directory and connect to localhost:8080 Fire up some Joern queries as you do in Joern shell. Refer Joern Docs for more info.

About

JS library for querying Joern CPGQL Server

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  
0