MCPcopy Index your code
hub / github.com/apex/logs-js

github.com/apex/logs-js @v1.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.2.0 ↗ · + Follow
105 symbols 138 edges 1 files 37 documented · 35%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

JavaScript client for Apex Logs with support for Node.js, Deno, and the browser.

Installation

npm install --save apex-logs

Node

Here's an example of usage in Node or the browser using the apex-logs NPM package:

const { Client } = require('apex-logs')

const client = new Client({
  url: '<ENDPOINT>',
  authToken: '<TOKEN>'
})

async function run() {
  const { projects } = await client.getProjects()
  console.log(projects)

  const { alerts } = await client.getAlerts({ projectId: 'production' })
  console.log(alerts)
}

run()

Deno

Here's an example of usage in Deno:

import { Client } from 'https://deno.land/x/apex_logs/client.ts'

const client = new Client({
  url: '<ENDPOINT>',
  authToken: '<TOKEN>'
})

const { projects } = await client.getProjects()
console.log(projects)

const { alerts } = await client.getAlerts({ projectId: 'ping_production' })
console.log(alerts)

Resources

To learn more about Apex Logs visit the documentation, and to contribute to this client visit the github.com/apex/rpc project which is used to generate this client.

Extension points exported contracts — how you extend this code

Alert (Interface)
(no doc)
client.ts
BooleanFieldStat (Interface)
(no doc)
client.ts
DiscoveredField (Interface)
(no doc)
client.ts
Event (Interface)
(no doc)
client.ts
InstanceConfig (Interface)
(no doc)
client.ts

Core symbols most depended-on inside this repo

call
called by 33
client.ts
constructor
called by 0
client.ts
constructor
called by 0
client.ts
decoder
called by 0
client.ts
addAlert
called by 0
client.ts
addEvents
called by 0
client.ts
addNotification
called by 0
client.ts
addProject
called by 0
client.ts

Shape

Interface 64
Method 36
Class 4
Function 1

Languages

TypeScript100%

Modules by API surface

client.ts105 symbols

For agents

$ claude mcp add logs-js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact