Vals using hono
Press to talk, and get a translation!
The app is set up so you can easily have a conversation between two people. The app will translate between the two selected languages, in each voice, as the speakers talk.
Add your OpenAI API Key, and make sure to open in a separate window for Mic to work.
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
A minimal bookmarking tool
This allows you to bookmark links and view them later. Completely powered by ValTown and SQLite.
To set this up for yourself
- Fork the val
- From your ValTown settings page, add an environment variable named
bookmarks_client_id
and give it a value (you will be using this for saving) - Add another environment variable named
bookmarks_client_secret
and give it a value (you will also be using this for saving) - At first, the "bookmarks" table will not exist, so we need to save an article first, which will create the "bookmarks" table
- To do this, add a bookmarklet to your browser with this value (replace
BOOKMARKS-CLIENT-ID
andBOOKMARKS-CLIENT-SECRET
with the values you added to the environment variables, and replaceBOOKMARKS-URL
with your VAL's URL):
javascript:void(open('BOOKMARKS-URL/save?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title)+'&id=BOOKMARKS-CLIENT-ID&secret=BOOKMARKS-CLIENT-SECRET', 'Bookmark a link', 'width=400,height=450'))
- Click this bookmarklet to bookmark the URL of the current active tab
- Go to your VAL URL homepage to see the bookmark
Demo
Here are my bookmarks: https://ramkarthik-bookmark.web.val.run/
Note
Make sure you don't share bookmarks_client_id
and bookmarks_client_secret
. It is used for authentication before saving a bookmark.
PersonalizationGPT
You are a helpful personalization assistant
Use GPT to return JIT personalization for client side applications.
If you fork this, you'll need to set OPENAI_API_KEY
in your Val Town Secrets.
Date Me Directory
This is entry-point val for the source code for the Date Me Directory. Contributions welcome!
This app uses Hono as the server framework and for JSX.
The vals are stored in Val Town SQLite.
Contributing
Forking this repo should mostly work, except for the sqlite database. You'll need to create the table & populate it with some data. This script should do it, but I think it has a couple bugs. If you're interested in contributing to this project contact me or comment on this val and I'll get it working for ya!
Todos
- Make the SQLite database forkable and build a widget/workflow for that, ie fix @stevekrouse/dateme_sqlite
- Require an email (that isn't shared publicly)
- Verify the email address with a "magic link"
- Refactor Location to an array of Lat, Lon
- Geocode all the existing locations
- Add a geocoder map input to the form
- Allow selecting multiple location through the form
- Profile performance & speed up site, possibly add more caching
- Let people edit their forms
- Featured profiles
Get common or "dominant" color from an image given a source URL
A minimal bookmarking tool
This allows you to bookmark links and view them later. Completely powered by ValTown and SQLite.
To set this up for yourself
- Fork the val
- From your ValTown settings page, add an environment variable named
bookmarks_client_id
and give it a value (you will be using this for saving) - Add another environment variable named
bookmarks_client_secret
and give it a value (you will also be using this for saving) - At first, the "bookmarks" table will not exist, so we need to save an article first, which will create the "bookmarks" table
- To do this, add a bookmarklet to your browser with this value (replace
BOOKMARKS-CLIENT-ID
andBOOKMARKS-CLIENT-SECRET
with the values you added to the environment variables, and replaceBOOKMARKS-URL
with your VAL's URL):
javascript:void(open('BOOKMARKS-URL/save?u='+encodeURIComponent(location.href)+'&t='+encodeURIComponent(document.title)+'&id=BOOKMARKS-CLIENT-ID&secret=BOOKMARKS-CLIENT-SECRET', 'Bookmark a link', 'width=400,height=450'))
- Click this bookmarklet to bookmark the URL of the current active tab
- Go to your VAL URL homepage to see the bookmark
Demo
Here are my bookmarks: https://ramkarthik-bookmark.web.val.run/
Note
Make sure you don't share bookmarks_client_id
and bookmarks_client_secret
. It is used for authentication before saving a bookmark.
Create your own Myspace profile, deployed to Val town. https://jdan-myspace.web.val.run
Click "..." and select Fork to create your own.
From there you can:
- Customize your own profile
- Or post on my wall by appending to
messages
and sending me a pull request