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

n8n-nodes-logto

v0.1.2

Published

n8n community node for Logto management APIs

Readme

n8n-nodes-logto

使用 @logto/node 认证模型(Bearer Token 与 Client Credentials)封装 Logto Management API 的 n8n 社区节点。

参考 SDK:

已支持能力(MVP)

  • 列表型操作支持统一分页参数:returnAlllimit(users/applications/roles/organizations/scopes/connectors/auditLogs)

  • Resource: api

    • request(通用请求模式,可覆盖 Logto 全部 API 路径)
  • Resource: users

    • list / get / create / update / delete
    • listRoles / addRoles / removeRoles
  • Resource: applications

    • list / get / create / update / delete
    • listScopes / addScopes / removeScopes
    • listRoles / addRoles / removeRoles
    • listSecrets / createSecret / deleteSecret
  • Resource: roles

    • list / get / create / update / delete
    • listUsers / addUser / removeUser
    • listScopes / addScopes / removeScopes
  • Resource: organizations

    • list / get / create / update / delete
    • listMembers / addMember / removeMember
    • listRoles / createRole / getRole / updateRole / deleteRole
    • listMemberRoles / addMemberRoles / removeMemberRoles
    • listScopes / addScopes / removeScopes
  • Resource: connectors

    • list / get / update / enable / disable
  • Resource: auditLogs

    • list / get
  • Resource: jwtKeys

    • list / rotate
  • Resource: scopes

    • list / get / create / update / delete

凭证配置

Credential: Logto API

  • Base URL:Logto 租户地址(示例:https://tenant.logto.app
  • Auth Type
    • Bearer Token
      • Access Token
    • Client Credentials
      • Client ID
      • Client Secret
      • Scope(默认 all
      • Resource (Audience)(可选)

本地开发

pnpm install
pnpm run build
pnpm run lint

仓库根目录 .npmrc 已设置 ignore-scripts=true,避免安装时编译 n8n-workflow 传递依赖里的原生模块(与 CI 一致)。

构建产物在 dist/,安装到本地 n8n 实例时使用该目录。

覆盖所有 Logto API 的用法

在节点中选择:

  • Resource = API
  • Operation = Request
  • 填写 MethodPathQuery JSONBody JSON

示例:

  • GET /api/usersQuery JSON 可传 {"page":1,"page_size":20}
  • POST /api/rolesBody JSON 传创建参数对象

发布

工作流:.github/workflows/release.yml

触发:

  • workflow_dispatch
  • 推送 tag(v*

Secrets 通过 Infisical Action OIDC 注入(来自 GitHub Environment prod):

  • secret: INFISICAL_IDENTITY_ID(值为 identity-id)
  • var: INFISICAL_PROJECT_SLUG(值为 project-slug)
  • env-slug: dev
  • secret-path: /n8n-nodes-logto/credentials

NPM_TOKEN 缺失或为 __PENDING_APPLY__,工作流会立即失败。