
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@schematichq/schematic-typescript-cloudflare
Advanced tools
Cloudflare KV cache adapter for Schematic SDK.
npm install @schematichq/schematic-typescript-cloudflare
import { SchematicClient, type CheckFlagWithEntitlementResponse } from "@schematichq/schematic-typescript-node";
import { CloudflareKVCache } from "@schematichq/schematic-typescript-cloudflare";
// Inside a Cloudflare Worker
export default {
async fetch(request, env, ctx) {
// Create a CloudflareKVCache instance
const cache = new CloudflareKVCache<CheckFlagWithEntitlementResponse>(env.MY_KV_NAMESPACE, {
ttl: 1000 * 60 * 60, // 1 hour
});
// Initialize Schematic with the cache
const schematic = new SchematicClient({
apiKey: env.SCHEMATIC_API_KEY,
cacheProviders: {
flagChecks: [cache],
}});
// Your application logic...
}
};
interface KVNamespace {
get<T>(key: string, type: 'json'): Promise<T | null>;
put(key: string, value: string, options?: { expirationTtl?: number }): Promise<void>;
delete(key: string): Promise<void>;
list(options?: { prefix?: string }): Promise<{ keys: Array<{ name: string }> }>;
}
The interface matches the Cloudflare Workers KV API, including support for typed get<T>() operations for enhanced type safety.
class CloudflareKVCache<T> {
constructor(
kvNamespace: KVNamespace,
options?: {
keyPrefix?: string; // Default: 'schematic:'
ttl?: number; // Default: 5000ms
}
);
get(key: string): Promise<T | undefined>;
set(key: string, value: T, ttlOverride?: number): Promise<void>;
delete(key: string): Promise<void>;
deleteAllExcept(keysToKeep: string[]): Promise<void>;
clear(): Promise<void>;
}
MIT
FAQs
Cloudflare KV adapter for Schematic SDK
The npm package @schematichq/schematic-typescript-cloudflare receives a total of 107 weekly downloads. As such, @schematichq/schematic-typescript-cloudflare popularity was classified as not popular.
We found that @schematichq/schematic-typescript-cloudflare demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.