@jjlmoya/utils-health 1.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.
Files changed (155) hide show
  1. package/package.json +60 -0
  2. package/src/category/i18n/en.ts +60 -0
  3. package/src/category/i18n/es.ts +60 -0
  4. package/src/category/i18n/fr.ts +60 -0
  5. package/src/category/index.ts +22 -0
  6. package/src/category/seo.astro +15 -0
  7. package/src/components/PreviewNavSidebar.astro +116 -0
  8. package/src/components/PreviewToolbar.astro +143 -0
  9. package/src/data.ts +28 -0
  10. package/src/env.d.ts +5 -0
  11. package/src/index.ts +36 -0
  12. package/src/layouts/PreviewLayout.astro +117 -0
  13. package/src/pages/[locale]/[slug].astro +146 -0
  14. package/src/pages/[locale].astro +251 -0
  15. package/src/pages/index.astro +4 -0
  16. package/src/tests/faq_count.test.ts +19 -0
  17. package/src/tests/locale_completeness.test.ts +42 -0
  18. package/src/tests/mocks/astro_mock.js +2 -0
  19. package/src/tests/no_h1_in_components.test.ts +48 -0
  20. package/src/tests/schemas_fulfillment.test.ts +23 -0
  21. package/src/tests/seo_length.test.ts +22 -0
  22. package/src/tests/title_quality.test.ts +55 -0
  23. package/src/tests/tool_validation.test.ts +17 -0
  24. package/src/tool/binauralTuner/bibliography.astro +14 -0
  25. package/src/tool/binauralTuner/component.astro +687 -0
  26. package/src/tool/binauralTuner/i18n/en.ts +187 -0
  27. package/src/tool/binauralTuner/i18n/es.ts +187 -0
  28. package/src/tool/binauralTuner/i18n/fr.ts +187 -0
  29. package/src/tool/binauralTuner/index.ts +27 -0
  30. package/src/tool/binauralTuner/seo.astro +14 -0
  31. package/src/tool/binauralTuner/ui.ts +18 -0
  32. package/src/tool/bloodUnitConverter/bibliography.astro +14 -0
  33. package/src/tool/bloodUnitConverter/component.astro +915 -0
  34. package/src/tool/bloodUnitConverter/i18n/en.ts +227 -0
  35. package/src/tool/bloodUnitConverter/i18n/es.ts +250 -0
  36. package/src/tool/bloodUnitConverter/i18n/fr.ts +218 -0
  37. package/src/tool/bloodUnitConverter/index.ts +27 -0
  38. package/src/tool/bloodUnitConverter/seo.astro +14 -0
  39. package/src/tool/bloodUnitConverter/ui.ts +38 -0
  40. package/src/tool/bmiCalculator/bibliography.astro +14 -0
  41. package/src/tool/bmiCalculator/component.astro +415 -0
  42. package/src/tool/bmiCalculator/i18n/en.ts +217 -0
  43. package/src/tool/bmiCalculator/i18n/es.ts +221 -0
  44. package/src/tool/bmiCalculator/i18n/fr.ts +217 -0
  45. package/src/tool/bmiCalculator/index.ts +27 -0
  46. package/src/tool/bmiCalculator/seo.astro +14 -0
  47. package/src/tool/bmiCalculator/ui.ts +21 -0
  48. package/src/tool/breathingVisualizer/bibliography.astro +14 -0
  49. package/src/tool/breathingVisualizer/component.astro +636 -0
  50. package/src/tool/breathingVisualizer/i18n/en.ts +206 -0
  51. package/src/tool/breathingVisualizer/i18n/es.ts +206 -0
  52. package/src/tool/breathingVisualizer/i18n/fr.ts +206 -0
  53. package/src/tool/breathingVisualizer/index.ts +27 -0
  54. package/src/tool/breathingVisualizer/seo.astro +14 -0
  55. package/src/tool/breathingVisualizer/ui.ts +31 -0
  56. package/src/tool/caffeineTracker/bibliography.astro +14 -0
  57. package/src/tool/caffeineTracker/component.astro +1210 -0
  58. package/src/tool/caffeineTracker/i18n/en.ts +198 -0
  59. package/src/tool/caffeineTracker/i18n/es.ts +198 -0
  60. package/src/tool/caffeineTracker/i18n/fr.ts +198 -0
  61. package/src/tool/caffeineTracker/index.ts +27 -0
  62. package/src/tool/caffeineTracker/logic.ts +31 -0
  63. package/src/tool/caffeineTracker/seo.astro +14 -0
  64. package/src/tool/caffeineTracker/ui.ts +36 -0
  65. package/src/tool/daltonismSimulator/bibliography.astro +14 -0
  66. package/src/tool/daltonismSimulator/component.astro +383 -0
  67. package/src/tool/daltonismSimulator/i18n/en.ts +188 -0
  68. package/src/tool/daltonismSimulator/i18n/es.ts +218 -0
  69. package/src/tool/daltonismSimulator/i18n/fr.ts +168 -0
  70. package/src/tool/daltonismSimulator/index.ts +27 -0
  71. package/src/tool/daltonismSimulator/seo.astro +14 -0
  72. package/src/tool/daltonismSimulator/ui.ts +20 -0
  73. package/src/tool/digestionStopwatch/bibliography.astro +14 -0
  74. package/src/tool/digestionStopwatch/component.astro +627 -0
  75. package/src/tool/digestionStopwatch/i18n/en.ts +173 -0
  76. package/src/tool/digestionStopwatch/i18n/es.ts +173 -0
  77. package/src/tool/digestionStopwatch/i18n/fr.ts +173 -0
  78. package/src/tool/digestionStopwatch/index.ts +27 -0
  79. package/src/tool/digestionStopwatch/logic.ts +63 -0
  80. package/src/tool/digestionStopwatch/seo.astro +14 -0
  81. package/src/tool/digestionStopwatch/ui.ts +20 -0
  82. package/src/tool/epworthSleepinessScale/bibliography.astro +14 -0
  83. package/src/tool/epworthSleepinessScale/component.astro +528 -0
  84. package/src/tool/epworthSleepinessScale/i18n/en.ts +217 -0
  85. package/src/tool/epworthSleepinessScale/i18n/es.ts +217 -0
  86. package/src/tool/epworthSleepinessScale/i18n/fr.ts +217 -0
  87. package/src/tool/epworthSleepinessScale/index.ts +27 -0
  88. package/src/tool/epworthSleepinessScale/seo.astro +14 -0
  89. package/src/tool/epworthSleepinessScale/ui.ts +27 -0
  90. package/src/tool/hydrationCalculator/bibliography.astro +14 -0
  91. package/src/tool/hydrationCalculator/component.astro +694 -0
  92. package/src/tool/hydrationCalculator/i18n/en.ts +217 -0
  93. package/src/tool/hydrationCalculator/i18n/es.ts +222 -0
  94. package/src/tool/hydrationCalculator/i18n/fr.ts +199 -0
  95. package/src/tool/hydrationCalculator/index.ts +27 -0
  96. package/src/tool/hydrationCalculator/seo.astro +14 -0
  97. package/src/tool/hydrationCalculator/ui.ts +28 -0
  98. package/src/tool/pelliRobsonTest/bibliography.astro +14 -0
  99. package/src/tool/pelliRobsonTest/component.astro +653 -0
  100. package/src/tool/pelliRobsonTest/i18n/en.ts +205 -0
  101. package/src/tool/pelliRobsonTest/i18n/es.ts +205 -0
  102. package/src/tool/pelliRobsonTest/i18n/fr.ts +205 -0
  103. package/src/tool/pelliRobsonTest/index.ts +27 -0
  104. package/src/tool/pelliRobsonTest/seo.astro +14 -0
  105. package/src/tool/pelliRobsonTest/ui.ts +21 -0
  106. package/src/tool/peripheralVisionTrainer/bibliography.astro +14 -0
  107. package/src/tool/peripheralVisionTrainer/component.astro +678 -0
  108. package/src/tool/peripheralVisionTrainer/i18n/en.ts +224 -0
  109. package/src/tool/peripheralVisionTrainer/i18n/es.ts +224 -0
  110. package/src/tool/peripheralVisionTrainer/i18n/fr.ts +211 -0
  111. package/src/tool/peripheralVisionTrainer/index.ts +27 -0
  112. package/src/tool/peripheralVisionTrainer/seo.astro +14 -0
  113. package/src/tool/peripheralVisionTrainer/ui.ts +26 -0
  114. package/src/tool/readingDistanceCalculator/bibliography.astro +14 -0
  115. package/src/tool/readingDistanceCalculator/component.astro +588 -0
  116. package/src/tool/readingDistanceCalculator/i18n/en.ts +202 -0
  117. package/src/tool/readingDistanceCalculator/i18n/es.ts +215 -0
  118. package/src/tool/readingDistanceCalculator/i18n/fr.ts +193 -0
  119. package/src/tool/readingDistanceCalculator/index.ts +31 -0
  120. package/src/tool/readingDistanceCalculator/seo.astro +14 -0
  121. package/src/tool/readingDistanceCalculator/ui.ts +18 -0
  122. package/src/tool/screenDecompressionTime/bibliography.astro +14 -0
  123. package/src/tool/screenDecompressionTime/component.astro +671 -0
  124. package/src/tool/screenDecompressionTime/i18n/en.ts +225 -0
  125. package/src/tool/screenDecompressionTime/i18n/es.ts +247 -0
  126. package/src/tool/screenDecompressionTime/i18n/fr.ts +225 -0
  127. package/src/tool/screenDecompressionTime/index.ts +27 -0
  128. package/src/tool/screenDecompressionTime/seo.astro +14 -0
  129. package/src/tool/screenDecompressionTime/ui.ts +32 -0
  130. package/src/tool/tinnitusReliever/bibliography.astro +14 -0
  131. package/src/tool/tinnitusReliever/component.astro +581 -0
  132. package/src/tool/tinnitusReliever/i18n/en.ts +161 -0
  133. package/src/tool/tinnitusReliever/i18n/es.ts +161 -0
  134. package/src/tool/tinnitusReliever/i18n/fr.ts +161 -0
  135. package/src/tool/tinnitusReliever/index.ts +27 -0
  136. package/src/tool/tinnitusReliever/seo.astro +14 -0
  137. package/src/tool/tinnitusReliever/ui.ts +9 -0
  138. package/src/tool/ubeCalculator/bibliography.astro +14 -0
  139. package/src/tool/ubeCalculator/component.astro +683 -0
  140. package/src/tool/ubeCalculator/i18n/en.ts +200 -0
  141. package/src/tool/ubeCalculator/i18n/es.ts +200 -0
  142. package/src/tool/ubeCalculator/i18n/fr.ts +196 -0
  143. package/src/tool/ubeCalculator/index.ts +27 -0
  144. package/src/tool/ubeCalculator/seo.astro +14 -0
  145. package/src/tool/ubeCalculator/ui.ts +26 -0
  146. package/src/tool/waterPurifier/bibliography.astro +14 -0
  147. package/src/tool/waterPurifier/component.astro +628 -0
  148. package/src/tool/waterPurifier/i18n/en.ts +167 -0
  149. package/src/tool/waterPurifier/i18n/es.ts +167 -0
  150. package/src/tool/waterPurifier/i18n/fr.ts +167 -0
  151. package/src/tool/waterPurifier/index.ts +27 -0
  152. package/src/tool/waterPurifier/seo.astro +14 -0
  153. package/src/tool/waterPurifier/ui.ts +18 -0
  154. package/src/tools.ts +19 -0
  155. package/src/types.ts +72 -0
