Third-Party Integrations
Connect LocallyGrown with existing services and learn about data export options to integrate with your business tools.
Integration Overview
LocallyGrown provides built-in integrations with essential services and offers data export capabilities to help you connect with your existing business ecosystem.
π Data Export
Export order data, user information, and sales reports to CSV format for use in external systems.
π Built-in Services
Core integrations with payment processing and email delivery services are included.
π Analytics Ready
Structured data exports work with popular business intelligence and reporting tools.
π Secure Access
All integrations respect user permissions and market-specific data boundaries.
Current Integrations
π³ Payment Processing
Stripe Integration
Secure payment processing with support for credit cards, debit cards, and account balances.
- Credit/debit card processing
- Secure payment storage
- Refund handling
- Payment webhooks for external systems
π§ Email Services
Mailgun
Reliable email delivery for order confirmations, notifications, and communications.
- Transactional emails
- Delivery tracking
- Email analytics
- Template management
πΊοΈ Maps & Geocoding
Leaflet + OpenStreetMap
The grower, pickup-location, and market maps render with Leaflet using OpenStreetMap tiles. No API key is required β tiles are pulled from tile.openstreetmap.org and respect OSM's attribution terms.
MapQuest Geocoder
Addresses entered for markets, pickup locations, and growers are geocoded through MapQuest's Geocoding API via the node-geocoder library. The GEOCODING_API_KEY environment variable holds the MapQuest key; the service validates that returned coordinates
fall inside a known North American bounding box before saving them.
π‘οΈ reCAPTCHA
Google reCAPTCHA v3
New-account signup and sign-in are protected by Google reCAPTCHA v3. The client obtains a token from Google, the server verifies it against www.google.com/recaptcha/api/siteverify using the RECAPTCHA_SECRET_KEY, and requests below the configured score
threshold are rejected. If the secret is unset (as in local dev) verification is
skipped.
π Observability
Sentry
Both the client and server are instrumented with @sentry/sveltekit, and the Node process additionally loads the profiling integration. The DSN
comes from SENTRY_DSN (or PUBLIC_SENTRY_DSN on the
client); errors surfaced from the impersonation middleware, audit exports, and
payment flows are routed here. See the security guide for what redaction is applied
before events ship.
βοΈ Core Infrastructure
Redis (ioredis)
A Redis instance backs the three background-work queues β emails, background tasks, and Stripe webhooks β through BullMQ. The same Redis also holds short-lived cache entries (market lookups, rate limiters). Connection is via ioredis; local dev uses the instance launched by Docker Compose.
Sharp (image processing)
Uploaded grower, product, and market photos are resized, re-encoded, and optimized with Sharp. Sharp is a native Node addon; if image uploads fail on deploy, a missing platform-specific binary is the first thing to check.
anchor-pki (local HTTPS)
Local development runs under HTTPS at locallygrown-svelte.lcl.host:44340 by way of anchor-pki, which issues and rotates trusted SSL certificates for the .lcl.host domains. This is a dev-only concern β production TLS is terminated
upstream.
Data Export Options
LocallyGrown provides CSV export functionality to help you integrate data with external business tools.
External System Integration
Using CSV Exports
CSV files can be imported into most business applications:
- Accounting Software: QuickBooks, Xero, FreshBooks
- Spreadsheets: Excel, Google Sheets, Numbers
- CRM Systems: Salesforce, HubSpot, Pipedrive
- Email Marketing: Mailchimp, Constant Contact, Campaign Monitor
API Access
For custom integrations, LocallyGrown provides API endpoints that can be used to build custom connections with your business systems. See our API documentation for details.
Setting Up Integrations
Exporting Data
- Log into your market administration panel
- Navigate to the appropriate section (Orders, Users, etc.)
- Look for "Export" or "Download CSV" options
- Select date ranges and filters as needed
- Download and import into your external system
Automating Data Transfer
For regular data synchronization, consider setting up scheduled exports or using the API to automate data transfer between systems.
Data Privacy and Security
- All data exports respect user permissions and market boundaries
- Sensitive information is protected according to privacy policies
- Export access is logged for security auditing
- Data should be handled securely in external systems