npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

secflow-sdk

v0.1.12

Published

SecFlow Node SDK for application runtime secret access

Readme

SecFlow Node SDK

SecFlow Runtime/Data API로 secret에 접근하는 Node.js SDK입니다. 애플리케이션 런타임 코드에서 계정에 묶인 SDK 토큰으로만 쓰고, Admin API 세션 토큰은 쓰지 않습니다. 평문 secret 값을 출력하거나 로그·트레이스에 남기거나 저장하지 않습니다.

요구 사항

Node.js 18 이상. ESM과 CommonJS를 모두 지원합니다.

설치

npm install @intflow/secflow-sdk

스코프 없는 이름 secflow-sdk로도 같은 SDK를 게시하며, 기준 패키지는 @intflow/secflow-sdk입니다. 런타임 환경에 SECFLOW_SDK_TOKEN(필수), SECFLOW_BASE_URL(기본값 https://secflow.intflow.dev), SECFLOW_TARGET_ENVIRONMENT(기본값 dev)를 둡니다. 원격 주소는 https://만 허용합니다.

사용 예

import { SecFlowClient, SecFlowHttpError, SecFlowItemError } from "@intflow/secflow-sdk";

const SECRET_REF = "secret://dev/example-service/token/app-config";

const client = SecFlowClient.fromEnv();

try {
  const secretValue = await client.resolveText(SECRET_REF);
  configureApplication(secretValue);
} catch (error) {
  if (error instanceof SecFlowItemError || error instanceof SecFlowHttpError) {
    throw new Error(`SecFlow resolve failed: code=${error.code} retryable=${error.retryable}`);
  }
  throw error;
}

CommonJS에서는 const { SecFlowClient } = require("@intflow/secflow-sdk");로 불러옵니다. 클라이언트 인스턴스 하나를 재사용합니다. 바이너리 값은 resolveBytes(), 여러 값은 resolveMany()나 성공한 항목만 돌려주는 resolveManyPartial()을 씁니다.

캐시 provider / 자동 갱신

import { SecFlowSecretProvider } from "@intflow/secflow-sdk";

const provider = new SecFlowSecretProvider(client, { ttlMs: 300_000 });
const cachedValue = await provider.getText(SECRET_REF);

캐시 미스, TTL 만료, invalidate() 뒤에 갱신합니다. 항목 단위 실패는 캐시 항목을 지우고 오래된 값을 돌려주지 않습니다.

메타데이터, 검증, lease

const metadata = (await client.metadata([SECRET_REF]))[SECRET_REF];
const resolved = (await client.resolveMany([SECRET_REF]))[SECRET_REF];
await client.revokeLeases([resolved.leaseId], { reason: "job_completed" });

문서

  • Node SDK의 설정, 메서드, 오류, 재시도, 안전한 로깅: https://github.com/yeon3724/secflow/blob/main/docs/sdk.md
  • 저장소: yeon3724/secflow (읽기 전용 미러 intflow/secflow)

라이선스

MIT