Vercel API examples & templates
Use these vals as a playground to view and fork Vercel API examples and templates on Val Town. Run any example below or find templates that can be used as a pre-built solution.
OgagaOnuta
personaltraining
Personal Trainer Fitness Tracker Overview The Personal Trainer Fitness Tracker was created using Val Town's Townie AI to streamline personal trainer-client interactions and enhance fitness tracking.
The Personal Trainer Fitness Tracker is a web and mobile app designed to help personal trainers manage client progress, create workout routines, and track fitness metrics efficiently. The app features a dark theme, professional fonts, and a sleek black dumbbell icon for branding. Visit the live demo: Personal Trainer App Features Client Management : Add, edit, and track client profiles and fitness goals. Progress Tracking : Visual dashboards with performance analytics and wearable fitness tracker integration. Workout Program Designer : Customizable exercise routines with sets, reps, intensity, and scheduling. Nutrition & Lifestyle Logging : Optional meal tracking, hydration, and recovery monitoring. Communication & Engagement : In-app messaging, automated progress reminders, and motivational alerts. Dark Theme & Branding : Modern dark theme UI with a black dumbbell icon and professional fonts for a polished experience. Tech Stack Frontend : React (for web), React Native (for mobile) Backend : Node.js with Express.js Database : MongoDB / PostgreSQL Authentication : Firebase / JWT Hosting : AWS / Vercel / Netlify Installation Prerequisites Node.js installed MongoDB or PostgreSQL database setup Steps Clone the repository: git clone https://github.com/yourusername/personal-trainer-app.git Navigate into the project directory: cd personal-trainer-app Install dependencies: npm install Set up environment variables (create a .env file and add credentials for the database, authentication, etc.). Run the development server: npm run dev Open the app in your browser at http://localhost:3000 . Contributing Contributions are welcome! Feel free to fork this repository and submit pull requests. License This project is licensed under the MIT License. Contact For questions or support, contact [ogagaonuta@gmail.com] or open an issue on GitHub.
sganta048
healthChatbot
π§ Mental Health Chatbot A simple AI-powered chatbot designed to provide mental health support, encouragement, and mindfulness resources . While it's not a substitute for professional help, it serves as a friendly companion to assist users in moments of need. π Live Demo : Health Chatbot β¨ Features βοΈ Conversational AI β Engages users in supportive discussions. βοΈ Mindfulness & Coping Strategies β Provides relaxation techniques and self-care tips. βοΈ Resource Recommendations β Suggests articles, hotlines, and professional support links. βοΈ Anonymous & Judgment-Free β A safe space to talk and reflect. π§ Tech Stack Frontend: HTML, CSS, JavaScript Backend: Python (Flask or FastAPI) AI Model: OpenAI API / Custom NLP Model Deployment: Vercel / Streamlit / Hugging Face Spaces π Installation & Setup Clone the repository git clone https://github.com/SwethaReddyGanta/mental-health-chatbot.git
cd mental-health-chatbot Create a virtual environment python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate Install dependencies pip install -r requirements.txt Run the chatbot locally python app.py The chatbot should be accessible at http://localhost:5000/ π Contributing Want to improve this chatbot? Feel free to fork this repo, submit PRs , or suggest ideas! π‘οΈ Disclaimer This chatbot is not a substitute for professional mental health services . If you or someone you know is struggling, please seek help from a licensed professional or a trusted support system. π¬ Contact π Let's connect! Find me on LinkedIn or reach out via email. π "Your mental health matters. You are not alone."
bmitchinson
Send_Errors_to_Email
Send errors to email Get a POST request, send an email with the given subject. Used to suplement console.error , since vercel charges 20 dollars a month to send my logs elsewhere.
Wish there was a cheaper option for error specific alerting native to vercel. Further described on the val itself! https://bmitchinson-tangiblelimecockroach.web.val.run
campsite
email_channel
Email a Campsite channel This val creates an email address that posts forwarded emails to a Campsite channel. It uses GPT-4 to extract a readable version of the forwarded email from the raw body. If you don't want to use GPT-4, omit the OPENAI_API_KEY and the raw body will be included in the post. Other providers are available via Vercel's AI SDK . For help with creating integrations, check out the Campsite API docs . You'll need to create an integration and get an API key.

yawnxyz
ai
An http and class wrapper for Vercel's AI SDK Usage: Groq: https://yawnxyz-ai.web.val.run/generate?prompt="tell me a beer joke"&provider=groq&model=llama3-8b-8192 Perplexity: https://yawnxyz-ai.web.val.run/generate?prompt="what's the latest phage directory capsid & tail article about?"&provider=perplexity Mistral: https://yawnxyz-ai.web.val.run/generate?prompt="tell me a joke?"&provider=mistral&model="mistral-small-latest" async function calculateEmbeddings(text) {
const url = `https://yawnxyz-ai.web.val.run/generate?embed=true&value=${encodeURIComponent(text)}`;
try {
const response = await fetch(url);
const data = await response.json();
return data;
} catch (error) {
console.error('Error calculating embeddings:', error);
return null;
}
}