@bigbinary/neeto-api-keys-frontend

中文文档
3.2.0发布于 2026/11/03UNLICENSEDTypeScriptESM + CJS零依赖近 30 天下载 3.6万

A repo acts as the source of truth for the new nano's structure, configs, data etc.

原始使用文档
文档目录7 节
  1. Engine
  2. Installation
  3. Usage
  4. Frontend package
  5. Installation
  6. Instructions for development
  7. Components

neeto-api-keys-nano

The neeto-api-keys-nano facilitates the administration of API keys within neeto applications. The nano exports the @bigbinary/neeto-api-keys-frontend NPM package and neeto-api-keys-engine Rails engine for development. Its API-key Playwright helpers are published independently as @bigbinary/neeto-api-keys-playwright from the playwright/ directory.

Contents

  1. Development with Host Application

  2. Instructions for Publishing

  3. Playwright helpers

Development with Host Application

Engine

The engine is used to manage API keys across neeto products. It also provides concerns to handle common logic related to NeetoApiKeysEngine::ApiKey model.

Installation

  1. Add this line to your application's Gemfile:

    source "NEETO_GEM_SERVER_URL" do
      # ..existing gems
    
      gem 'neeto-api-keys-engine'
    end
    
  2. Execute:

    bundle install
    
  3. Add this line to your application's config/routes.rb file:

    mount NeetoApiKeysEngine::Engine, at: "/neeto_api_keys"
    
  4. Run the command to bring in all migrations required from the engine to the host application:

    bundle exec rails neeto_api_keys_engine:install:migrations
    
  5. Run the migrations.

    bundle exec rails db:migrate
    
  6. Add the permission neeto_api_keys_engine.manage_api_keys to your permissions.yml file.

Usage

  1. Add NeetoApiKeysEngine::ApiKeysHandler concern to organization model.

    class Organization < ActiveRecord::Base
      # Include the following concern
      include NeetoApiKeysEngine::ApiKeysHandler
    

    The NeetoApiKeysEngine::ApiKeysHandler concern is a module that provides functionality related to API keys within the host application. It establishes associations, methods, and logic for working with API keys.

  2. Add the NeetoApiKeysEngine::Authenticatable concern to the controller that requires API key authentication. Utilize the neeto_api_keys_authenticate_using_api_key method within a before_action callback to authenticate the necessary actions.

class Api::V1::PublicApiController < ActionController::Base
  # Include the following concern and callback
  include NeetoApiKeysEngine::Authenticatable

  before_action :neeto_api_keys_authenticate_using_api_key

By default, this method expects the API key in the "X-Api-Key" key in the header. For different keys or implementations, define a token method in the controller that returns the token.

Example:

def token
  request.headers["neeto-Api-Key"]
end

Frontend package

Installation

Install the latest NeetoApiKeysNano package using the below command:

yarn add @bigbinary/neeto-api-keys-frontend

Instructions for development

Check the Frontend package development guide for step-by-step instructions to develop the frontend package.

Components

ApiKeys(source code)

This component is used for managing API keys in a web application. It provides functionality for viewing, creating, updating, and deleting API keys. The component includes a table for displaying API key data, as well as options to add new keys, edit existing ones, and delete keys. It also features a search bar for easily finding specific API keys.

Props
  • noDataProps: Props for handling scenarios when there is no data to display.
  • headerProps: Props for configuring the header section of the component.
  • titleHelpPopoverProps: Props for configuring the help popover in the title section.
  • zapierIntegrableType : If the host app has Zapier integration, the table will display Zapier keys only if the integrable type is "Organization." This prop is required if the integrable type is not "Organization" and is scoped to another entity.
  • helpDocUrl: Prop for sending the permalink of the product's help article.
Usage
import React from "react";

import { ApiKeys } from "@bigbinary/neeto-api-keys-frontend";

const App = () => <ApiKeys />;

export default App;

Instructions for Publishing

Consult the building and releasing packages guide for details on how to publish.

版本与发布记录

@bigbinary/neeto-api-keys-frontend 共发布 112 个版本,首次发布于 2023/09/26;过去 12 个月发布了 53 个版本。

版本发布日期距今
3.2.0latest2026/11/035 天前
3.1.102026/11/035 天前
3.1.92026/11/017 天前
3.1.9-beta1beta2026/11/017 天前
3.2.0-beta22026/10/317 天前
3.1.82026/10/318 天前

关于 @bigbinary/neeto-api-keys-frontend 的常见问题

@bigbinary/neeto-api-keys-frontend 是什么?

A repo acts as the source of truth for the new nano's structure, configs, data etc.

如何安装 @bigbinary/neeto-api-keys-frontend?

在项目目录运行 npm install @bigbinary/neeto-api-keys-frontend,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:qs(6.16.2)、url(0.11.4)、yup(0.32.11)、antd(5.22.1)、util(^0.12.5)、dayjs(1.11.10)、ramda(0.29.0)、react(18.3.1)、buffer(^6.0.3)、formik(2.4.6)、i18next(22.5.1)、zustand(4.4.2)、dompurify(3.4.17)、js-logger(1.6.1)、react-dom(18.3.1)、classnames(2.5.1)、stream-http(3.2.0)、tailwindcss(3.4.14)、lucide-react(0.577.0)、react-helmet(^6.1.0)、os-browserify(0.3.0)、react-i18next(12.3.1)、vm-browserify(1.1.2)、@babel/runtime(7.29.7)、react-toastify(8.0.2)、tty-browserify(0.0.1)、path-browserify(^1.0.1)、https-browserify(1.0.0)、mixpanel-browser(^2.45.0)、react-router-dom(5.3.3)、crypto-browserify(3.12.1)、source-map-loader(4.0.1)、stream-browserify(^3.0.0)、@bigbinary/neetoui(8.8.3)、@honeybadger-io/js(6.10.1)、@bigbinary/neeto-cist(1.0.17)、@honeybadger-io/react(6.1.25)、@tanstack/react-query(5.59.20)、@bigbinary/neeto-atoms(1.1.2)、@bigbinary/neeto-icons(1.20.89)、@bigbinary/neeto-molecules(5.9.15)、@tailwindcss/container-queries(^0.1.1)、@tanstack/react-query-devtools(5.59.20)、@bigbinary/neeto-commons-frontend(4.14.8)、@bigbinary/neeto-filters-frontend(4.6.3)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@bigbinary/neeto-api-keys-frontend 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@bigbinary/neeto-api-keys-frontend 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@bigbinary/neeto-api-keys-frontend 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.12。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@bigbinary/neeto-api-keys-frontend 可以商用吗?

@bigbinary/neeto-api-keys-frontend 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@bigbinary/neeto-api-keys-frontend 的下载量有多少?

根据 npm 官方下载统计,@bigbinary/neeto-api-keys-frontend 在 2026/10/08 – 2026/11/06 这 30 天内被下载 36,298 次,日均约 1,210 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bigbinary/neeto-api-keys-frontend 还在维护吗?

最新版本 3.2.0 发布于 2026/11/03(5 天前);至今共发布 112 个版本,其中过去 12 个月发布了 53 个;首次发布于 2023/09/26。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。