Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
This guide keeps broenlab-frontend contributions aligned with the lightweight Express proxy powering N8N chat flows. Follow these defaults unless the maintainer signals a change in an issue or PR thread.
Sign in to like and favorite skills
This guide keeps broenlab-frontend contributions aligned with the lightweight Express proxy powering N8N chat flows. Follow these defaults unless the maintainer signals a change in an issue or PR thread.
server.js hosts the Express proxy, login flow, and webhook forwarding logic; keep new middleware close to related routes.index.html and chat.html are served statically from the repository root; adjust assets here or create a public/ subtree if the surface grows.package.json tracks runtime dependencies and scripts; colocate additional configs (e.g., lint rules, env samples) at the repository root for visibility.npm install installs dependencies; run after cloning or when package.json changes.npm run dev starts the server with NODE_ENV=development; use for interactive debugging against local or staging webhooks.npm start launches the production-mode server on PORT (default 3000); rely on this for final smoke checks.server.js.const for imports and single-responsibility helper functions; group Express route handlers by endpoint..env guidance.npm run dev and exercising the login/proxy flow in the browser.tests/ directory and wire a npm test script (Jest or supertest) so CI adoption remains straightforward.chore:, etc.); follow type: short summary with imperative mood.N8N_WEBHOOK_URL, N8N_FEEDBACK_WEBHOOK_URL, N8N_USERNAME, N8N_PASSWORD, and JWT_SECRET in a local .env; never commit secrets.JWT_SECRET to a strong value before deploying; rotate credentials alongside webhook URL changes.secure by running behind TLS.[email protected]Chatbot2025The chat interface includes a feedback mechanism allowing users to rate bot responses.
chat.html contains the complete feedback implementationN8N_FEEDBACK_WEBHOOK_URL environment variable on the serverhttps://n8n-ldlsb-u47163.vm.elestio.app/webhook/9f23ec09-0e55-43f1-9a4b-11bf1d9f211c (set in .env.example){ "rating": <integer> }
rating: 1 for thumbs uprating: 0 for thumbs down/api/config endpoint at page load.broen-feedback and .broen-feedback__btn classes in <style> sectionloadConfig() fetches feedback webhook URL from /api/config endpointbuildFeedbackUI() creates the emoji button UIhandleFeedbackClick() manages toggle logic and state updatessendFeedback() performs the POST request to the webhookgenerateMessageId() creates stable identifiers for messages/api/config endpoint exposes N8N_FEEDBACK_WEBHOOK_URL to client