File size: 3,528 Bytes
e110d9d
 
15e3b0d
e110d9d
 
 
 
42a7d7b
e110d9d
3505a64
 
320e776
e110d9d
 
15e3b0d
e110d9d
bf816b7
e110d9d
42a7d7b
e110d9d
320e776
 
 
e10105c
 
 
e110d9d
42a7d7b
e110d9d
42a7d7b
e110d9d
42a7d7b
e110d9d
e10105c
42a7d7b
e10105c
 
42a7d7b
e10105c
42a7d7b
e10105c
 
 
42a7d7b
e10105c
42a7d7b
e10105c
 
 
 
 
 
 
 
15e3b0d
e10105c
 
 
bf816b7
e10105c
 
42a7d7b
 
 
e10105c
 
 
42a7d7b
b2383c3
 
9c5c64a
 
b2383c3
9c5c64a
b2383c3
 
42a7d7b
 
e10105c
bf816b7
e10105c
42a7d7b
e10105c
42a7d7b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
title: Hugging8n
emoji: πŸ”—
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7861
pinned: true
license: mit
secrets:
  - name: HF_TOKEN
    description: HuggingFace token with write access. Used for automatic backup.
---

# πŸ”— Hugging8n

**Self-hosted n8n workflow automation β€” free, no server needed.** Hugging8n runs [n8n](https://n8n.io) on HuggingFace Spaces Docker, serving a premium dashboard at `/` and the n8n editor is accessible via the dashboard.

## ✨ Features

- ⚑ **Zero Config:** Duplicate this Space, set `HF_TOKEN`, and you're ready.
- πŸ’Ύ **Persistent Backup:** Workflows and credentials back up automatically to a private HF Dataset.
- πŸ” **Secure by Default:** Uses n8n v2's built-in user management. No more insecure environment variables.
- 🌐 **Premium Dashboard:** Live status monitoring, uptime tracking, and integrated keep-alive tools.
- ⏰ **Built-in Keep-Alive:** Easily setup UptimeRobot directly from the dashboard UI.
- 🐳 **Optimized Infrastructure:** Clean startup logs, minimal resource usage, and production-ready proxy.

## πŸš€ Quick Start

### Step 1: Duplicate this Space

[![Duplicate this Space](https://huggingface.co/datasets/huggingface/badges/resolve/main/duplicate-this-space-xl.svg)](https://huggingface.co/spaces/somratpro/Hugging8n?duplicate=true)

### Step 2: Configure Secrets

Go to **Settings > Secrets** and add:
- `HF_TOKEN`: Your HuggingFace token with **Write** access.

### Step 3: Initialize n8n

1. Wait for the Space to build.
2. Visit the Space URL and click **Open n8n Editor**.
3. Create your owner account (this is your primary login).

## βš™οΈ Configuration

You can customize Hugging8n using Environment Variables (Settings > Variables):

| Variable | Default | Description |
| :--- | :--- | :--- |
| `SYNC_INTERVAL` | `180` | Backup frequency in seconds. |
| `GENERIC_TIMEZONE` | `UTC` | Timezone for n8n. |
| `N8N_LOG_LEVEL` | `error` | Set to `info` for more verbose logs. |
| `SPACE_HOST_OVERRIDE` | - | Override the detected host if using a custom domain. |

## πŸ” Authentication & Security

Hugging8n uses n8n's native user management.
- The first person to access the n8n editor on a fresh install becomes the **Owner**.
- **Important:** If you delete the Space and haven't set up `HF_TOKEN`, your users and workflows will be lost.
- **Permissions:** The startup script uses `umask 0077` to ensure all sensitive data is restricted to the node user.

## πŸ’Ύ Persistent Backup

Hugging8n automatically creates and maintains a private dataset in your Hugging Face account named `hugging8n-backup`.
- **Sync Status:** You can check the current sync health directly on the Hugging8n Dashboard.
- **Restoration:** On every startup, Hugging8n pulls the latest state from your dataset before launching n8n.

## ⚠️ Known Limitations & Workarounds

**Discord Webhooks**
Hugging Face officially blocks outgoing connections to Discord on Free Tier Spaces. To use the Discord node, you must route your traffic through a simple, free proxy.

πŸ‘‰ **[Read the Guide: How to Create a Free Discord Proxy in 2 minutes](./DISCORD_PROXY_GUIDE.md)**
*(Upgrading to a paid Space removes this firewall restriction entirely).*

## πŸ—οΈ Architecture

- `/` : **Premium Dashboard** (Management & Monitoring)
- All other paths (e.g., `/home/workflows`) : Proxied to **n8n Workflow Editor**
- `/health` : **Health Check** (Used by the internal proxy and external monitors)

---
*Made with ❀️ by [@somratpro](https://github.com/somratpro)*