@snapback/integrations
v0.1.0
Published
A collection of integration modules for various third-party services used in the SnapBack platform.
Readme
@snapback/integrations
A collection of integration modules for various third-party services used in the SnapBack platform.
Available Integrations
Email sending capabilities with multiple provider support:
- Resend
- Mailgun
- Postmark
- And more...
Stripe
Payment processing and subscription management integration.
HubSpot
CRM integration for managing contacts, companies, deals, and associations.
Installation
pnpm add @snapback/integrationsUsage
import { sendEmail } from "@snapback/integrations/email";
await sendEmail({
to: "[email protected]",
subject: "Welcome!",
text: "Welcome to our platform!",
});Stripe
import { createCheckoutLink } from "@snapback/integrations/stripe";
const checkoutUrl = await createCheckoutLink({
type: "subscription",
productId: "price_123",
email: "[email protected]",
});HubSpot
import { createContact } from "@snapback/integrations/hubspot";
const contact = await createContact({
properties: {
email: "[email protected]",
firstname: "John",
lastname: "Doe",
},
});Environment Variables
Each integration requires specific environment variables. Check each integration's documentation for details.
Contributing
To add a new integration:
- Create a new directory in
src/ - Implement the integration following the existing patterns
- Export the integration in
src/index.ts - Update the package.json exports field
- Add documentation
License
MIT
