Public vals
779
stevekrouse avatar
stevekrouse
getSqliteDateMeDocs
Script
// let docs = await getDocs();
0
stevekrouse avatar
stevekrouse
dateme_notion_sync
Cron
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
dateme_sqlite
HTTP
This script is buggy... import { setupDatabase } from "https://esm.town/v/stevekrouse/dateme_sqlite" await setupDatabase()
0
stevekrouse avatar
stevekrouse
date_me_faq
Script
@jsxImportSource https://esm.sh/preact
0
stevekrouse avatar
stevekrouse
date_me_docs_cache
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
dateme
HTTP
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
4
stevekrouse avatar
stevekrouse
twitterWrapper
HTTP
Twitter API Wrapper So that I can share my $100 / month key with a couple Val Town Pro users. Contact me (or comment on this val) if you'd like to get in on the action. Usage
0
stevekrouse avatar
stevekrouse
compress_response
HTTP
Compress Response Isn't it cool that browsers can natively decompress stuff? There are a couple of supported compression algorithms: gzip (used below), compress , deflate , br . Learn more: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Encoding If you don't add the content-encoding header, the gzip result looks like: ��������� �� �.���� �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������YDA��"�� Which is incredibly short for a 500kb string! (Which shouldn't be surprising because it's just "hi" 250k times)
1
stevekrouse avatar
stevekrouse
bluesky
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
edit_redirect_example
HTTP
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
editRedirect
Script
Redirect to Val Page Redirect from web val to val page by adding /edit to the URL. Convention by pomdtr . Usage import { editRedirect } from "https://esm.town/v/stevekrouse/editRedirect"; import { Hono } from "npm:hono@3"; const app = new Hono(); app.get("/", (c) => c.text("Hello world!")); app.get("/edit", (c) => editRedirect()); export default app.fetch; TODO [ ] turn this into middleware in the style of @pomdtr/basicAuth Live: https://stevekrouse-edit_redirect_example.web.val.run/edit
0
stevekrouse avatar
stevekrouse
example_cron
Cron
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
sqlite_admin_css
Script
An interactive, runnable TypeScript val by stevekrouse
0
stevekrouse avatar
stevekrouse
sqlite_admin_table
Script
@jsxImportSource https://esm.sh/hono@3.9.2/jsx
0
stevekrouse avatar
stevekrouse
sqlite_admin_tables
Script
@jsxImportSource https://esm.sh/hono@3.9.2/jsx
1
stevekrouse avatar
stevekrouse
annual_feedback
HTTP
@jsxImportSource https://esm.sh/react
0