Skip to main content
Official Client SDKs

Native libraries for your favorite stacks.

First-class SDKs and package libraries for Node.js, Python, PHP, Laravel, Go, and Rust. Simple installation, zero low-level carrier routing configuration, and complete type safety.

Package
npm / pip / composer
100%
Type Safe
< 5 Min
Integration Time
PACKAGE MANAGER // INSTALL
OFFICIAL
// Install via Package Manager
$ npm install @nepal-otp/sdk v1.2.0
Alternative: composer require nepal-otp/sdk
index.ts TypeScript Ready
import { NepalOTP } from const client = new NepalOTP({
  apiKey: process.env.NEPAL_OTP_API_KEY
});

await client.otp.send({
  phoneNumber: 
Supported Stacks

Official Libraries & Packages

Maintained packages for the tech stacks used by software teams across Nepal.

// FILTERS
All Stacks JavaScript / Node PHP / Laravel Python Go Mobile / Flutter
npm Node.js / TS

Node.js / TypeScript

Full TypeScript definitions, promise-based API methods, and automatic retries for Express, Next.js, and NestJS.

npm install @nepal-otp/sdk
PyPI Python 3.8+

Python SDK

Async and synchronous clients compatible with Django, FastAPI, and Flask. Built-in request validation.

pip install nepal-otp
Composer PHP 8.2+ / Laravel

PHP & Laravel Package

Laravel Service Provider, Facades, and config published bindings out of the box.

composer require nepal-otp/sdk
Go Module Go 1.20+

Go Module

Idiomatic Go client with context handling, custom HTTP transport configuration, and concurrency safety.

go get github.com/nepal-otp/sdk-go
Crates.io Rust Edition 2021

Rust Crate

High-performance tokio-async Rust client crate with zero memory overhead and strict serialization rules.

cargo add nepal-otp
NuGet .NET 8.0+

C# / .NET SDK

Native .NET client library supporting dependency injection and HttpClient pooling.

dotnet add package NepalOTP
Developer Experience

Designed for developer delight.

Every package is crafted to minimize boilerplate and prevent integration runtime errors.

01 // Types

Type Safety & Auto-complete

Full IDE auto-completion for request payloads, configuration options, and API error definitions.

02 // Resiliency

Built-in Circuit Breakers

SDKs handle carrier network retries, timeout management, and graceful exception handling automatically.

03 // Size

Zero Heavy Dependencies

Lightweight footprint (< 15KB) utilizing native runtime HTTP clients without bloated third-party dependencies.

Start integrating today.

Choose your stack, install our package, and start delivering OTPs in minutes.