Gathering detailed insights and metrics for @redis/json
Gathering detailed insights and metrics for @redis/json
Gathering detailed insights and metrics for @redis/json
Gathering detailed insights and metrics for @redis/json
@redis/search
This package provides support for the [RediSearch](https://redis.io/docs/interact/search-and-query/) module, which adds indexing and querying support for data stored in Redis Hashes or as JSON documents with the [RedisJSON](https://redis.io/docs/data-type
@node-redis/json
This package provides support for the [RedisJSON](https://redisjson.io) module, which adds JSON as a native data type to Redis. It extends the [Node Redis client](https://github.com/redis/node-redis) to include functions for each of the RedisJSON command
@jsonjoy.com/json-pack
High-performance JSON serialization library
redis-json
A wrapper library to store JSON Objects in redis-hashsets and retrieve it back as JSON objects
npm install @redis/json
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.9
Supply Chain
93
Quality
92.8
Maintenance
100
Vulnerability
100
License
TypeScript (99.41%)
JavaScript (0.58%)
Dockerfile (0.01%)
Total Downloads
227,290,579
Last Day
171,133
Last Week
3,127,582
Last Month
13,226,693
Last Year
122,129,934
MIT License
17,210 Stars
2,150 Commits
1,908 Forks
294 Watchers
23 Branches
273 Contributors
Updated on Jun 16, 2025
Minified
Minified + Gzipped
Latest Version
5.5.6
Package Id
@redis/json@5.5.6
Unpacked Size
106.81 kB
Size
14.55 kB
File Count
110
NPM Version
10.9.2
Node Version
23.11.0
Published on
Jun 06, 2025
Cumulative downloads
Total Downloads
Last Day
0.4%
171,133
Compared to previous day
Last Week
-2.8%
3,127,582
Compared to previous week
Last Month
5.5%
13,226,693
Compared to previous month
Last Year
69.6%
122,129,934
Compared to previous year
1
1
This package provides support for the RedisJSON module, which adds JSON as a native data type to Redis.
Should be used with redis
/@redis/client
.
:warning: To use these extra commands, your Redis server must have the RedisJSON module installed.
For a complete example, see managing-json.js
in the examples folder.
The JSON.SET
command stores a JSON value at a given JSON Path in a Redis key.
Here, we'll store a JSON document in the root of the Redis key "mydoc
":
1await client.json.set('noderedis:jsondata', '$', { 2 name: 'Roberta McDonald', 3 pets: [{ 4 name: 'Rex', 5 species: 'dog', 6 age: 3, 7 isMammal: true 8 }, { 9 name: 'Goldie', 10 species: 'fish', 11 age: 2, 12 isMammal: false 13 }] 14});
For more information about RedisJSON's path syntax, check out the documentation.
With RedisJSON, we can retrieve all or part(s) of a JSON document using the JSON.GET
command and one or more JSON Paths. Let's get the name and age of one of the pets:
1const results = await client.json.get('noderedis:jsondata', { 2 path: [ 3 '.pets[1].name', 4 '.pets[1].age' 5 ] 6});
results
will contain the following:
1 { '.pets[1].name': 'Goldie', '.pets[1].age': 2 }
RedisJSON includes commands that can atomically update values in a JSON document, in place in Redis without having to first retrieve the entire document.
Using the JSON.NUMINCRBY
command, we can update the age of one of the pets like this:
1await client.json.numIncrBy('noderedis:jsondata', '.pets[1].age', 1);
And we can add a new object to the pets array with the JSON.ARRAPPEND
command:
1await client.json.arrAppend('noderedis:jsondata', '.pets', { 2 name: 'Robin', 3 species: 'bird', 4 age: 1, 5 isMammal: false 6});
No vulnerabilities found.
Reason
30 commit(s) and 15 issue activity found in the last 90 days -- score normalized to 10
Reason
security policy file detected
Details
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
SAST tool is run on all commits
Details
Reason
7 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 2
Details
Reason
Found 5/30 approved changesets -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-06-09
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More