FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
charmaine

charmaine

feedback_widget_demo_PR

Remix of dcm31/feedback_widget_demo
Public
Like
feedback_widget_demo_PR
Home
Code
5
README.md
feedback.md
feedbackWidget.ts
H
index.ts
new-file-6114.tsx
Branches
1
Pull requests
Remixes
History
Environment variables
1
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data โ€“ all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
7/9/2025
README.md

Feedback Widget Demo

This project demonstrates a reusable feedback widget library for Val Town projects.

Features

  • ๐ŸŽจ Clean, minimizable UI that floats at the bottom-right
  • ๐Ÿ“ฑ Mobile-responsive design
  • ๐Ÿ’พ Automatically saves feedback to feedback.md
  • โšก Easy to integrate - just 2 lines of code
  • ๐ŸŽช Smooth animations and hover effects

How to Use in Your Project

  1. Copy feedbackWidget.ts into your project
  2. Import and use in your main entry point:
import { renderFeedbackWidget, handleFeedbackSubmission } from "./feedbackWidget.ts"; // Add to your HTML template const html = ` <body> <!-- Your content --> ${renderFeedbackWidget()} </body> `; // Add feedback route app.post("/feedback", async (c) => { return await handleFeedbackSubmission(c.req.raw, import.meta.url); });
  1. Create a feedback.md file in your project root

That's it! Users can now submit feedback through the widget.

Project Structure

  • feedbackWidget.ts - The reusable widget library
  • index.ts - Demo implementation
  • feedback.md - Where feedback gets stored
  • README.md - This file

Demo

Visit the live demo to see the widget in action: Demo Link

Customization

The widget can be easily customized by modifying the CSS in feedbackWidget.ts. Change colors, positioning, animations, and more to fit your project's design.

FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
ยฉ 2025 Val Town, Inc.