@@ -0,0 +1,187 @@
1
+ import type { WithContext, SoftwareApplication, FAQPage, HowToThing } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { BinauralTunerUI } from '../ui';
4
+
5
+ const slug = 'binaural-wave-tuner-lucid-dreams';
6
+ const title = 'Binaural Wave Tuner for Lucid Dreams';
7
+ const description =
8
+ 'Induce lucid dreams and deep relaxation states with delta, theta and alpha binaural beats. Frequency generator with visual stroboscope.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: 'How do binaural beats work?',
13
+ answer:
14
+ 'Two tones at slightly different frequencies are presented to each ear. The brain processes the difference as a third tone (pulse), influencing the state of consciousness.',
15
+ },
16
+ {
17
+ question: 'What frequency is best for lucid dreaming?',
18
+ answer:
19
+ 'The Theta range (4-8 Hz) is the most effective, as it is associated with the REM sleep state and vivid creative visualization.',
20
+ },
21
+ {
22
+ question: 'Are headphones necessary?',
23
+ answer:
24
+ 'Yes, they are essential. For the binaural effect to occur, each ear must receive an isolated signal through separate channels (stereo).',
25
+ },
26
+ {
27
+ question: 'Is it dangerous to listen to these frequencies?',
28
+ answer:
29
+ 'Not for healthy people. However, people with epilepsy should not use it due to the visual and auditory stroboscope.',
30
+ },
31
+ {
32
+ question: 'How long does it take to work?',
33
+ answer:
34
+ 'Response varies, but it is recommended to practice at least 15-30 minutes per session for one week.',
35
+ },
36
+ {
37
+ question: 'Can I use it to study?',
38
+ answer:
39
+ 'Yes, Alpha and low Beta frequencies are excellent for improving concentration and information retention.',
40
+ },
41
+ ];
42
+
43
+ const howToData = [
44
+ {
45
+ name: 'Connect Headphones',
46
+ text: 'Essential for the stereo binaural effect.',
47
+ },
48
+ {
49
+ name: 'Adjust the Frequency',
50
+ text: 'Select the Theta preset (4.5 Hz) for dream induction or Delta (1.5 Hz) for better rest.',
51
+ },
52
+ {
53
+ name: 'Activate the Stroboscope',
54
+ text: 'Optional. Close your eyes and enjoy the visual patterns induced by the soft light flashes.',
55
+ },
56
+ {
57
+ name: 'Relax',
58
+ text: 'Use it for 15-30 minutes before sleep or with wake-back-to-bed techniques after 5 hours of sleep.',
59
+ },
60
+ ];
61
+
62
+ const faqSchema: WithContext<FAQPage> = {
63
+ '@context': 'https://schema.org',
64
+ '@type': 'FAQPage',
65
+ mainEntity: faqData.map((item) => ({
66
+ '@type': 'Question',
67
+ name: item.question,
68
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
69
+ })),
70
+ };
71
+
72
+ const howToSchema: WithContext<HowToThing> = {
73
+ '@context': 'https://schema.org',
74
+ '@type': 'HowTo',
75
+ name: title,
76
+ description,
77
+ step: howToData.map((step, i) => ({
78
+ '@type': 'HowToStep',
79
+ position: i + 1,
80
+ name: step.name,
81
+ text: step.text,
82
+ })),
83
+ };
84
+
85
+ const appSchema: WithContext<SoftwareApplication> = {
86
+ '@context': 'https://schema.org',
87
+ '@type': 'SoftwareApplication',
88
+ name: title,
89
+ description,
90
+ applicationCategory: 'HealthApplication',
91
+ operatingSystem: 'Web',
92
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
93
+ };
94
+
95
+ export const content: ToolLocaleContent<BinauralTunerUI> = {
96
+ slug,
97
+ title,
98
+ description,
99
+ faqTitle: 'Frequently asked questions about binaural beats',
100
+ faq: faqData,
101
+ bibliographyTitle: 'References and recommended reading',
102
+ bibliography: [
103
+ {
104
+ name: 'Exploring the World of Lucid Dreaming',
105
+ url: 'https://amzn.to/4unHXWZ',
106
+ },
107
+ {
108
+ name: 'Research on Binaural Beats and Sleep Quality - Oxford Academic',
109
+ url: 'https://academic.oup.com/sleep/article/47/10/zsae097/7647043',
110
+ },
111
+ ],
112
+ howTo: howToData,
113
+ schemas: [faqSchema, howToSchema, appSchema],
114
+ ui: {
115
+ labelBaseFreq: 'Base Frequency',
116
+ labelBeatFreq: 'Binaural Beat',
117
+ waveDelta: 'Delta Waves: Regeneration and restorative sleep.',
118
+ waveTheta: 'Theta Waves: Lucid dreams and subconscious connection.',
119
+ waveAlpha: 'Alpha Waves: Conscious relaxation and creative flow.',
120
+ waveBeta: 'Beta Waves: Cognitive focus and active wakefulness.',
121
+ waveGamma: 'Gamma Waves: High-level processing and insight.',
122
+ presetDeltaSleep: 'Delta Sleep',
123
+ presetLucidDream: 'Lucid Dream',
124
+ presetDeepAlpha: 'Deep Alpha',
125
+ presetActiveBeta: 'Active Beta',
126
+ presetSuperGamma: 'Super Gamma',
127
+ btnPlay: 'Play / Pause',
128
+ btnVisualPulse: 'Visual Pulse',
129
+ warningTitle: 'Warning: Photosensitivity Risk',
130
+ warningText:
131
+ 'This tool uses intense light flashes. Not recommended for people with a history of epilepsy. Use headphones to correctly perceive the binaural effect. Do not drive under its influence.',
132
+ },
133
+ seo: [
134
+ {
135
+ type: 'summary',
136
+ title: 'Binaural Wave Tuner',
137
+ items: [
138
+ '<strong>Headphones required</strong>: the binaural effect needs separate stereo channels for each ear.',
139
+ '<strong>5 presets</strong>: Delta Sleep (1.5 Hz), Lucid Dream (4.5 Hz), Deep Alpha (10 Hz), Active Beta (20 Hz), Super Gamma (40 Hz).',
140
+ '<strong>Visual stroboscope</strong>: synchronized with the binaural beat to enhance brainwave entrainment.',
141
+ '<strong>Wave visualizer</strong>: real-time representation of both carrier frequencies.',
142
+ ],
143
+ },
144
+ { type: 'title', text: 'Lucid Dreams and Binaural Beats', level: 2 },
145
+ {
146
+ type: 'paragraph',
147
+ html: 'The phenomenon of <strong>lucid dreaming</strong> — that state in which the dreamer is fully aware of being in a dream — has fascinated humanity for centuries. From Tibetan "dream yoga" practices to the modern research of Dr. Stephen LaBerge at Stanford University, the ability to control the dream environment is a powerful tool for deep psychological exploration.',
148
+ },
149
+ {
150
+ type: 'paragraph',
151
+ html: 'This tool uses the principle of <strong>Brainwave Entrainment</strong> to synchronize the brain\'s electrical activity with specific frequencies associated with REM sleep and creative visualization. A binaural beat occurs when the brain processes the difference between two slightly different tones (one per ear) and internally generates that differential frequency.',
152
+ },
153
+ { type: 'title', text: 'Frequency Guide for the Mind', level: 2 },
154
+ {
155
+ type: 'table',
156
+ headers: ['State', 'Range (Hz)', 'Main Effect'],
157
+ rows: [
158
+ ['<strong>Delta</strong>', '0.5 – 4 Hz', 'Dreamless deep sleep, cellular regeneration and physical healing.'],
159
+ ['<strong>Theta</strong>', '4 – 8 Hz', 'Hypnagogic state, lucid dreaming, deep meditation and memory.'],
160
+ ['<strong>Alpha</strong>', '8 – 14 Hz', 'Conscious relaxation, visualization and stress reduction.'],
161
+ ['<strong>Beta</strong>', '14 – 30 Hz', 'Logical thinking, problem solving and external attention.'],
162
+ ['<strong>Gamma</strong>', '30 – 50 Hz', 'High-level cognitive processing and "Eureka" moments.'],
163
+ ],
164
+ },
165
+ { type: 'title', text: 'How to Induce Lucid Dreams with Sound', level: 2 },
166
+ {
167
+ type: 'list',
168
+ items: [
169
+ '<strong>WBTB (Wake Back To Bed):</strong> Wake after 5-6 hours of sleep, stay awake 20 minutes and return to bed using the tuner at Theta frequency (4-6 Hz).',
170
+ '<strong>MILD (Mnemonic Induction):</strong> While listening to the beats, repeat: "Next time I\'m dreaming, I will remember that I am dreaming".',
171
+ '<strong>WILD (Wake Induced Lucid Dream):</strong> Keep your body relaxed and mind alert while listening, trying to transition directly from wakefulness to sleep without losing consciousness.',
172
+ '<strong>Visual Stimulation:</strong> Use the stroboscope with closed eyes to create hypnagogic patterns that serve as anchors of awareness.',
173
+ ],
174
+ icon: 'mdi:moon-waning-crescent',
175
+ },
176
+ {
177
+ type: 'tip',
178
+ title: 'Headphones Required',
179
+ html: 'Binaural beats <strong>do not work through conventional speakers</strong>, as the brain needs isolated signals in each auditory channel to create the compensatory third frequency. Set the volume to a comfortable level; it does not need to be loud to be effective.',
180
+ },
181
+ { type: 'title', text: 'The Role of the Visual Stroboscope', level: 2 },
182
+ {
183
+ type: 'paragraph',
184
+ html: 'Flickering light at specific frequencies (Flicker Effect) can enhance visual entrainment. With closed eyes, flashes at Theta frequencies can induce geometric visions and facilitate entry into the vibrational state preceding a lucid dream. <strong>Do not use the stroboscope if you have a history of epilepsy or photosensitivity.</strong>',
185
+ },
186
+ ],
187
+ };
@@ -0,0 +1,187 @@
1
+ import type { WithContext, SoftwareApplication, FAQPage, HowToThing } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { BinauralTunerUI } from '../ui';
4
+
5
+ const slug = 'sintonizador-ondas-binaurales-suenos-lucidos';
6
+ const title = 'Sintonizador de Ondas Binaurales para Sueños Lúcidos';
7
+ const description =
8
+ 'Induce sueños lúcidos y estados de relajación profunda con ondas binaurales delta, theta y alpha. Generador de frecuencias con estroboscopio visual.';
9
+
10
+ const faqData = [
11
+ {
12
+ question: '¿Cómo funcionan las ondas binaurales?',
13
+ answer:
14
+ 'Se presentan dos tonos de frecuencias ligeramente diferentes en cada oído. El cerebro procesa la diferencia como un tercer tono (pulso), influyendo en el estado de conciencia.',
15
+ },
16
+ {
17
+ question: '¿Qué frecuencia es mejor para los sueños lúcidos?',
18
+ answer:
19
+ 'El rango Theta (4-8 Hz) es el más efectivo, ya que está asociado al estado de sueño REM y la visualización creativa vívida.',
20
+ },
21
+ {
22
+ question: '¿Es necesario usar auriculares?',
23
+ answer:
24
+ 'Sí, es imprescindible. Para que el efecto binaural ocurra, cada oído debe recibir una señal aislada por canales separados (estéreo).',
25
+ },
26
+ {
27
+ question: '¿Es peligroso escuchar estas frecuencias?',
28
+ answer:
29
+ 'No para personas sanas. Sin embargo, no deben usarlas personas con epilepsia debido al estroboscopio visual y auditivo.',
30
+ },
31
+ {
32
+ question: '¿Cuánto tiempo tarda en funcionar?',
33
+ answer:
34
+ 'La respuesta varía, pero se recomienda practicar al menos 15-30 minutos por sesión durante una semana.',
35
+ },
36
+ {
37
+ question: '¿Puedo usarlo para estudiar?',
38
+ answer:
39
+ 'Sí, las frecuencias Alpha y Beta baja son excelentes para mejorar la concentración y la retención de información.',
40
+ },
41
+ ];
42
+
43
+ const howToData = [
44
+ {
45
+ name: 'Conecta Auriculares',
46
+ text: 'Imprescindible para el efecto binaural estéreo.',
47
+ },
48
+ {
49
+ name: 'Ajusta la Frecuencia',
50
+ text: 'Selecciona el preset Theta (4.5 Hz) para inducción de sueños o Delta (1.5 Hz) para descansar mejor.',
51
+ },
52
+ {
53
+ name: 'Activa el Estroboscopio',
54
+ text: 'Opcional. Cierra los ojos y disfruta de los patrones visuales inducidos por los destellos de luz suave.',
55
+ },
56
+ {
57
+ name: 'Relájate',
58
+ text: 'Utilízalo durante 15-30 minutos antes de dormir o en técnicas de despertado tras 5 horas de sueño.',
59
+ },
60
+ ];
61
+
62
+ const faqSchema: WithContext<FAQPage> = {
63
+ '@context': 'https://schema.org',
64
+ '@type': 'FAQPage',
65
+ mainEntity: faqData.map((item) => ({
66
+ '@type': 'Question',
67
+ name: item.question,
68
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
69
+ })),
70
+ };
71
+
72
+ const howToSchema: WithContext<HowToThing> = {
73
+ '@context': 'https://schema.org',
74
+ '@type': 'HowTo',
75
+ name: title,
76
+ description,
77
+ step: howToData.map((step, i) => ({
78
+ '@type': 'HowToStep',
79
+ position: i + 1,
80
+ name: step.name,
81
+ text: step.text,
82
+ })),
83
+ };
84
+
85
+ const appSchema: WithContext<SoftwareApplication> = {
86
+ '@context': 'https://schema.org',
87
+ '@type': 'SoftwareApplication',
88
+ name: title,
89
+ description,
90
+ applicationCategory: 'HealthApplication',
91
+ operatingSystem: 'Web',
92
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
93
+ };
94
+
95
+ export const content: ToolLocaleContent<BinauralTunerUI> = {
96
+ slug,
97
+ title,
98
+ description,
99
+ faqTitle: 'Preguntas frecuentes sobre ondas binaurales',
100
+ faq: faqData,
101
+ bibliographyTitle: 'Referencias y lecturas recomendadas',
102
+ bibliography: [
103
+ {
104
+ name: 'Exploración de los sueños lúcidos',
105
+ url: 'https://amzn.to/4unHXWZ',
106
+ },
107
+ {
108
+ name: 'Research on Binaural Beats and Sleep Quality - Oxford Academic',
109
+ url: 'https://academic.oup.com/sleep/article/47/10/zsae097/7647043',
110
+ },
111
+ ],
112
+ howTo: howToData,
113
+ schemas: [faqSchema, howToSchema, appSchema],
114
+ ui: {
115
+ labelBaseFreq: 'Frecuencia Base',
116
+ labelBeatFreq: 'Pulso Binaural',
117
+ waveDelta: 'Ondas Delta: Regeneración y sueño reparador.',
118
+ waveTheta: 'Ondas Theta: Sueños lúcidos y conexión subconsciente.',
119
+ waveAlpha: 'Ondas Alpha: Relajación consciente y flujo creativo.',
120
+ waveBeta: 'Ondas Beta: Enfoque cognitivo y vigilia activa.',
121
+ waveGamma: 'Ondas Gamma: Procesamiento de alto nivel e insight.',
122
+ presetDeltaSleep: 'Delta Sleep',
123
+ presetLucidDream: 'Lucid Dream',
124
+ presetDeepAlpha: 'Deep Alpha',
125
+ presetActiveBeta: 'Active Beta',
126
+ presetSuperGamma: 'Super Gamma',
127
+ btnPlay: 'Reproducir / Pausar',
128
+ btnVisualPulse: 'Pulso Visual',
129
+ warningTitle: 'Atención: Riesgo de Fotosensibilidad',
130
+ warningText:
131
+ 'Esta herramienta utiliza destellos lumínicos intensos. No recomendada para personas con antecedentes de epilepsia. Use auriculares para percibir el efecto binaural correctamente. No conduzca bajo su influencia.',
132
+ },
133
+ seo: [
134
+ {
135
+ type: 'summary',
136
+ title: 'Sintonizador Binaural',
137
+ items: [
138
+ '<strong>Auriculares obligatorios</strong>: el efecto binaural requiere canales estéreo separados para cada oído.',
139
+ '<strong>5 presets</strong>: Delta Sleep (1.5 Hz), Lucid Dream (4.5 Hz), Deep Alpha (10 Hz), Active Beta (20 Hz), Super Gamma (40 Hz).',
140
+ '<strong>Estroboscopio visual</strong>: sincronizado con el pulso binaural para potenciar el arrastre cerebral.',
141
+ '<strong>Visualizador de ondas</strong>: representación en tiempo real de las dos frecuencias portadoras.',
142
+ ],
143
+ },
144
+ { type: 'title', text: 'Sueños Lúcidos y Ondas Binaurales', level: 2 },
145
+ {
146
+ type: 'paragraph',
147
+ html: 'El fenómeno de los <strong>sueños lúcidos</strong>, aquel estado en el que el soñador es plenamente consciente de que está soñando, ha fascinado a la humanidad durante siglos. Desde las prácticas de "yoga del sueño" en el Tíbet hasta las investigaciones modernas del Dr. Stephen LaBerge en la Universidad de Stanford, la capacidad de controlar el entorno onírico es una herramienta de exploración psicológica profunda.',
148
+ },
149
+ {
150
+ type: 'paragraph',
151
+ html: 'Esta herramienta utiliza el principio del <strong>Brainwave Entrainment</strong> (arrastre de ondas cerebrales) para sincronizar la actividad eléctrica del cerebro con frecuencias específicas asociadas al sueño REM y la visualización creativa. Un pulso binaural ocurre cuando el cerebro procesa la diferencia entre dos tonos ligeramente distintos (uno por oído) y genera internamente esa frecuencia diferencial.',
152
+ },
153
+ { type: 'title', text: 'Guía de Frecuencias para la Mente', level: 2 },
154
+ {
155
+ type: 'table',
156
+ headers: ['Estado', 'Rango (Hz)', 'Efecto Principal'],
157
+ rows: [
158
+ ['<strong>Delta</strong>', '0.5 – 4 Hz', 'Sueño profundo sin sueños, regeneración celular y curación física.'],
159
+ ['<strong>Theta</strong>', '4 – 8 Hz', 'Estado hipnagógico, sueños lúcidos, meditación profunda y memoria.'],
160
+ ['<strong>Alpha</strong>', '8 – 14 Hz', 'Relajación consciente, visualización y reducción del estrés.'],
161
+ ['<strong>Beta</strong>', '14 – 30 Hz', 'Pensamiento lógico, resolución de problemas y atención externa.'],
162
+ ['<strong>Gamma</strong>', '30 – 50 Hz', 'Procesamiento cognitivo de alto nivel y momentos de "Eureka".'],
163
+ ],
164
+ },
165
+ { type: 'title', text: 'Cómo Inducir Sueños Lúcidos con Sonido', level: 2 },
166
+ {
167
+ type: 'list',
168
+ items: [
169
+ '<strong>WBTB (Wake Back To Bed):</strong> Despierta tras 5-6 horas de sueño, mantente despierto 20 minutos y vuelve a la cama usando el sintonizador en frecuencia Theta (4-6 Hz).',
170
+ '<strong>MILD (Mnemonic Induction):</strong> Mientras escuchas los pulsos, repite: "La próxima vez que esté soñando, recordaré que estoy soñando".',
171
+ '<strong>WILD (Wake Induced Lucid Dream):</strong> Mantén el cuerpo relajado y la mente alerta mientras escuchas las ondas, intentando pasar directamente de la vigilia al sueño sin perder la conciencia.',
172
+ '<strong>Estimulación Visual:</strong> Usa el estroboscopio con párpados cerrados para crear patrones hipnagógicos que sirvan de ancla de conciencia.',
173
+ ],
174
+ icon: 'mdi:moon-waning-crescent',
175
+ },
176
+ {
177
+ type: 'tip',
178
+ title: 'Uso Obligatorio de Auriculares',
179
+ html: 'Los pulsos binaurales <strong>no funcionan a través de altavoces</strong> convencionales, ya que el cerebro necesita recibir señales aisladas en cada canal auditivo para crear la tercera frecuencia compensatoria. Ajusta el volumen a un nivel cómodo; no es necesario que sea fuerte para ser efectivo.',
180
+ },
181
+ { type: 'title', text: 'El Papel del Estroboscopio Visual', level: 2 },
182
+ {
183
+ type: 'paragraph',
184
+ html: 'La luz parpadeante a frecuencias específicas (Flicker Effect) puede potenciar el arrastre visual. Al cerrar los ojos, los destellos a frecuencias Theta pueden inducir visiones geométricas y facilitar la entrada en el estado de vibración previo a un sueño lúcido. <strong>No uses el estroboscopio si tienes historial de epilepsia o fotosensibilidad.</strong>',
185
+ },
186
+ ],
187
+ };
@@ -0,0 +1,187 @@
1
+ import type { WithContext, SoftwareApplication, FAQPage, HowToThing } from 'schema-dts';
2
+ import type { ToolLocaleContent } from '../../../types';
3
+ import type { BinauralTunerUI } from '../ui';
4
+
5
+ const slug = 'syntoniseur-ondes-binaurales-reves-lucides';
6
+ const title = "Syntoniseur d'Ondes Binaurales pour Rêves Lucides";
7
+ const description =
8
+ "Induisez des rêves lucides et des états de relaxation profonde avec des battements binauraux delta, thêta et alpha. Générateur de fréquences avec stroboscope visuel.";
9
+
10
+ const faqData = [
11
+ {
12
+ question: 'Comment fonctionnent les battements binauraux?',
13
+ answer:
14
+ "Deux tonalités à des fréquences légèrement différentes sont présentées à chaque oreille. Le cerveau traite la différence comme un troisième ton (battement), influençant l'état de conscience.",
15
+ },
16
+ {
17
+ question: 'Quelle fréquence est la meilleure pour les rêves lucides?',
18
+ answer:
19
+ 'La plage Thêta (4-8 Hz) est la plus efficace, car elle est associée à l\'état de sommeil REM et à la visualisation créative vivace.',
20
+ },
21
+ {
22
+ question: 'Un casque audio est-il nécessaire?',
23
+ answer:
24
+ "Oui, c'est indispensable. Pour que l'effet binaural se produise, chaque oreille doit recevoir un signal isolé par des canaux séparés (stéréo).",
25
+ },
26
+ {
27
+ question: 'Est-il dangereux d\'écouter ces fréquences?',
28
+ answer:
29
+ "Pas pour les personnes en bonne santé. Cependant, les personnes épileptiques ne doivent pas l'utiliser en raison du stroboscope visuel et auditif.",
30
+ },
31
+ {
32
+ question: 'Combien de temps faut-il pour que ça fonctionne?',
33
+ answer:
34
+ "La réponse varie, mais il est recommandé de pratiquer au moins 15 à 30 minutes par séance pendant une semaine.",
35
+ },
36
+ {
37
+ question: 'Puis-je l\'utiliser pour étudier?',
38
+ answer:
39
+ "Oui, les fréquences Alpha et Beta basses sont excellentes pour améliorer la concentration et la rétention d'informations.",
40
+ },
41
+ ];
42
+
43
+ const howToData = [
44
+ {
45
+ name: 'Connectez un Casque Audio',
46
+ text: "Indispensable pour l'effet binaural stéréo.",
47
+ },
48
+ {
49
+ name: 'Ajustez la Fréquence',
50
+ text: 'Sélectionnez le preset Thêta (4,5 Hz) pour l\'induction des rêves ou Delta (1,5 Hz) pour mieux se reposer.',
51
+ },
52
+ {
53
+ name: 'Activez le Stroboscope',
54
+ text: "Optionnel. Fermez les yeux et profitez des motifs visuels induits par les éclairs de lumière douce.",
55
+ },
56
+ {
57
+ name: 'Détendez-vous',
58
+ text: "Utilisez-le pendant 15 à 30 minutes avant de dormir ou avec des techniques de réveil après 5 heures de sommeil.",
59
+ },
60
+ ];
61
+
62
+ const faqSchema: WithContext<FAQPage> = {
63
+ '@context': 'https://schema.org',
64
+ '@type': 'FAQPage',
65
+ mainEntity: faqData.map((item) => ({
66
+ '@type': 'Question',
67
+ name: item.question,
68
+ acceptedAnswer: { '@type': 'Answer', text: item.answer },
69
+ })),
70
+ };
71
+
72
+ const howToSchema: WithContext<HowToThing> = {
73
+ '@context': 'https://schema.org',
74
+ '@type': 'HowTo',
75
+ name: title,
76
+ description,
77
+ step: howToData.map((step, i) => ({
78
+ '@type': 'HowToStep',
79
+ position: i + 1,
80
+ name: step.name,
81
+ text: step.text,
82
+ })),
83
+ };
84
+
85
+ const appSchema: WithContext<SoftwareApplication> = {
86
+ '@context': 'https://schema.org',
87
+ '@type': 'SoftwareApplication',
88
+ name: title,
89
+ description,
90
+ applicationCategory: 'HealthApplication',
91
+ operatingSystem: 'Web',
92
+ offers: { '@type': 'Offer', price: '0', priceCurrency: 'EUR' },
93
+ };
94
+
95
+ export const content: ToolLocaleContent<BinauralTunerUI> = {
96
+ slug,
97
+ title,
98
+ description,
99
+ faqTitle: 'Questions fréquentes sur les battements binauraux',
100
+ faq: faqData,
101
+ bibliographyTitle: 'Références et lectures recommandées',
102
+ bibliography: [
103
+ {
104
+ name: "Explorer le monde des rêves lucides",
105
+ url: 'https://amzn.to/4unHXWZ',
106
+ },
107
+ {
108
+ name: 'Research on Binaural Beats and Sleep Quality - Oxford Academic',
109
+ url: 'https://academic.oup.com/sleep/article/47/10/zsae097/7647043',
110
+ },
111
+ ],
112
+ howTo: howToData,
113
+ schemas: [faqSchema, howToSchema, appSchema],
114
+ ui: {
115
+ labelBaseFreq: 'Fréquence de Base',
116
+ labelBeatFreq: 'Battement Binaural',
117
+ waveDelta: 'Ondes Delta: Régénération et sommeil réparateur.',
118
+ waveTheta: 'Ondes Thêta: Rêves lucides et connexion subconsciente.',
119
+ waveAlpha: 'Ondes Alpha: Relaxation consciente et flux créatif.',
120
+ waveBeta: 'Ondes Bêta: Concentration cognitive et éveil actif.',
121
+ waveGamma: 'Ondes Gamma: Traitement de haut niveau et insight.',
122
+ presetDeltaSleep: 'Delta Sleep',
123
+ presetLucidDream: 'Lucid Dream',
124
+ presetDeepAlpha: 'Deep Alpha',
125
+ presetActiveBeta: 'Active Beta',
126
+ presetSuperGamma: 'Super Gamma',
127
+ btnPlay: 'Lecture / Pause',
128
+ btnVisualPulse: 'Impulsion Visuelle',
129
+ warningTitle: 'Attention: Risque de Photosensibilité',
130
+ warningText:
131
+ "Cet outil utilise des éclairs lumineux intenses. Déconseillé aux personnes ayant des antécédents d'épilepsie. Utilisez un casque pour percevoir correctement l'effet binaural. Ne conduisez pas sous son influence.",
132
+ },
133
+ seo: [
134
+ {
135
+ type: 'summary',
136
+ title: 'Syntoniseur Binaural',
137
+ items: [
138
+ "<strong>Casque obligatoire</strong>: l'effet binaural nécessite des canaux stéréo séparés pour chaque oreille.",
139
+ '<strong>5 presets</strong>: Delta Sleep (1,5 Hz), Lucid Dream (4,5 Hz), Deep Alpha (10 Hz), Active Beta (20 Hz), Super Gamma (40 Hz).',
140
+ '<strong>Stroboscope visuel</strong>: synchronisé avec le battement binaural pour renforcer l\'entraînement cérébral.',
141
+ '<strong>Visualiseur d\'ondes</strong>: représentation en temps réel des deux fréquences porteuses.',
142
+ ],
143
+ },
144
+ { type: 'title', text: 'Rêves Lucides et Ondes Binaurales', level: 2 },
145
+ {
146
+ type: 'paragraph',
147
+ html: "Le phénomène des <strong>rêves lucides</strong> — cet état où le rêveur est pleinement conscient de rêver — fascine l'humanité depuis des siècles. Des pratiques du \"yoga du rêve\" tibétain aux recherches modernes du Dr. Stephen LaBerge à l'Université de Stanford, la capacité à contrôler l'environnement onirique est un puissant outil d'exploration psychologique.",
148
+ },
149
+ {
150
+ type: 'paragraph',
151
+ html: "Cet outil utilise le principe du <strong>Brainwave Entrainment</strong> (entraînement des ondes cérébrales) pour synchroniser l'activité électrique du cerveau avec des fréquences spécifiques associées au sommeil REM et à la visualisation créative. Un battement binaural se produit quand le cerveau traite la différence entre deux tonalités légèrement différentes (une par oreille) et génère internement cette fréquence différentielle.",
152
+ },
153
+ { type: 'title', text: 'Guide des Fréquences pour l\'Esprit', level: 2 },
154
+ {
155
+ type: 'table',
156
+ headers: ['État', 'Plage (Hz)', 'Effet Principal'],
157
+ rows: [
158
+ ['<strong>Delta</strong>', '0,5 – 4 Hz', 'Sommeil profond sans rêves, régénération cellulaire et guérison physique.'],
159
+ ['<strong>Thêta</strong>', '4 – 8 Hz', 'État hypnagogique, rêves lucides, méditation profonde et mémoire.'],
160
+ ['<strong>Alpha</strong>', '8 – 14 Hz', 'Relaxation consciente, visualisation et réduction du stress.'],
161
+ ['<strong>Bêta</strong>', '14 – 30 Hz', 'Pensée logique, résolution de problèmes et attention externe.'],
162
+ ['<strong>Gamma</strong>', '30 – 50 Hz', 'Traitement cognitif de haut niveau et moments "Eurêka".'],
163
+ ],
164
+ },
165
+ { type: 'title', text: 'Comment Induire des Rêves Lucides avec le Son', level: 2 },
166
+ {
167
+ type: 'list',
168
+ items: [
169
+ "<strong>WBTB (Wake Back To Bed):</strong> Réveillez-vous après 5-6 heures de sommeil, restez éveillé 20 minutes et revenez au lit en utilisant le syntoniseur à la fréquence Thêta (4-6 Hz).",
170
+ "<strong>MILD (Mnemonic Induction):</strong> Pendant que vous écoutez les battements, répétez: \"La prochaine fois que je rêve, je me souviendrai que je rêve\".",
171
+ "<strong>WILD (Wake Induced Lucid Dream):</strong> Gardez votre corps détendu et votre esprit alerte en écoutant les ondes, en essayant de passer directement de l'éveil au sommeil sans perdre conscience.",
172
+ "<strong>Stimulation Visuelle:</strong> Utilisez le stroboscope avec les yeux fermés pour créer des motifs hypnagogiques servant d'ancres de conscience.",
173
+ ],
174
+ icon: 'mdi:moon-waning-crescent',
175
+ },
176
+ {
177
+ type: 'tip',
178
+ title: 'Casque Audio Obligatoire',
179
+ html: "Les battements binauraux <strong>ne fonctionnent pas via des haut-parleurs conventionnels</strong>, car le cerveau a besoin de signaux isolés dans chaque canal auditif pour créer la troisième fréquence compensatoire. Réglez le volume à un niveau confortable; il n'est pas nécessaire qu'il soit fort pour être efficace.",
180
+ },
181
+ { type: 'title', text: 'Le Rôle du Stroboscope Visuel', level: 2 },
182
+ {
183
+ type: 'paragraph',
184
+ html: "La lumière clignotante à des fréquences spécifiques (effet Flicker) peut renforcer l'entraînement visuel. Les yeux fermés, les éclairs aux fréquences Thêta peuvent induire des visions géométriques et faciliter l'entrée dans l'état vibratoire précédant un rêve lucide. <strong>N'utilisez pas le stroboscope si vous avez des antécédents d'épilepsie ou de photosensibilité.</strong>",
185
+ },
186
+ ],
187
+ };
@@ -0,0 +1,27 @@
1
+ import type { HealthToolEntry, ToolDefinition } from '../../types';
2
+ import BinauralTunerComponent from './component.astro';
3
+ import BinauralTunerSEO from './seo.astro';
4
+ import BinauralTunerBibliography from './bibliography.astro';
5
+ import type { BinauralTunerUI } from './ui';
6
+
7
+ export const binauralTuner: HealthToolEntry<BinauralTunerUI> = {
8
+ id: 'binauralTuner',
9
+ icons: {
10
+ bg: 'mdi:headphones',
11
+ fg: 'mdi:sine-wave',
12
+ },
13
+ i18n: {
14
+ es: () => import('./i18n/es').then((m) => m.content),
15
+ en: () => import('./i18n/en').then((m) => m.content),
16
+ fr: () => import('./i18n/fr').then((m) => m.content),
17
+ },
18
+ };
19
+
20
+ export { BinauralTunerComponent, BinauralTunerSEO, BinauralTunerBibliography };
21
+
22
+ export const BINAURAL_TUNER_TOOL: ToolDefinition = {
23
+ entry: binauralTuner,
24
+ Component: BinauralTunerComponent,
25
+ SEOComponent: BinauralTunerSEO,
26
+ BibliographyComponent: BinauralTunerBibliography,
27
+ };
@@ -0,0 +1,14 @@
1
+ ---
2
+ import { SEORenderer } from '@jjlmoya/utils-shared';
3
+ import { binauralTuner } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await binauralTuner.i18n[locale]?.();
12
+ ---
13
+
14
+ {content && <SEORenderer content={{ locale, sections: content.seo }} />}
@@ -0,0 +1,18 @@
1
+ export interface BinauralTunerUI extends Record<string, string> {
2
+ labelBaseFreq: string;
3
+ labelBeatFreq: string;
4
+ waveDelta: string;
5
+ waveTheta: string;
6
+ waveAlpha: string;
7
+ waveBeta: string;
8
+ waveGamma: string;
9
+ presetDeltaSleep: string;
10
+ presetLucidDream: string;
11
+ presetDeepAlpha: string;
12
+ presetActiveBeta: string;
13
+ presetSuperGamma: string;
14
+ btnPlay: string;
15
+ btnVisualPulse: string;
16
+ warningTitle: string;
17
+ warningText: string;
18
+ }
@@ -0,0 +1,14 @@
1
+ ---
2
+ import { Bibliography } from '@jjlmoya/utils-shared';
3
+ import { bloodUnitConverter } from './index';
4
+ import type { KnownLocale } from '../../types';
5
+
6
+ interface Props {
7
+ locale?: KnownLocale;
8
+ }
9
+
10
+ const { locale = 'es' } = Astro.props;
11
+ const content = await bloodUnitConverter.i18n[locale]?.();
12
+ ---
13
+
14
+ {content && <Bibliography items={content.bibliography} title={content.bibliographyTitle} />}