{"id":42766475,"url":"https://github.com/vapi4k/vapi4k","last_synced_at":"2026-04-08T21:03:35.336Z","repository":{"id":260123372,"uuid":"867257277","full_name":"vapi4k/vapi4k","owner":"vapi4k","description":"Vapi4k is a Ktor plugin and a Kotlin DSL that makes it easy to define, deploy, and maintain Vapi applications","archived":false,"fork":false,"pushed_at":"2026-04-01T19:42:36.000Z","size":2439,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-02T06:43:29.293Z","etag":null,"topics":["kotlin","vapi"],"latest_commit_sha":null,"homepage":"https://vapi4k.com","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vapi4k.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2024-10-03T18:12:26.000Z","updated_at":"2026-04-01T19:20:12.000Z","dependencies_parsed_at":"2025-06-26T18:32:19.935Z","dependency_job_id":null,"html_url":"https://github.com/vapi4k/vapi4k","commit_stats":null,"previous_names":["vapi4k/vapi4k"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/vapi4k/vapi4k","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapi4k%2Fvapi4k","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapi4k%2Fvapi4k/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapi4k%2Fvapi4k/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapi4k%2Fvapi4k/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vapi4k","download_url":"https://codeload.github.com/vapi4k/vapi4k/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vapi4k%2Fvapi4k/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31573789,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["kotlin","vapi"],"created_at":"2026-01-29T21:13:00.030Z","updated_at":"2026-04-08T21:03:35.319Z","avatar_url":"https://github.com/vapi4k.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Vapi4k\n\n[![Maven Central](https://img.shields.io/maven-central/v/com.vapi4k/vapi4k-core)](https://central.sonatype.com/namespace/com.vapi4k)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=vapi4k_vapi4k\u0026metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=vapi4k_vapi4k)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=vapi4k_vapi4k\u0026metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=vapi4k_vapi4k)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/2ec91457b7814a73a7ac70b9e1290f1e)](https://app.codacy.com/gh/vapi4k/vapi4k/dashboard?utm_source=gh\u0026utm_medium=referral\u0026utm_content=\u0026utm_campaign=Badge_grade)\n[![Kotlin version](https://img.shields.io/badge/kotlin-2.3.20-red?logo=kotlin)](http://kotlinlang.org)\n[![ktlint](https://img.shields.io/badge/ktlint%20code--style-%E2%9D%A4-FF4081)](https://pinterest.github.io/ktlint/)\n![build workflow](https://github.com/vapi4k/vapi4k/actions/workflows/build-all-docs.yml/badge.svg?branch=docs)\n\nVapi4k is a [Ktor](https://ktor.io) plugin and a [Kotlin DSL](https://kotlinlang.org/docs/type-safe-builders.html)\nthat makes it easy to define, deploy, and maintain [Vapi](https://vapi.ai) voice AI applications.\n\n## Features\n\n- **Type-safe Kotlin DSL** for configuring assistants, tools, models, voices, and transcribers\n- **Three application types**: inbound calls, outbound calls, and browser-based web interactions\n- **Multi-provider support**: 15 model providers (OpenAI, Anthropic, Google, Groq, etc.), 18 voice providers (ElevenLabs,\n  Cartesia, Deepgram, etc.), and 12 transcriber providers\n- **Flexible tool system**: annotation-based service tools, imperative manual tools, and external HTTP tools\n- **Squad support**: multi-assistant configurations with transfer destinations\n- **Built-in admin dashboard** with cache inspection, live log streaming, and tool validation (non-production)\n- **Optional database persistence** for message history (PostgreSQL via Exposed ORM)\n\n## Installation\n\nAdd the dependency to your `build.gradle.kts`:\n\n```kotlin\ndependencies {\n  implementation(\"com.vapi4k:vapi4k-core:1.7.0\")\n\n  // Optional: database persistence\n  implementation(\"com.vapi4k:vapi4k-dbms:1.7.0\")\n}\n```\n\n## Quick Start\n\nInstall the `Vapi4k` plugin in your Ktor application and define an inbound call handler:\n\n```kotlin\nfun Application.module() {\n  install(Vapi4k) {\n    inboundCallApplication {\n      serverPath = \"/inboundApp\"\n      serverSecret = \"12345\"\n\n      onAssistantRequest { requestContext: RequestContext -\u003e\n        assistant {\n          firstMessage = \"Hello! How can I help you today?\"\n\n          openAIModel {\n            modelType = OpenAIModelType.GPT_4_TURBO\n            systemMessage = \"You're a polite AI assistant.\"\n          }\n\n          deepgramVoice {\n            voiceIdType = DeepGramVoiceIdType.LUNA\n          }\n        }\n      }\n    }\n  }\n}\n```\n\n### Adding Tools\n\nDefine tools using the `@ToolCall` and `@Param` annotations:\n\n```kotlin\nclass WeatherService {\n  @ToolCall(\"Look up the weather for a city\")\n  fun getWeather(\n    @Param(\"City name\") city: String,\n    @Param(\"State name\") state: String,\n  ) = \"The weather in $city, $state is sunny\"\n}\n```\n\nThen register tools on a model:\n\n```kotlin\nopenAIModel {\n  modelType = OpenAIModelType.GPT_4_TURBO\n  systemMessage = \"You are a helpful weather assistant.\"\n  tools {\n    serviceTool(WeatherService())\n  }\n}\n```\n\n## Modules\n\n| Module           | Description                                                     |\n|------------------|-----------------------------------------------------------------|\n| **vapi4k-core**  | Ktor plugin, DSL, and Vapi integration                          |\n| **vapi4k-dbms**  | Optional database persistence (HikariCP + PostgreSQL + Exposed) |\n| **vapi4k-utils** | Shared utilities with zero external dependencies                |\n\n## Testing\n\nTests use [Kotest 6](https://kotest.io) with `StringSpec` and Kotest assertions, plus the Ktor test host for\nintegration tests. Run with:\n\n```bash\n./gradlew test\n```\n\n## Documentation\n\n- [Vapi4k Documentation](https://vapi4k.com/overview.html)\n- [KDocs](https://vapi4k.com/kdocs/)\n- [Getting Started Template](https://github.com/vapi4k/vapi4k-template)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapi4k%2Fvapi4k","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvapi4k%2Fvapi4k","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvapi4k%2Fvapi4k/lists"}