Registry / database / tedis
library0.1.12jsnpmunverified

Tedis is a Redis client for Node.js and browser that leverages TypeScript and async/await for type-safe, promise-based interactions. Current stable version is 0.1.12 with low release cadence. It differentiates itself by supporting both Redis and ioredis protocol with full TypeScript types. Key features include automatic reconnection, pipelining, and cluster support. However, it is not widely adopted and may lack recent updates.

npm install tedis
INSTALL
IMPORT
SIG · TEDIS
T
tedis
databasejavascriptv0.1.12
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tedis
import { Tedis } from 'tedis'
const Tedis = require('tedis')
ESM-only import; TypeScript types included.
TedisPool
import { TedisPool } from 'tedis'
import TedisPool from 'tedis'
Named export, not default.
TedisCluster
import { TedisCluster } from 'tedis'
const { TedisCluster } = require('tedis')
For cluster support; available via named export.

Connects to Redis, sets and gets a key, then closes the connection.

import { Tedis } from 'tedis'; const client = new Tedis({ host: process.env.REDIS_HOST ?? '127.0.0.1', port: Number(process.env.REDIS_PORT) ?? 6379, password: process.env.REDIS_PASSWORD ?? '' }); async function main() { await client.set('key', 'value'); const val = await client.get('key'); console.log(val); // 'value' await client.close(); } main().catch(console.error);
Debug
Known issues
gotchaTedis does not support Redis 6 ACL authentication (username). Only password authentication via AUTH command is supported.
fix
Use a different client if you need Redis 6 ACL auth.
affects: <=0.1.12
gotchaImporting from 'tedis' requires a bundler if used in browser due to Node.js 'net' module usage.
fix
Use a bundler with Node polyfills or use in Node.js environment only.
affects: >=0.1.0
deprecatedThe 'new' keyword is required to instantiate Tedis; omitting it may cause issues.
fix
Always use `new Tedis({...})`
affects: >=0.1.0
Errors
Common errors & fixes
Error: connect ECONNREFUSED 127.0.0.1:6379
Redis server not running or incorrect host/port.
fix
Start Redis server or check connection configuration.
TypeError: Tedis is not a constructor
Forgetting 'new' keyword or incorrect import (e.g., default import instead of named).
fix
Use 'new Tedis(...)' or correct import: `import { Tedis } from 'tedis'`
The term 'tedis' is not recognized (Windows CMD)
Global install of CLI tool may be missing or not in PATH.
fix
Install globally: `npm install -g tedis` or ensure PATH includes npm global directory.
Upgrade
Version history
0.1.12latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
16
Meta
2
OpenAI (training)
1
Resources
packagetedis
tedis — npm install tedis · libregistry