
Research
/Security News
Malicious Chrome Extension Performs Hidden Affiliate Hijacking
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.
@gramio/storage
Advanced tools
Core of storage adapters.
Read more in documentation.
It is very simple to write your adapter!
It is enough to return the object with the required methods and use the methods of the solution you have chosen for the adapter. (for example, ioredis)
import type { Storage } from "@gramio/storage";
import ThirdPartyStorage, { type ThirdPartyStorageOptions } from "some-library";
export interface MyOwnStorageOptions extends ThirdPartyStorageOptions {
/** add new property to options */
some?: number;
}
export function myOwnStorage(options: MyOwnStorageOptions = {}): Storage {
const storage = new ThirdPartyStorage(options);
return {
async get(key) {
const data = await storage.get(key);
return data ? JSON.parse(data) : undefined;
},
async has(key) {
return storage.has(key);
},
async set(key, value) {
await storage.set(key, JSON.stringify(value));
},
async delete(key) {
return storage.delete(key);
},
};
}
[!IMPORTANT] If you want to publish your adapter, we recommend that you follow the convention and name it starting with
gramio-storageand addgramio+gramio-storagekeywords in your package.json
It is also very easy to work with storage adapters in your plugin!
Everything we need is already in @gramio/storage.
import { Plugin } from "gramio";
import { type Storage, inMemoryStorage } from "@gramio/storage";
export interface MyOwnPluginOptions {
storage?: Storage;
}
export function myOwnPlugin(options: MyOwnPluginOptions = {}) {
// use in memory storage by default
const storage = options.storage ?? inMemoryStorage();
return new Plugin("gramio-example");
}
[!IMPORTANT] You can scaffold this example by create-gramio-plugin
FAQs
Storage core for GramIO with in memory built-in
The npm package @gramio/storage receives a total of 109 weekly downloads. As such, @gramio/storage popularity was classified as not popular.
We found that @gramio/storage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A Chrome extension claiming to hide Amazon ads was found secretly hijacking affiliate links, replacing creators’ tags with its own without user consent.

Security News
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.