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

@lushly-dev/fabric-api-client

v0.2.0

Published

Fabric REST API client with Bearer token auth, error normalization, and typed connectors for all Fabric item types.

Readme

@lushly-dev/fabric-api-client

Typed Fabric REST API client with Bearer token auth, error normalization, and modular connectors for all Fabric item types.

Install

npm install @lushly-dev/fabric-api-client

Usage

Core client

import { setAccessToken, fabricGet } from '@lushly-dev/fabric-api-client';

// Set token from Azure CLI:
// az account get-access-token --resource https://api.fabric.microsoft.com
setAccessToken(token);

const result = await fabricGet('/workspaces', 'List workspaces');
if (result.ok) {
  console.log(result.data);
} else {
  console.error(result.error.message);
  console.log(result.error.suggestion);
}

Typed connectors

import { setAccessToken } from '@lushly-dev/fabric-api-client';
import { listWorkspaces, getWorkspace } from '@lushly-dev/fabric-api-client/connectors';

setAccessToken(token);

const workspaces = await listWorkspaces();
const workspace = await getWorkspace('workspace-id');

Admin APIs

import { adminWorkspaces, adminTenants } from '@lushly-dev/fabric-api-client/connectors';

const workspaces = await adminWorkspaces.listWorkspaces();
const settings = await adminTenants.listTenantSettings();

API coverage

| Group | Module | Functions | |-------|--------|-----------| | Core | workspaces | listWorkspaces, getWorkspace, createWorkspace, updateWorkspace, deleteWorkspace, listRoleAssignments, addRoleAssignment, updateRoleAssignment, deleteRoleAssignment, assignToCapacity | | | items | listItems, getItem, createItem, updateItem, deleteItem, getItemDefinition, updateItemDefinition, listItemConnections | | | capacities | listCapacities | | | connections | listConnections, getConnection, createConnection, updateConnection, deleteConnection, listRoleAssignments, addRoleAssignment, deleteRoleAssignment | | | operations | getOperationState, getOperationResult | | Platform | job-scheduler | runOnDemandJob, getJobInstance, cancelJobInstance, listJobInstances, getItemSchedule, createItemSchedule, updateItemSchedule | | | git | getConnection, connect, disconnect, getStatus, commitToGit, updateFromGit, initializeConnection, getMyCredentials, updateMyCredentials | | | deployment-pipelines | listPipelines, getPipeline, createPipeline, updatePipeline, deletePipeline, listStages, getStage, listStageItems, assignWorkspace, unassignWorkspace, deploy | | | onelake-shortcuts | listShortcuts, getShortcut, createShortcut, deleteShortcut | | | folders | listFolders, getFolder | | Data Engineering | lakehouses, warehouses, notebooks, environments, spark-job-definitions | CRUD + definitions | | Data Factory | data-pipelines, dataflows, copy-jobs | CRUD + definitions | | BI | reports, semantic-models, paginated-reports, dashboards | CRUD + definitions | | Real-Time Intelligence | eventhouses, eventstreams, kql-databases, kql-querysets, kql-dashboards, reflex | CRUD + definitions | | Data Science | ml-experiments, ml-models | CRUD | | Data Integration | mirrored-databases, sql-databases, graphql-apis | CRUD + definitions | | Admin | admin/workspaces, admin/items, admin/domains, admin/tenants, admin/users | Tenant management, access auditing |

Architecture

src/
├── index.ts                  # Core client (auth, HTTP helpers, ApiResult<T>)
├── types.ts                  # Shared Fabric REST API types
└── connectors/
    ├── index.ts              # Barrel re-export of all connectors
    ├── workspaces.ts         # One file per API group
    ├── items.ts
    ├── ...28 more...
    └── admin/
        ├── index.ts          # Namespaced admin re-exports
        ├── workspaces.ts
        ├── items.ts
        ├── domains.ts
        ├── tenants.ts
        └── users.ts

Two entry points:

  • @lushly-dev/fabric-api-client — Core client + all shared types
  • @lushly-dev/fabric-api-client/connectors — All typed connector functions

License

MIT