Description
n8n-nodes-hap


An official n8n community node for integrating with HAP (Hyper Application Platform) – an innovative no-code platform that enables users to build enterprise applications without coding.
π Table of Contents
- Installation
- Credentials
- Operations
- Examples
- API Compatibility
- Development
- License
π Installation
Community Nodes (Recommended)
Install directly from the n8n Community Nodes interface:
1. Go to Settings β Community Nodes in n8n
2. Select Install and enter: n8n-nodes-hap
3. Click Install
Manual Installation
For n8n installed globally
npm install -g n8n-nodes-hapFor local n8n installation
npm install n8n-nodes-hap
Docker
FROM n8nio/n8n:latest
RUN npm install -g n8n-nodes-hap
π Credentials
Configure HAP API credentials in n8n:
Required Fields
| Field | Description | Example |
|——-|————-|———|
| API Domain | HAP API endpoint URL | https://api.mingdao.com |
| HAP App Key | Your application key | your-app-key |
| HAP Sign | Your signature key | your-sign-key |
Private Deployment
For private deployments, append /api to your service address:
https://api.mingdao.comhttps://your-domain.com/apiπ Operations
π’ Application Operations
π Worksheet Operations
π Record Operations
βοΈ Workflow Operations
π― Option Set Operations
π₯ Role Operations
π Public Query Operations
π‘ Examples
Creating a Record
{
"worksheetId": "your-worksheet-id",
"fields": [
{
"id": "title_field",
"value": "My New Record"
},
{
"id": "email_field",
"value": "[email protected]"
}
],
"triggerWorkflow": true
}
Batch Record Operations
{
"worksheetId": "your-worksheet-id",
"rows": [
{
"fields": [
{"id": "name", "value": "John Doe"},
{"id": "email", "value": "[email protected]"}
]
},
{
"fields": [
{"id": "name", "value": "Jane Smith"},
{"id": "email", "value": "[email protected]"}
]
}
]
}
Advanced Filtering
{
"filter": {
"type": "group",
"logic": "AND",
"children": [
{
"type": "condition",
"field": "status",
"operator": "eq",
"value": "active"
},
{
"type": "condition",
"field": "created_date",
"operator": "between",
"value": ["2024-01-01", "2024-12-31"]
}
]
}
}
Creating Option Sets
{
"name": "Priority Levels",
"options": [
{
"value": "High",
"index": 1,
"color": "#F52222",
"score": 3
},
{
"value": "Medium",
"index": 2,
"color": "#FAD714",
"score": 2
},
{
"value": "Low",
"index": 3,
"color": "#00C345",
"score": 1
}
],
"enableColor": true,
"enableScore": true
}
π API Compatibility
This node is built against HAP API v3 with full compatibility for all endpoints. The implementation includes:
Supported API Categories
| Category | Operations | Description |
|———-|————|————-|
| Application | 1 operation | App information and configuration |
| Worksheet | 4 operations | Table structure management |
| Record | 13 operations | Data CRUD with advanced features |
| Workflow | 3 operations | Process automation and triggers |
| OptionSet | 4 operations | Dropdown and selection management |
| Role | 7 operations | User permission and access control |
| PublicQuery | 3 operations | Search and lookup functionality |
π οΈ Development
Prerequisites
Setup
Clone the repository
git clone https://github.com/mingdaocloud/n8n-nodes-hap.git
cd n8n-nodes-hapInstall dependencies
npm installBuild the project
npm run buildRun linter
npm run lintAuto-fix linting issues
npm run lintfixDevelopment mode (watch for changes)
npm run dev
Project Structure
n8n-nodes-hap/
βββ nodes/
β βββ Hap/
β βββ Hap.node.ts # Main node definition
β βββ HapOperations.ts # Parameter configurations
β βββ HapExecute.ts # API execution logic
β βββ hap.svg # Node icon
βββ credentials/
β βββ HapApi.credentials.ts # Authentication configuration
βββ .dev_helper/
β βββ original_apis/ # OpenAPI 3.1 specifications
βββ dist/ # Compiled output
βββ package.json # Package configuration
Testing Locally
Link the package globally
npm linkIn your n8n installation
npm link n8n-nodes-hapStart n8n
n8n start
π API Documentation
For detailed API documentation, refer to:
π€ Contributing
Contributions are welcome! Please:
1. Fork the repository
2. Create a feature branch: git checkout -b feature/amazing-feature
3. Commit changes: git commit -m 'Add amazing feature'
4. Push to branch: git push origin feature/amazing-feature
5. Open a Pull Request
Development Guidelines
π Support
For issues and support:
π License
MIT License – see LICENSE file for details.
π·οΈ Keywords
n8n, hap, mingdao, nocoly, no-code, workflow, automation, api, integration, enterprise
—
Made with β€οΈ by the HAP Community
This is an official community node for n8n, providing seamless integration with HAP (Hyper Application Platform) for building powerful no-code automation workflows.


