JavaScript library for embedding Power BI into your apps. Check out the docs website and wiki for more information.
Installations
npm install powerbi-client
Developer
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
Yes
Node Version
18.18.2
NPM Version
9.8.1
Statistics
1,067 Stars
893 Commits
465 Forks
152 Watching
9 Branches
57 Contributors
Updated on 26 Nov 2024
Bundle Size
220.92 kB
Minified
31.16 kB
Minified + Gzipped
Languages
TypeScript (96.37%)
JavaScript (3.59%)
HTML (0.04%)
Total Downloads
Cumulative downloads
Total Downloads
23,658,507
Last day
-2.2%
38,089
Compared to previous day
Last week
1.7%
190,542
Compared to previous week
Last month
12.5%
798,677
Compared to previous month
Last year
39.3%
8,270,912
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
45
powerbi-client
A client side library for embedding Power BI using JavaScript or TypeScript into your apps.
Documentation
See the Power BI embedded analytics Client APIs documentation to learn how to embed a Power BI report in your application and how to use the client APIs.
Reference
See the library reference for detailed information about classes, interfaces, types, etc.
Playground
The playground is the home for Power BI embedded analytics, where you can get hands-on coding experience, embed your own reports, and interact with our client APIs to see instant results. In addition, you’ll find there our interactive showcases to get inspiration regarding how you can apply these features in your applications. Lastly, we’ve created a new learning center to help you find all the relevant samples, tutorials, and documentation you’ll need for a successful integration.
Installation
Install via Nuget:
Install-Package Microsoft.PowerBI.JavaScript
Install from NPM:
npm install --save powerbi-client
Installing beta versions:
npm install --save powerbi-client@beta
Include the library via import or manually
Ideally you would use a module loader or a compilation step to import using ES6 modules as:
1import * as pbi from 'powerbi-client';
However, the library is exported as a Universal Module and the powerbi.js script can be included before your app's closing </body>
tag as:
1<script src="/powerbi-client/dist/powerbi.js"></script>
When included directly, the library is exposed as a global named powerbi-client
.
There is also another global named powerbi
which is an instance of the service.
Contributing
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.
When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments
Support
- Feature Requests: Submit your ideas and suggestions to the Fabric Ideas Portal, where you can also vote on ideas from other developers.
- Bug Reports and Technical Assistance: Visit the Fabric Developer Community Forum. Our team and community experts are ready to assist you.
- Additional Support: Contact your account manager or reach out to the Fabric Support Team.
No vulnerabilities found.
Reason
all changesets reviewed
Reason
security policy file detected
Details
- Info: security policy file detected: SECURITY.md:1
- Info: Found linked content: SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1
- Info: Found text in security policy: SECURITY.md:1
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE.txt:0
- Warn: project license file does not contain an FSF or OSI license.
Reason
2 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 2 commits out of 30 are checked with a SAST tool
Score
6.1
/10
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreOther packages similar to powerbi-client
powerbi-client-react
React wrapper for powerbi-client library
powerbi-client-angular
Angular wrapper for powerbi-client library
powerbi-client-vue-js
VueJS wrapper for powerbi-client library
ngx-powerbi
TypeScript library for embedding Power BI assets (reports/dashboards/tiles) in your application. This TypeScript library is built on top of the official powerbi-client library provided by Microsoft.