Skip to main content

SDKs de Camarauth

Camarauth proporciona SDKs oficiales para las plataformas más populares. Cada SDK está diseñado para facilitar la integración de autenticación por WhatsApp en tus aplicaciones.

SDKs disponibles

Node.js

DisponibleBackend completo con Express y Socket.IO. Incluye:
  • Servidor HTTP/WebSocket
  • Webhooks para Evolution API
  • Gestión de PINs
  • Tokens JWT
  • Soporte para PostgreSQL
npm install @camarauth/sdk

React

DisponibleHooks y componentes para React. Incluye:
  • usePinAuth - Hook principal
  • usePinGenerator - Generación de PINs
  • useCountdown - Temporizador
  • useAutoRegeneration - Regeneración automática
npm install @camarauth/sdk

Python

Próximamente 🚧Backend con FastAPI/Flask:
  • Servidor ASGI/WSGI
  • WebSocket support
  • Webhooks
  • Async/await
# pip install camarauth-sdk
# Próximamente...

Go

Próximamente 🚧Backend de alto rendimiento:
  • Servidor HTTP nativo
  • Goroutines para concurrencia
  • WebSocket con gorilla/websocket
  • Bajo consumo de recursos
# go get github.com/camarauth/sdk
# Próximamente...

Rust

Próximamente 🚧Backend de máximo rendimiento:
  • Actix-web o Axum
  • Tokio para async
  • Type-safe con Serde
  • WebAssembly support
# cargo add camarauth-sdk
# Próximamente...

Java

Próximamente 🚧Backend empresarial:
  • Spring Boot integration
  • WebFlux para reactive
  • Jakarta EE support
  • Maven y Gradle
<!-- Próximamente... -->

.NET

Próximamente 🚧Para el ecosistema Microsoft:
  • ASP.NET Core
  • SignalR para WebSockets
  • NuGet package
  • C# idiomatic
# dotnet add package Camarauth.SDK
# Próximamente...

PHP

Próximamente 🚧Para aplicaciones PHP:
  • Laravel integration
  • Symfony bundle
  • Composer package
  • PSR standards
# composer require camarauth/sdk
# Próximamente...

Arquitectura común

Todos los SDKs siguen la misma arquitectura conceptual:
┌─────────────────────────────────────────────┐
│              Frontend SDK                    │
│  ┌─────────────┐    ┌─────────────────────┐ │
│  │  PIN Generator│──▶│  WebSocket Client   │ │
│  └─────────────┘    └─────────────────────┘ │
│         │                   │               │
│         ▼                   ▼               │
│  ┌─────────────────────────────────────┐   │
│  │  Auth Orchestrator (usePinAuth)    │   │
│  └─────────────────────────────────────┘   │
└─────────────────────────────────────────────┘

                      ▼ WebSocket/HTTP
┌─────────────────────────────────────────────┐
│              Backend SDK                     │
│  ┌─────────────┐    ┌─────────────────────┐ │
│  │  PIN Manager │    │  WebSocket Server   │ │
│  └─────────────┘    └─────────────────────┘ │
│         │                   │               │
│         ▼                   ▼               │
│  ┌─────────────┐    ┌─────────────────────┐ │
│  │   JWT Utils │    │  Evolution Webhook  │ │
│  └─────────────┘    └─────────────────────┘ │
└─────────────────────────────────────────────┘

Contribuir

¿Quieres contribuir con un SDK para tu lenguaje favorito?
  1. Revisa nuestra guía de contribución
  2. Únete a nuestra comunidad en Discord
  3. Abre un issue para discutir la implementación

Roadmap

  • Q1 2025: Python SDK
  • Q2 2025: Go SDK
  • Q3 2025: Rust SDK, Java SDK
  • Q4 2025: .NET SDK, PHP SDK

Soporte