NextJS Groundhogg Integration releasesself-updates
by Al Guertin · github.com/systemsaholic/nextjs-groundhogg-integration · website
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/systemsaholic/nextjs-groundhogg-integration/releases/download/0.1.3-beta/nextjs-groundhogg-integration-0.1.3-beta.zipShips its own WordPress updater (Plugin Update Checker), so new versions show up under Dashboard → Updates.
Readme
NextJS Groundhogg Integration Plugin
A WordPress plugin that provides seamless integration between NextJS applications and Groundhogg CRM.
Features
- 🔄 Bi-directional sync between NextJS and Groundhogg
- 🔑 Secure API endpoints with authentication
- 🌐 CORS support for NextJS applications
- 📝 Contact management and tracking
- 📧 Email integration
- 📱 Phone number handling
- 🪝 Webhook support for real-time updates
- 📊 Activity logging
- ⚡ Rate limiting and caching
Requirements
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Groundhogg CRM plugin
- Valid Groundhogg API keys
Installation
Method 1: WordPress Admin
- Go to Plugins > Add New > Upload Plugin
- Select
nextjs-groundhogg-integration.zip - Click "Install Now"
- Activate the plugin
Method 2: Manual Installation
- Download the plugin zip file
- Extract to
/wp-content/plugins/ - Activate through WordPress admin
Configuration
1. API Keys
- Navigate to Groundhogg > Settings > API Keys
- Generate new API keys if you haven't already
- Copy the Public Key and Token
2. CORS Settings
- Go to NextJS CRM > General Settings
- Add your NextJS application domains to Allowed Origins
- Save changes
3. Environment Variables
Add these to your NextJS application's .env.local:
# Groundhogg API Configuration
NEXT_PUBLIC_GROUNDHOGG_API_ENDPOINT=your-wordpress-url/wp-json/groundhogg/v4
NEXT_PUBLIC_GROUNDHOGG_API_VERSION=v4
NEXT_PUBLIC_GROUNDHOGG_PUBLIC_KEY=your-public-key
NEXT_PUBLIC_GROUNDHOGG_TOKEN=your-token
Available Endpoints
Basic Endpoints
GET /verify-connectionPOST /quick-contact-syncGET /contactsGET /contact/{id}
Contact Management
GET /contact-activity/{email}GET, POST /contact-notes/{email}GET, POST /contact-custom-fields/{email}PUT /update-contact
Form Handling
POST /submit-formPOST /submit-form-with-filesPOST /form-submission
Phone-based Endpoints
GET /contact-by-phone/{phone}POST /quick-contact-sync-phone
Email Management
GET, POST /emailsGET, PUT, DELETE /email/{id}POST /email/{id}/sendGET /email-templates
Usage with NextJS SDK
This plugin is designed to work with the Groundhogg NextJS SDK.
import { GroundhoggSDK } from 'groundhogg-nextjs-sdk';
const sdk = new GroundhoggSDK({
apiEndpoint: process.env.NEXT_PUBLIC_GROUNDHOGG_API_ENDPOINT,
publicKey: process.env.NEXT_PUBLIC_GROUNDHOGG_PUBLIC_KEY,
token: process.env.NEXT_PUBLIC_GROUNDHOGG_TOKEN
});
Webhook Support
The plugin includes webhook support for real-time updates:
- Contact creation/updates
- Tag applications/removals
- Form submissions
- Note additions
- Activity tracking
- Email events
Configure webhooks in NextJS CRM > Webhooks settings.
Security
- API key authentication required
- Rate limiting enabled by default
- CORS protection
- WordPress nonce verification
- Input sanitization and validation
Support
For issues and feature requests, please use the GitHub issues page.
License
This project is licensed under the GPL v2 or later - see the LICENSE file for details.
Credits
Developed by Al Guertin
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| 0.1.3-beta | Dec 27, 2024 | nextjs-groundhogg-integration-0.1.3-beta.zip | 1 |
| 0.1.2-beta | Dec 27, 2024 | nextjs-groundhogg-integration-0.1.2-beta.zip | 4 |
| 0.1.1-beta | Dec 27, 2024 | nextjs-groundhogg-integration-0.1.1-beta.zip | 4 |
| 0.1.0-beta | Dec 27, 2024 | nextjs-groundhogg-integration-beta.zip | 4 |