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

@opendoor/partner-address-entry-sdk

v1.0.0

Published

React component for address autocomplete and entry

Downloads

577

Readme

Partner Address Entry SDK

A minimal, fast React component for address autocomplete and entry, built with Vite for optimal development and build performance.

Features

  • 🚀 Fast builds with Vite
  • 📦 Minimal bundle size
  • 🎯 TypeScript support
  • 💼 Lead creation support
  • 🏠 Built-in "Do you have a home to sell?" question flow
  • 🎨 Customizable styling with CSS modules
  • 📱 Responsive design

Installation

npm install @opendoor/partner-address-entry-sdk

Usage

Basic Usage

The component includes a built-in "Do you have a home to sell?" question that appears before the address input. Pass your partner ID and test mode configuration as props:

import { OpendoorPartnerAddressEntry } from '@opendoor/partner-address-entry-sdk';
import type { AddressData } from '@opendoor/partner-address-entry-sdk';

function App() {
  const handleAddressSelect = (addressData: AddressData) => {
    console.log('Selected address:', addressData);
  };

  return (
    <OpendoorPartnerAddressEntry
      partnerId="your_partner_id"
      testMode={true}  // Set to false for production
      onAddressSelect={handleAddressSelect}
    />
  );
}

With Lead Creation

import { OpendoorPartnerAddressEntry, createLead } from '@opendoor/partner-address-entry-sdk';
import type { AddressData } from '@opendoor/partner-address-entry-sdk';

function App() {
  const handleAddressSelect = async (addressData: AddressData) => {
    const result = await createLead({
      addressData,
      sellerInfo: {
        fullName: 'John Doe',
        email: '[email protected]',
        phoneNumber: '+1234567890'
      }
    });

    if (result.success) {
      console.log('Lead created:', result.leadId);
    }
  };

  return (
    <OpendoorPartnerAddressEntry
      partnerId="your_partner_id"
      testMode={true}
      onAddressSelect={handleAddressSelect}
    />
  );
}

With Offer Creation

import { OpendoorPartnerAddressEntry, createOffer } from '@opendoor/partner-address-entry-sdk';
import type { AddressData } from '@opendoor/partner-address-entry-sdk';

function App() {
  const handleAddressSelect = async (addressData: AddressData) => {
    const result = await createOffer({
      addressData,
      sellerInfo: {
        fullName: 'Jane Smith',
        email: '[email protected]'
      },
      pollingIntervalMs: 2000,
      pollingTimeoutMs: 60000
    });

    if (result.success && result.offerRequest) {
      console.log('Offer status:', result.offerRequest.offerStatus);
      console.log('Offer ID:', result.offerRequest.opendoorOfferRequestId);
    }
  };

  return (
    <OpendoorPartnerAddressEntry
      partnerId="your_partner_id"
      testMode={true}
      onAddressSelect={handleAddressSelect}
    />
  );
}

API Reference

OpendoorPartnerAddressEntry

Props: | Prop | Type | Description | |------|------|-------------| | partnerId | string | Your partner ID (required) | | testMode | boolean | Use staging/demo endpoints when true (optional, default: false) | | onAddressSelect | (addressData: AddressData) => void | Callback when an address is selected (optional) |

Note: The SDK uses a global configuration shared by all component instances. If you render multiple components with different partnerId or testMode values, the last component to mount will determine the active configuration (last-write-wins).

To override the API base URL, set the VITE_OPENDOOR_PARTNER_API_BASE_URL environment variable.

createLead(options)

Create a lead with the selected address.

Options:

  • addressData (AddressData, required): The selected address data
  • sellerInfo (SellerInfo, required): Seller information
    • fullName (string): Full name
    • email (string): Email address
    • phoneNumber (string): Phone number

Returns: Promise<CreateLeadResponse>

createOffer(options)

Create an offer request and poll for status updates.

Options:

  • addressData (AddressData, required): The selected address data
  • sellerInfo (SellerInfo, optional): Seller information
    • fullName (string): Full name
    • email (string): Email address
  • pollingIntervalMs (number, optional, default: 2000): Polling interval
  • pollingTimeoutMs (number, optional, default: 60000): Polling timeout

Returns: Promise<CreateOfferResponse>

Contributing

See CONTRIBUTING.md for development setup, build instructions, and release process.

License

MIT