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 🙏

© 2025 – Pkg Stats / Ryan Hefner

arena-app-store-sdk

v0.2.1

Published

Arena App Store SDK - Connect to Arena's wallet infrastructure

Readme

Arena App SDK Alpha

The Arena App SDK provides developers with tools to integrate with the Arena platform, offering:

  • Secure access to users' wallets through Arena's infrastructure
  • The ability to interact with Arena's API methods
  • Seamless integration with Arena's ecosystem

Table of Contents

How It Works in Arena

Your application will be displayed within the Arena platform through the following process:

  1. App Store Integration

    • Your app will appear in the Arena App Store as a dedicated entry
    • Users can discover and launch your app directly from the store
    • Apps run securely within an iframe on the Arena platform
  2. Hosting Requirements

    • Your application must be hosted on your own infrastructure
    • Ensure your server supports HTTPS for secure connections
    • CORS headers must be properly configured. One example configuration is:
     Access-Control-Allow-Origin: https://arena.social
     Access-Control-Allow-Credentials: true
     Access-Control-Allow-Methods: GET, POST, OPTIONS
     Access-Control-Allow-Headers: Content-Type, Authorization
  3. Getting Your App Listed

    • Register your app on the Arena App Store:
      • App name and description
      • Target URL (must be HTTPS)
      • Select the required features (e.g., wallet access, user profile, etc.) from the dropdown menu
      • App icon (minimum 512x512px)
    • We'll handle the technical integration on our side
  4. Locally Testing Your App:

    • Run your app on local port 3481
    • Use the Run Your App Locally feature in the Arena App Store to test your app
  5. User Experience

    • Users will see a permissions dialog when first launching your app
    • Your app will have access to the requested features after user approval
    • Wallet connections are handled through Arena's secure interface

Getting Started

Before using the SDK, you'll need to create a project in Reown and obtain your credentials:

  1. Go to the Reown developer portal
  2. Create a new project
  3. Configure your project settings (name, description, URL, etc.)
  4. Generate your Project ID and API keys
  5. Add your app's domain to the allowed origins
  6. Save your credentials securely

How to Connect the SDK to Your HTML Project

To integrate the Arena App SDK into your HTML project, follow these steps:

  1. Include the SDK script in your HTML file:
<script type="module">
  import { ArenaAppStoreSdk } from '/path/to/arena-sdk/index.js';
  window.ArenaAppStoreSdk = ArenaAppStoreSdk;
</script>
  1. Initialize the SDK in your JavaScript code:
document.addEventListener('DOMContentLoaded', function() {
  const arenaAppStoreSdk = new ArenaAppStoreSdk({
    projectId: "YOUR_PROJECT_ID",
    metadata: {
      name: "Your App Name",
      description: "Your App Description",
      url: window.location.href,
      icons: ["https://your-app.com/icon.png"]
    }
  });

  // Add your event listeners and other initialization code here
});
  1. Use the SDK methods and events as needed in your application.

API Examples

Here are some common usage examples from the Arena Demo App:

Wallet Information

Get the connected wallet address and balance:

arenaAppStoreSdk.on('walletChanged', ({ address }) => {
  console.log('Wallet address:', address);
});

const balance = await arenaAppStoreSdk.provider.request({
  method: 'eth_getBalance',
  params: [arenaAppStoreSdk.provider.accounts[0], 'latest']
});

User Profile

Retrieve the user's profile information:

const profile = await arenaAppStoreSdk.sendRequest("getUserProfile");

Transactions

Send AVAX transactions:

const txHash = await arenaAppStoreSdk.provider.request({
  method: 'eth_sendTransaction',
  params: [{
    from: arenaAppStoreSdk.provider.accounts[0],
    to: '0x...',
    value: '0x...'
  }]
});

FAQ

Q: What origins should I allow for CORS?
A: Allow https://arena.social as the origin. You do not need to specify full paths.

Q: Is authentication required on the Arena platform side?
A: No, authentication is not required on Arena's side. Your app should handle any necessary authentication independently if needed. However, you can already load the logged-in user profile using the getUserProfile method and then use it and not need a separate login flow.

Q: Can I test my app locally?
A: Yes, run your app on local port 3481 and use the Run Your App Locally feature in the Arena App Store. And try from a browser with dev mode like Chrome or Firefox. Brave like secure browsers don't allow our https site to open localhost (which is running on http).

Q: I am seeing a black screen when I try to display my app. What should I do? A:

  1. If it is your production app. Make sure your app is running on https protocol, and you have registered your app with the https url.
  2. If it is your local app, make sure you are running it on port 3481 and you have selected the Run Your App Locally option in the Arena App Store, and you are using a browser that allows localhost http connections from https context (like Chrome or Firefox).

Q: What features can my app request?
A: Your app can request features such as wallet access and user profile. Select the required features during registration.

Q: Is the SDK stable?
A: The SDK is in alpha. The API may change in future releases.

Wagmi Integration

For wagmi users, separate connector packages are available:

These packages provide seamless integration between Arena's wallet infrastructure and the wagmi ecosystem.

Alpha Notes

  • WalletConnect integration is in early stages
  • The API may change in future releases