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

@kasabeh/a3d-sdk

v0.1.0

Published

Native 3D advertising SDK for Three.js / React Three Fiber. OpenRTB 2.6 auction, GLB creative rendering, and IIG-aligned viewability.

Readme

@kasabeh/a3d-sdk

Native 3D advertising SDK for Three.js / React Three Fiber.

Add native 3D ads to your Three.js or React Three Fiber scene in under 5 minutes. The SDK runs an OpenRTB 2.6 auction (ext.threeds), loads the winning GLB creative, bills the impression via a single-use token when the model actually renders, and tracks viewability aligned with the IAB/MRC Intrinsic In-Game (IIG) 2.0 guidelines.

Install

npm install @kasabeh/a3d-sdk three @react-three/fiber @react-three/drei

Quick start (React Three Fiber)

import { Canvas } from '@react-three/fiber'
import { A3DAds } from '@kasabeh/a3d-sdk'

function App() {
  return (
    <Canvas>
      <MyScene />
      <A3DAds
        siteId="your-site-id"
        endpoint="https://api.a3d.io"
        placements={[
          {
            id: 'hero-product',
            position: [0, 1, 0],
            sceneType: 'showroom',
            surfaceType: 'pedestal',
            maxDimensions: { width: 0.5, height: 1.0, depth: 0.5 },
          },
        ]}
      />
    </Canvas>
  )
}

Manual control (hook)

import {
  useA3DAds, A3DModel, A3DSponsoredTag, A3DViewability, openAdClick,
} from '@kasabeh/a3d-sdk'

function MyAdSlot({ placement }) {
  const { resolvedAd, loading, modelUrl } = useA3DAds(placement, undefined, {
    endpoint: 'https://api.a3d.io',
    fallbackModelUrl: '/my-house-ad.glb',
  })
  if (loading || !modelUrl) return null
  return (
    <group position={placement.position}>
      <A3DModel
        url={modelUrl}
        ad={resolvedAd}
        onClick={resolvedAd ? () => openAdClick(resolvedAd) : undefined}
      />
      <A3DViewability placement={placement} ad={resolvedAd} />
      <A3DSponsoredTag offset={0.5} />
    </group>
  )
}

Vanilla JS (no React)

import { A3DClient } from '@kasabeh/a3d-sdk'

const a3d = new A3DClient({ siteId: 'your-site-id', endpoint: 'https://api.a3d.io' })
const ads = await a3d.requestBids(placements)
for (const [placementId, ad] of ads) {
  const model = await a3d.loadModel(ad.modelUrl)
  scene.add(model)
  a3d.fireImpression(placementId, ad)
}

Exports

| Export | Kind | Description | |---|---|---| | <A3DAds /> | component | Drop-in: bid, load, render, sponsored tag, billing + IIG viewability | | useA3DAds(placement, site?, opts?) | hook | Auction for one placement; returns { resolvedAd, loading, modelUrl, refetch } | | <A3DModel /> | component | Load + auto-fit a GLB; bills on render when given ad | | <A3DSponsoredTag /> | component | Billboarded "Sponsored" badge | | <A3DViewability /> | component | IIG viewability + engagement tracker | | openAdClick(ad) | function | Tracked click through the ad server redirect | | fireBillableImpression(ad, endpoint?) | function | Manually bill a rendered creative | | fireEvent(payload) | function | Record a custom event (rotate, zoom, hover) | | A3DClient | class | Imperative client for plain Three.js |

Placement shape

{
  id: string
  position: [number, number, number]
  sceneType: string          // kitchen | office | gallery | showroom | ...
  surfaceType: string        // table | shelf | pedestal | floor | ...
  maxDimensions: { width: number; height: number; depth: number } // meters
  tags?: string[]
  interaction?: string[]     // view | rotate | zoom | hover | pickup
  placementType?: 'static' | 'floating' | 'interactive'
  bidfloor?: number          // minimum CPM in USD
}

Peer dependencies

The SDK does not bundle these — your scene already has them:

  • react >= 18
  • react-dom >= 18
  • three >= 0.160
  • @react-three/fiber >= 8
  • @react-three/drei >= 9

License

MIT