
Security News
Node.js Drops Bug Bounty Rewards After Funding Dries Up
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.
@actkit/core
Advanced tools
Strict query-key & tag factory for Next.js Server Actions (RSC).
Generate client query keys (e.g., React Query) and server cache tags (revalidateTag) from a single schema to avoid drift and typos.
string | number | boolean (no objects/arrays)1/0, tags use "1"/"0"This package is part of actkit (mutation “rail”: optimistic → server → cache invalidation → reconcile/rollback → retry/dedupe). In v0.0.1, only
@actkit/coreis published.
pnpm add @actkit/core
# or npm i @actkit/core
// lib/keys.ts
import { defineKeyFactory } from '@actkit/core';
export const { tags: t, keys: qk } = defineKeyFactory({
posts: { key: 'posts' },
post: { key: 'post', params: ['id'] as const },
} as const);
// Examples
t.posts(); // 'posts'
t.post({ id: 1 }); // 'post:1'
qk.posts(); // ['posts']
qk.post({ id: 1 }); // ['post', 1]
// server/queries.ts
import { unstable_cache as cache } from 'next/cache';
import { t } from '@/lib/keys';
import { listPosts } from '@/server/db';
export const getPosts = cache(() => listPosts(), ['posts.list'], {
tags: [t.posts()],
});
// app/actions/posts.ts
'use server';
import { revalidateTag } from 'next/cache';
import { t } from '@/lib/keys';
import { createPost } from '@/server/db';
export async function createPostAction(input: { title: string; body: string }) {
const row = await createPost(input);
revalidateTag(t.posts());
return row;
}
// invalidate
queryClient.invalidateQueries({ queryKey: qk.posts() });
// query
useQuery({ queryKey: qk.post({ id }), queryFn: fetchPost });
defineKeyFactory(schema)Create tags (server invalidation strings) and keys (client cache keys) from one schema.
type KeyAtom = string | number | boolean;
interface ResourceSpec<P extends readonly string[] | undefined = undefined> {
key: string; // base namespace, e.g. 'post'
params?: P; // ordered param names, e.g. ['id'] as const
separator?: string; // tag joiner (default ':') → 'post:123'
}
const { tags, keys } = defineKeyFactory({
post: { key: 'post', params: ['id'] as const },
items: { key: 'items' }, // 0-arity
} as const);
// Usage
tags.post({ id: 123 }); // 'post:123'
keys.post({ id: 123 }); // ['post', 123]
tags.items(); // 'items'
keys.items(); // ['items']
Policy
string | number | boolean1/0 in keys, "1"/"0" in tagsparams orderseparator (e.g., '/' → 'item/42')MIT
**@actkit/core**는 Next.js Server Actions(RSC) 환경에서 클라이언트 쿼리키와 서버 캐시 태그를 한 스키마로 동시에 생성하는 작은 유틸입니다.
string | number | boolean (객체/배열 X)1/0, 태그 "1"/"0"params에 적은 순서를 그대로 사용pnpm add @actkit/core빠른 예시:
import { defineKeyFactory } from '@actkit/core';
export const { tags: t, keys: qk } = defineKeyFactory({
posts: { key: 'posts' },
post: { key: 'post', params: ['id'] as const },
} as const);
t.post({ id: 1 }); // 'post:1'
qk.post({ id: 1 }); // ['post', 1]
Next.js에서 태그 부여/무효화:
import { unstable_cache as cache, revalidateTag } from 'next/cache';
// ...t 생략
export const getPosts = cache(fetchPosts, ['posts.list'], { tags: [t.posts()] });
export async function createPostAction(input: { title: string; body: string }) {
await createPost(input);
revalidateTag(t.posts());
}
라이선스: MIT
FAQs
Strict query-key & tag factory for Next.js Server Actions (RSC).
We found that @actkit/core demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.