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

@asteby/metacore-org-ai

v2.0.4

Published

Metacore org AI settings - provider/model/API-key per organization and the Claude connect flow, with injected HTTP client, i18n and notifications.

Readme

@asteby/metacore-org-ai

Per-organization AI settings and the Claude connect flow. Provider, model and API key are chosen per org; HTTP client, i18n, toasts and the Claude flow are injected. No billing, credits or hub concepts live here.

Adoption

import {
  OrgAISettings, createOrgAIApi, createClaudeConnectApi,
} from '@asteby/metacore-org-ai'

const api = createOrgAIApi(axiosInstance)            // GET/PUT /organization/ai-config
const claude = createClaudeConnectApi(axiosInstance) // /organization/ai-config/claude/*

<OrgAISettings
  api={api}
  t={t}                                  // optional, i18next-compatible; English built in
  notify={{ success: toast.success, error: toast.error }} // optional
  claudeConnect={{ api: claude }}        // omit to hide the Claude flow
  providers={myProviders}                // optional, see ProviderPreset
/>
  • OrgAIApi is an interface: pass your own object if the backend differs (createOrgAIApi(http, { basePath, userSourcePath: false }) to tune routes).
  • Default providers: Anthropic, OpenAI, DeepSeek and an OpenAI-compatible custom endpoint. A preset with seatId is disabled until config.seats[seatId].ready.
  • The API key is write-only: the form never receives it, only has_api_key.
  • The "use my local AI" toggle renders only when api.updateUserSource exists and the config carries user_ai_source.
  • Messages: keys org_ai.*; defaults in ORG_AI_MESSAGES_EN, plus ORG_AI_MESSAGES_ES to merge into your catalog.
  • ClaudeConnectDialog is exported on its own (api, open, onOpenChange, onConnected, openUrl). Backend error codes: binary_missing, invalid_code, timeout, expired, busy, invalid_token.
  • Accessibility: provider cards are a radiogroup; loading is role=status + aria-busy; load/save/connect errors are role=alert; the load error offers retry; an empty provider list shows an empty state.

Peers: @asteby/metacore-ui, @tanstack/react-query, lucide-react, react.