Get Started

SDK

Add Always Platform to any church or ministry app in about ten minutes.

npm install @always/sdk

The response card

A drop-in web component: accessible, brandable, no cookies or tracking. It posts to your own backend, so no secret ever reaches the browser.

<script type="module" src="https://cdn.alwaysfoundation.org/sdk/v0/widget.js"></script>
<always-response endpoint="/api/always/respond" accent="#1B4740"></always-response>

The client

import { AlwaysClient, buildConsent } from '@always/sdk';

const always = new AlwaysClient({ token: process.env.ALWAYS_TOKEN });
await always.responses.create({
  firstName: 'Sam', contact: { kind: 'mobile', value: '0400 000 000' },
  suburb: 'Parramatta', postcode: '2150', state: 'NSW',
  ageBand: '18+', step: 'church',
  consent: buildConsent({ ageBand: '18+', connect: true, allowNextNearby: true }),
});