
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
gremlin-serverless
Advanced tools
A stateless Gremlin driver of Apache TinkerPop™ , optimized for serverless functions
A stateless Gremlin driver of Apache TinkerPop™ , optimized for serverless functions.
npm install gremlin-serverless --save
gremlin-serverless is a simple wrapper of Websocket using rxjs observable.
Socket will close on error and success, this way serverless functions could execute a statless query.
Socket endpoint address should be provided with protocol, port and path embedded. Note the /gremlin, see Revised URL for websockets in 3.2.2
import { createClient } from "gremlin-serverless";
/**
* Microsoft Azure exmaple
* Gremlin Endpoint
* https://exmaple.gremlin.cosmosdb.azure.com:443/
*/
const execute = createClient({
address: "wss://exmaple.gremlin.cosmosdb.azure.com:443/gremlin",
username: "user",
password: "pwd"
});
const testmsg = {
requestId: uuid.v1(),
processor: "",
op: "eval",
args: {
gremlin: "g.V()",
bindings: {},
accept: "application/json",
language: "gremlin-groovy"
}
};
const result$ = execute(testmsg)
const disposable = result$.subscribe(
... //rxjs subscription
)
Server response with statuscode other than success will be treated as error, a 'response' property will contain the response.
{ Error: Execution failed
at ...
response:
{ requestId: '4085bf30',
status:
{ code: 597,
attributes: [Object],
message: '\r\n\nActivityId : 6cad836f-3c\nExceptionType :GraphCompileException\nExceptionMessage :\r\n\tGremlin Query Compilation Error: Script compileerror: Missing \')\' @ line 1, column 4.\nSource : Graphs\n\tGremlinRequestId : 6cad836f-\n\tContext : graphcompute\n\tScope : graphparse-translate-outer\n\tGraphStatusCode : ScriptEvaluationError\n\tHResult : 0x80131500\r\n' },
result: { data: null, meta: {} } } }
FAQs
A stateless Gremlin driver of Apache TinkerPop™ , optimized for serverless functions
We found that gremlin-serverless demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.