{"id":48745000,"url":"https://github.com/kivia-observe/kivia-sdk-js","last_synced_at":"2026-04-13T11:00:58.786Z","repository":{"id":349602684,"uuid":"1202785691","full_name":"kivia-observe/kivia-sdk-js","owner":"kivia-observe","description":"Kivia Node.js sdk","archived":false,"fork":false,"pushed_at":"2026-04-11T14:57:54.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-12T10:18:07.235Z","etag":null,"topics":["logging"],"latest_commit_sha":null,"homepage":"https://kivia-observe.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kivia-observe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-06T11:55:52.000Z","updated_at":"2026-04-11T15:02:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"5d9ec1b6-7607-4489-a972-47c71d4eb0fd","html_url":"https://github.com/kivia-observe/kivia-sdk-js","commit_stats":null,"previous_names":["kivia-observe/kivia-sdk-js"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/kivia-observe/kivia-sdk-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivia-observe%2Fkivia-sdk-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivia-observe%2Fkivia-sdk-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivia-observe%2Fkivia-sdk-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivia-observe%2Fkivia-sdk-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kivia-observe","download_url":"https://codeload.github.com/kivia-observe/kivia-sdk-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kivia-observe%2Fkivia-sdk-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31749763,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logging"],"created_at":"2026-04-12T10:10:22.978Z","updated_at":"2026-04-13T11:00:58.776Z","avatar_url":"https://github.com/kivia-observe.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kivia TypeScript SDK\n\nThe Kivia TypeScript SDK is the official Node.js client for the Kivia observability platform. It allows Node.js developers using Express, Fastify, Hono, or Elysia to instantly track API request metrics, response times, and paths.\n\n## Installation\n\n```bash\nnpm install @kivia/sdk\n```\n\n## Quick Start (with Express)\n\n```typescript\nimport express from 'express';\nimport { KiviaClient } from '@kivia/sdk';\n\nconst app = express();\n\nconst kiviaClient = new KiviaClient({\n  apiKey: 'YOUR_KIVIA_API_KEY',\n});\n\n// Let Kivia track all your network traffic by setting this global middleware\napp.use(kiviaClient.logMiddleware());\n\napp.get('/hello', (req, res) =\u003e {\n  res.send('Hello from Kivia TS SDK!');\n});\n\napp.listen(3000, () =\u003e console.log('Server running on port 3000'));\n```\n\n## Quick Start (with NestJS)\n\nBecause NestJS runs on Express (or Fastify) under the hood, you can simply inject the SDK as a global middleware right in your `main.ts` bootstrap function!\n\n```typescript\n// main.ts\nimport { NestFactory } from '@nestjs/core';\nimport { AppModule } from './app.module';\nimport { KiviaClient } from '@kivia/sdk';\n\nasync function bootstrap() {\n  const app = await NestFactory.create(AppModule);\n\n  const kiviaClient = new KiviaClient({\n    apiKey: 'YOUR_KIVIA_API_KEY'\n  });\n\n  // Just apply it as global middleware!\n  app.use(kiviaClient.logMiddleware());\n\n  await app.listen(3000);\n}\nbootstrap();\n```\n\n## Quick Start (with Fastify Plugin)\n\nWe export a native Fastify plugin so you can easily encapsulate options and registration.\n\n```typescript\nimport Fastify from 'fastify';\nimport { kiviaFastifyPlugin } from '@kivia/sdk';\n\nconst fastify = Fastify({ logger: false });\n\n// Register as a native Fastify plugin\nfastify.register(kiviaFastifyPlugin, {\n  apiKey: 'YOUR_KIVIA_API_KEY'\n});\n\nfastify.get('/hello', async (request, reply) =\u003e {\n  return { message: 'Hello from Kivia TS SDK using Fastify Plugin!' };\n});\n\nfastify.listen({ port: 3000 });\n```\n\n## Quick Start (with Hono)\n\n```typescript\nimport { Hono } from 'hono';\nimport { kiviaHonoMiddleware } from '@kivia/sdk';\n\nconst app = new Hono();\n\napp.use('*', kiviaHonoMiddleware({\n  apiKey: 'YOUR_KIVIA_API_KEY',\n}));\n\napp.get('/hello', (c) =\u003e {\n  return c.json({ message: 'Hello from Kivia TS SDK using Hono!' });\n});\n\nexport default app;\n```\n\n## Quick Start (with Elysia)\n\n```typescript\nimport { Elysia } from 'elysia';\nimport { kiviaElysiaPlugin } from '@kivia/sdk';\n\nconst app = new Elysia()\n  .use(\n    kiviaElysiaPlugin({\n      apiKey: 'YOUR_KIVIA_API_KEY',\n    }),\n  );\n\napp.get('/hello', () =\u003e ({ message: 'Hello from Kivia TS SDK using Elysia!' }));\n\napp.listen(3000);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkivia-observe%2Fkivia-sdk-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkivia-observe%2Fkivia-sdk-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkivia-observe%2Fkivia-sdk-js/lists"}