n8n-nodes-opentrivia 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 SnakeTech
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.de.md ADDED
@@ -0,0 +1,71 @@
1
+ # n8n-nodes-opentrivia
2
+
3
+ Dies ist ein n8n-Community-Node. Er ermöglicht es, Trivia-Fragen, Kategorien und Sitzungstoken von der [Open Trivia Database](https://opentdb.com) (opentdb.com) in deinen n8n-Workflows abzurufen.
4
+
5
+ Open Trivia DB ist eine kostenlose, community-basierte Quizfragendatenbank. Es wird kein API-Schlüssel und keine Anmeldedaten benötigt.
6
+
7
+ [n8n](https://n8n.io/) ist eine Workflow-Automatisierungsplattform mit [Fair-Code-Lizenz](https://docs.n8n.io/reference/license/).
8
+
9
+ [Installation](#installation)
10
+ [Ressourcen und Operationen](#ressourcen-und-operationen)
11
+ [Anmeldedaten](#anmeldedaten)
12
+ [Hinweise](#hinweise)
13
+ [Kompatibilität](#kompatibilität)
14
+ [Externe Ressourcen](#externe-ressourcen)
15
+
16
+ ## Installation
17
+
18
+ Folge der [Installationsanleitung](https://docs.n8n.io/integrations/community-nodes/installation/) für n8n-Community-Nodes.
19
+
20
+ Bei einer selbst gehosteten Instanz kannst du dieses Paket auch in deinen `N8N_CUSTOM_EXTENSIONS`-Ordner legen und n8n neu starten:
21
+
22
+ ```bash
23
+ npm install
24
+ npm run build
25
+ ```
26
+
27
+ ## Ressourcen und Operationen
28
+
29
+ ### Question
30
+
31
+ - **Get Many** — Ruft eine oder mehrere Trivia-Fragen ab.
32
+ - `Amount` — Anzahl der abzurufenden Fragen (1 bis 50).
33
+ - `Category` — Trivia-Kategorie (wird dynamisch von der API geladen), oder „Any Category“.
34
+ - `Difficulty` — Any / Easy / Medium / Hard.
35
+ - `Type` — Any / Multiple Choice / True-False.
36
+ - `Session Token` — optionales Token, um wiederholte Fragen zu vermeiden.
37
+
38
+ ### Category
39
+
40
+ - **Get Many** — Listet alle verfügbaren Trivia-Kategorien auf.
41
+ - **Get Question Count** — Ruft die Anzahl der verfügbaren Fragen für eine bestimmte Kategorie ab (aufgeschlüsselt nach Schwierigkeitsgrad).
42
+ - **Get Global Question Count** — Ruft die Gesamtzahl der verfügbaren Fragen über alle Kategorien hinweg ab.
43
+
44
+ ### Session Token
45
+
46
+ - **Request** — Fordert ein neues Sitzungstoken an, damit die API nachverfolgen kann, welche Fragen dir bereits geliefert wurden.
47
+ - **Reset** — Setzt ein vorhandenes Sitzungstoken zurück, damit dessen Fragen erneut geliefert werden können.
48
+
49
+ ## Anmeldedaten
50
+
51
+ Keine. Die Open-Trivia-Database-API ist kostenlos und erfordert keine Authentifizierung.
52
+
53
+ ## Hinweise
54
+
55
+ - Fragen werden immer base64-kodiert von der API angefordert und vom Node automatisch dekodiert — du erhältst also saubere Texte in der Ausgabe, ohne HTML-Entities (`"`, `'` usw.), die bereinigt werden müssten.
56
+ - Open Trivia DB begrenzt Anfragen auf eine pro 5 Sekunden pro IP-Adresse (Antwortcode 5). Wenn dieses Limit erreicht wird, füge eine Verzögerung zwischen den Anfragen ein.
57
+ - Die maximale Anzahl an Fragen pro Anfrage beträgt 50.
58
+
59
+ ## Kompatibilität
60
+
61
+ - Erfordert n8n mit `n8nNodesApiVersion` 1.
62
+ - Erfordert Node.js >= 22.
63
+
64
+ ## Externe Ressourcen
65
+
66
+ - [Dokumentation der Open-Trivia-Database-API](https://opentdb.com/api_config.php)
67
+ - [Dokumentation zu n8n-Community-Nodes](https://docs.n8n.io/integrations/community-nodes/)
68
+
69
+ ## Lizenz
70
+
71
+ [MIT](LICENSE)
package/README.es.md ADDED
@@ -0,0 +1,71 @@
1
+ # n8n-nodes-opentrivia
2
+
3
+ Este es un nodo comunitario de n8n. Permite obtener preguntas de trivia, categorías y tokens de sesión desde la [Open Trivia Database](https://opentdb.com) (opentdb.com) en tus flujos de trabajo de n8n.
4
+
5
+ Open Trivia DB es una base de datos de preguntas de trivia gratuita y comunitaria. No se necesita clave de API ni credenciales para usarla.
6
+
7
+ [n8n](https://n8n.io/) es una plataforma de automatización de flujos de trabajo con licencia [fair-code](https://docs.n8n.io/reference/license/).
8
+
9
+ [Instalación](#instalación)
10
+ [Recursos y operaciones](#recursos-y-operaciones)
11
+ [Credenciales](#credenciales)
12
+ [Notas](#notas)
13
+ [Compatibilidad](#compatibilidad)
14
+ [Recursos externos](#recursos-externos)
15
+
16
+ ## Instalación
17
+
18
+ Sigue la [guía de instalación](https://docs.n8n.io/integrations/community-nodes/installation/) de los nodos comunitarios de n8n.
19
+
20
+ Para una instancia autoalojada, también puedes colocar este paquete en tu carpeta `N8N_CUSTOM_EXTENSIONS` y reiniciar n8n:
21
+
22
+ ```bash
23
+ npm install
24
+ npm run build
25
+ ```
26
+
27
+ ## Recursos y operaciones
28
+
29
+ ### Question
30
+
31
+ - **Get Many** — Obtiene una o varias preguntas de trivia.
32
+ - `Amount` — número de preguntas a obtener (1 a 50).
33
+ - `Category` — categoría de trivia (cargada dinámicamente desde la API), o «Any Category».
34
+ - `Difficulty` — Any / Easy / Medium / Hard.
35
+ - `Type` — Any / Multiple Choice / True-False.
36
+ - `Session Token` — token opcional para evitar recibir preguntas repetidas.
37
+
38
+ ### Category
39
+
40
+ - **Get Many** — Lista todas las categorías de trivia disponibles.
41
+ - **Get Question Count** — Obtiene el número de preguntas disponibles para una categoría dada (desglosado por dificultad).
42
+ - **Get Global Question Count** — Obtiene el número total de preguntas disponibles en todas las categorías.
43
+
44
+ ### Session Token
45
+
46
+ - **Request** — Solicita un nuevo token de sesión para que la API pueda rastrear qué preguntas ya te ha servido.
47
+ - **Reset** — Reinicia un token de sesión existente para que sus preguntas puedan servirse de nuevo.
48
+
49
+ ## Credenciales
50
+
51
+ Ninguna. La API de Open Trivia Database es gratuita y no requiere autenticación.
52
+
53
+ ## Notas
54
+
55
+ - Las preguntas siempre se solicitan a la API con codificación base64 y el nodo las decodifica automáticamente, por lo que obtienes texto limpio en la salida, sin entidades HTML (`"`, `'`, etc.) que limpiar.
56
+ - Open Trivia DB limita las solicitudes a una cada 5 segundos por dirección IP (código de respuesta 5). Si alcanzas este límite, añade una pausa entre solicitudes.
57
+ - El número máximo de preguntas por solicitud es 50.
58
+
59
+ ## Compatibilidad
60
+
61
+ - Requiere n8n con `n8nNodesApiVersion` 1.
62
+ - Requiere Node.js >= 22.
63
+
64
+ ## Recursos externos
65
+
66
+ - [Documentación de la API de Open Trivia Database](https://opentdb.com/api_config.php)
67
+ - [Documentación de nodos comunitarios de n8n](https://docs.n8n.io/integrations/community-nodes/)
68
+
69
+ ## Licencia
70
+
71
+ [MIT](LICENSE)
package/README.fr.md ADDED
@@ -0,0 +1,71 @@
1
+ # n8n-nodes-opentrivia
2
+
3
+ Ce package est un node communautaire n8n. Il permet de récupérer des questions de culture générale, des catégories et des jetons de session depuis l'[Open Trivia Database](https://opentdb.com) (opentdb.com) dans vos workflows n8n.
4
+
5
+ Open Trivia DB est une base de questions de quiz gratuite et communautaire. Aucune clé d'API ni identifiant n'est nécessaire pour l'utiliser.
6
+
7
+ [n8n](https://n8n.io/) est une plateforme d'automatisation de workflows sous licence [fair-code](https://docs.n8n.io/reference/license/).
8
+
9
+ [Installation](#installation)
10
+ [Ressources et opérations](#ressources-et-opérations)
11
+ [Identifiants](#identifiants)
12
+ [Remarques](#remarques)
13
+ [Compatibilité](#compatibilité)
14
+ [Ressources externes](#ressources-externes)
15
+
16
+ ## Installation
17
+
18
+ Suivez le [guide d'installation](https://docs.n8n.io/integrations/community-nodes/installation/) des nodes communautaires n8n.
19
+
20
+ Pour une instance auto-hébergée, vous pouvez aussi placer ce package dans votre dossier `N8N_CUSTOM_EXTENSIONS` et redémarrer n8n :
21
+
22
+ ```bash
23
+ npm install
24
+ npm run build
25
+ ```
26
+
27
+ ## Ressources et opérations
28
+
29
+ ### Question
30
+
31
+ - **Get Many** — Récupère une ou plusieurs questions de quiz.
32
+ - `Amount` — nombre de questions à récupérer (1 à 50).
33
+ - `Category` — catégorie de quiz (chargée dynamiquement depuis l'API), ou « Any Category ».
34
+ - `Difficulty` — Any / Easy / Medium / Hard.
35
+ - `Type` — Any / Multiple Choice / True-False.
36
+ - `Session Token` — jeton optionnel pour éviter de recevoir des questions déjà servies.
37
+
38
+ ### Category
39
+
40
+ - **Get Many** — Liste toutes les catégories de quiz disponibles.
41
+ - **Get Question Count** — Récupère le nombre de questions disponibles pour une catégorie donnée (détaillé par difficulté).
42
+ - **Get Global Question Count** — Récupère le nombre total de questions disponibles sur toutes les catégories.
43
+
44
+ ### Session Token
45
+
46
+ - **Request** — Demande un nouveau jeton de session pour que l'API puisse suivre les questions déjà servies.
47
+ - **Reset** — Réinitialise un jeton de session existant pour que ses questions puissent être servies à nouveau.
48
+
49
+ ## Identifiants
50
+
51
+ Aucun. L'API Open Trivia Database est gratuite et ne nécessite pas d'authentification.
52
+
53
+ ## Remarques
54
+
55
+ - Les questions sont toujours demandées à l'API avec un encodage base64, puis décodées automatiquement par le node : vous obtenez donc un texte propre en sortie, sans entités HTML (`"`, `'`, etc.) à nettoyer.
56
+ - Open Trivia DB limite les requêtes à une par 5 secondes par adresse IP (code de réponse 5). Si vous atteignez cette limite, ajoutez un délai entre vos requêtes.
57
+ - Le nombre maximum de questions par requête est de 50.
58
+
59
+ ## Compatibilité
60
+
61
+ - Nécessite n8n avec `n8nNodesApiVersion` 1.
62
+ - Nécessite Node.js >= 22.
63
+
64
+ ## Ressources externes
65
+
66
+ - [Documentation de l'API Open Trivia Database](https://opentdb.com/api_config.php)
67
+ - [Documentation des nodes communautaires n8n](https://docs.n8n.io/integrations/community-nodes/)
68
+
69
+ ## Licence
70
+
71
+ [MIT](LICENSE)
package/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # n8n-nodes-opentrivia
2
+
3
+ This is an n8n community node. It lets you fetch trivia questions, categories, and session tokens from the [Open Trivia Database](https://opentdb.com) (opentdb.com) in your n8n workflows.
4
+
5
+ Open Trivia DB is a free, community-driven trivia question database. No API key or credentials are required to use it.
6
+
7
+ [n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/reference/license/) workflow automation platform.
8
+
9
+ [Installation](#installation)
10
+ [Resources & Operations](#resources--operations)
11
+ [Credentials](#credentials)
12
+ [Notes](#notes)
13
+ [Compatibility](#compatibility)
14
+ [Resources](#resources)
15
+
16
+ ## Installation
17
+
18
+ Follow the [installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) for n8n community nodes.
19
+
20
+ For a self-hosted instance, you can also drop this package into your `N8N_CUSTOM_EXTENSIONS` folder and restart n8n:
21
+
22
+ ```bash
23
+ npm install
24
+ npm run build
25
+ ```
26
+
27
+ ## Resources & Operations
28
+
29
+ ### Question
30
+
31
+ - **Get Many** — Fetch one or more trivia questions.
32
+ - `Amount` — number of questions to fetch (1–50).
33
+ - `Category` — trivia category (loaded dynamically from the API), or "Any Category".
34
+ - `Difficulty` — Any / Easy / Medium / Hard.
35
+ - `Type` — Any / Multiple Choice / True-False.
36
+ - `Session Token` — optional token to avoid getting repeated questions.
37
+
38
+ ### Category
39
+
40
+ - **Get Many** — List all available trivia categories.
41
+ - **Get Question Count** — Get the number of questions available for a given category (broken down by difficulty).
42
+ - **Get Global Question Count** — Get the total number of questions available across all categories.
43
+
44
+ ### Session Token
45
+
46
+ - **Request** — Request a new session token so the API can track which questions it has already served you.
47
+ - **Reset** — Reset an existing session token so its questions can be served again.
48
+
49
+ ## Credentials
50
+
51
+ None. The Open Trivia Database API is free and does not require authentication.
52
+
53
+ ## Notes
54
+
55
+ - Questions are always requested from the API with base64 encoding and decoded automatically by the node, so you get clean text in your output — no HTML entities (`"`, `'`, etc.) to clean up.
56
+ - Open Trivia DB rate-limits requests to one per 5 seconds per IP address (response code 5). If you hit this, add a delay between requests.
57
+ - The maximum number of questions per request is 50.
58
+
59
+ ## Compatibility
60
+
61
+ - Requires n8n with `n8nNodesApiVersion` 1.
62
+ - Requires Node.js >= 22.
63
+
64
+ ## Resources
65
+
66
+ - [Open Trivia Database API documentation](https://opentdb.com/api_config.php)
67
+ - [n8n community nodes documentation](https://docs.n8n.io/integrations/community-nodes/)
68
+
69
+ ## License
70
+
71
+ [MIT](LICENSE)