npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

tina-ai-api

v1.0.11

Published

Biblioteca Node.js para integração com a API Tina AI

Downloads

12

Readme

tina-ai-api

Biblioteca Node.js para comunicação simples com a API da Tina, uma assistente virtual baseada em IA.


Instalação

npm install tina-ai-api


---

Uso

const { createLib } = require('tina-ai-api');
const tina = createLib();

// Usar chat
async function exemploChat() {
  const resposta = await tina.chat({ message: "Olá, Tina!", userId: "usuario123" });
  console.log(resposta);
}
exemploChat();

// Usar análise de imagem
async function exemploAnalyzeImage() {
  const resposta = await tina.analyzeImage({
    imagePath: true,
    path: "./imagens/hello.png",
    prompt: "Descreva esta imagem"
  });
  console.log(resposta);
}
exemploAnalyzeImage();


---

API

chat({ message, userId })

Envia uma mensagem para a Tina e recebe a resposta.

message (string): Texto da mensagem para a Tina.

userId (string): Identificador único do usuário.


Retorna: Promise<string> com a resposta da Tina.


---

analyzeImage({ imageBase64, imageUrl, imagePath, path, prompt })

Envia uma imagem para análise. Você deve fornecer ao menos um dos seguintes:

imageBase64 (string): Imagem em base64.

imageUrl (string): URL pública da imagem.

imagePath (boolean) e path (string): caminho local para arquivo de imagem.


prompt (string) é opcional e define a descrição que a IA deve gerar.

Retorna: Promise<string> com a descrição gerada.


---

imageGen()

Funcionalidade em desenvolvimento. Atualmente gera erro se usada.


---

Sobre as Chaves de API

Esta biblioteca não exige que você informe nenhuma chave de API (API Key) ao usá-la.
Todas as autenticações e chaves necessárias já estão protegidas e configuradas no backend da API pública da Tina, que você acessa via URL.

Isso significa que você só precisa chamar os métodos fornecidos (chat, analyzeImage, etc.) passando os parâmetros necessários, sem se preocupar com tokens ou segredos.


---

Vantagens

Facilidade de uso: Sem necessidade de configurar chaves no seu código.

Segurança: As chaves ficam protegidas no servidor, não expostas no cliente.

Pronto para usar: Basta instalar a biblioteca e começar a conversar com a Tina.



---

Licença

MIT License - Copyright (c) Eliobros Tech 2025
Veja o arquivo LICENSE para detalhes.


---

Contato

Se tiver dúvidas, envie um e-mail para [email protected]