![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@onbeam/sdk
Advanced tools
The Beam Web SDK is a Typescript library that allows you to easily integrate Beam into your website, application or web-based game. It provides a simple API to authenticate your users on Beam, manage sessions and sign transactions, and access the Beam Player API.
Before you start, make sure you obtain an API key by requesting it through build@onbeam. More information can be found on the Beam API Docs.
To get started with the SDK, install it in your project using your favorite package manager:
# with npm
npm install -S @onbeam/sdk
# or with yarn
yarn add @onbeam/sdk
# or with pnpm
pnpm add @onbeam/sdk
Start by creating a new instance of the Beam client, and configuring it with your API key:
import { BeamConfiguration } from '@onbeam/sdk';
const config = new BeamConfiguration({
environment: 'mainnet',
publishableKey: 'your-publishable-key',
debug: true, // Logs debug information to the console
});
const client = new BeamClient(config);
Make sure your API key matches the environment you are working on. For example, if you are working on a development environment, use the development API key.
If you're using wagmi
, you can authenticate a user by providing the wagmi
config with our Beam Connector:
import { createConfig, http } from 'wagmi'
import { beam } from 'viem/chains';
import { beam as beamConnector } from '@onbeam/wagmi';
import { BeamConfiguration } from '@onbeam/sdk';
const beamConfig = new BeamConfiguration({ ... }) // your config from the previous step
const config = createConfig({
chains: [beam]
connectors: [
beamConnector({
config: beamConfig
})
],
transports: {
[beam.id]: http(),
},
});
Our connector supports wagmi 2.x and above, and is shipped as a separate package.
The repository includes two example apps that demonstrate how to use the Beam Web SDK:
The SDK example app demonstrates how to create and manage sessions for your players and is mainly suited for game developers that wish to integrate Beam into their games.
The Wagmi example app demonstrates how a 'Connect with Beam' wallet integration can be implemented in a web application. It is mainly suited for NFT marketplaces or web applications that require users to authenticate with a wallet and interact with the Beam chain.
For more information and API references, check out our online documentation.
FAQs
Beam Web SDK
The npm package @onbeam/sdk receives a total of 383 weekly downloads. As such, @onbeam/sdk popularity was classified as not popular.
We found that @onbeam/sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.