Small, dependency-light Node.js utilities for backend & IoT work — the boring building blocks you rewrite in every project, done once. Each is published separately on npm under the @digta scope, has TypeScript types, and works with both import and require.
| Package | Install | What it does |
|---|---|---|
| @digta/logger | npm i @digta/logger |
Colored console logger — timestamps, file output, log rotation, JSON & production modes. Zero deps. |
| @digta/config | npm i @digta/config |
Config manager — load / save / watch JSON, YAML, and .env with one API. |
| @digta/network | npm i @digta/network |
TCP / WebSocket client with autoreconnect, plus a tiny HTTP API client with retries. |
import logger from "@digta/logger";
logger.success("PLC Connected"); // [09:31:22] SUCCESS PLC Connected
import createConfig from "@digta/config";
const cfg = createConfig("./config.yaml").load();
import { createConnection, api } from "@digta/network";
const conn = createConnection({ url: "tcp://192.168.1.10:502" }).connect();
const { data } = await api.get("https://example.com/health");See each package's README for the full API.
Node.js 14+. @digta/logger has no dependencies; @digta/config pulls in js-yaml; @digta/network pulls in ws.
Each package is self-contained:
cd logger && npm test # or config / networkMIT © digta