New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@tago-io/sdk

Package Overview
Dependencies
Maintainers
3
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tago-io/sdk

TagoIO SDK for JavaScript in the browser and Node.js

latest
npmnpm
Version
12.3.2
Version published
Weekly downloads
1.7K
-18%
Maintainers
3
Weekly downloads
 
Created
Source

TagoIO

TagoIO JavaScript SDK

Official TagoIO SDK for JavaScript. Works with Node.js, browsers, Deno, and Bun.

Installation

Node.js and Bun

npm install @tago-io/sdk
# or: pnpm add @tago-io/sdk

Deno

deno add @tago-io/sdk

Quick example

Send and read device data:

// ESM (recommended)
import { Device } from "@tago-io/sdk";

// CommonJS
// const { Device } = require("@tago-io/sdk");

const myDevice = new Device({ token: "00000000-2ec4-11e6-a77d-991b8f63b767" });

const myData = {
  variable: "temperature",
  location: { lat: 42.2974279, lng: -85.628292 },
  time: new Date(),
  unit: "C",
  value: 63,
};

async function sendMyData() {
  const result = await myDevice.sendData(myData);
  console.log(result);
  // 1 Data Added
}

async function getMyData() {
  const result = await myDevice.getData({ variables: ["temperature"], query: "last_item" });
  console.info("Current Temperature is:", result[0] ? result[0].value : "N/A");
  // Current Temperature is: 63
}

Documentation

  • SDK documentation
  • TagoIO docs
  • TagoIO website
  • Releases

Requirements

RuntimeESMCommonJSVersion
Node.jsyesyes22+
BrowseryesnoModern
Denoyesno2.0+
Bunyesyes1.0+

Contributing

See CONTRIBUTING.md. Report security issues through GitHub Security Advisories, not the public issue tracker.

License

This repository is licensed under the Apache License 2.0.

TagoIO Inc. retains all rights to the TagoIO name, logo, and branding assets. These materials are not covered under the Apache License. See LICENSE.md.

Built by the TagoIO team. Software licensed under Apache-2.0. TagoIO logos and branding are not covered by Apache-2.0; see Copyright Notice in LICENSE.md.

Keywords

tago

FAQs

Package last updated on 18 Aug 2026

Related posts