stevekrouse avatar
stevekrouse
githubEvents
Script
An interactive, runnable TypeScript val by stevekrouse
0
radu avatar
radu
basicAPIEx
Script
An interactive, runnable TypeScript val by radu
0
stevekrouse avatar
stevekrouse
runAllTests
Script
An interactive, runnable TypeScript val by stevekrouse
0
rodrigotello avatar
rodrigotello
valForm
Script
An interactive, runnable TypeScript val by rodrigotello
0
stevekrouse avatar
stevekrouse
githubStarred
Script
// Cities named Brooklyn
0
vtdocs avatar
vtdocs
getGithubUser
Script
An interactive, runnable TypeScript val by vtdocs
0
bastost avatar
bastost
githubFollowers
Script
An interactive, runnable TypeScript val by bastost
0
stevekrouse avatar
stevekrouse
getDadJoke
Script
An interactive, runnable TypeScript val by stevekrouse
0
kylecrews avatar
kylecrews
umbrellaReminder
Cron
Forked from stevekrouse/umbrellaReminder
0
alexwein avatar
alexwein
spotifyAPI
Script
Forked from stevekrouse/spotifyAPI
0
stevekrouse avatar
stevekrouse
TodoApp
HTTP
SSR React Mini & SQLite Todo App This Todo App is server rendered and client-hydrated React. This architecture is a lightweight alternative to NextJS, RemixJS, or other React metaframeworks with no compile or build step. The data is saved server-side in Val Town SQLite . SSR React Mini Framework This "framework" is currently 44 lines of code, so it's obviously not a true replacement for NextJS or Remix. The trick is client-side importing the React component that you're server rendering . Val Town is uniquely suited for this trick because it both runs your code server-side and exposes vals as modules importable by the browser. The tricky part is making sure that server-only code doesn't run on the client and vice-versa. For example, because this val colocates the server-side loader and action with the React component we have to be careful to do all server-only imports (ie sqlite) dynamically inside the loader and action , so they only run server-side.
3
iakovos avatar
iakovos
hnTopTenStories
Script
// Get the title of the top story on Hacker News
0
kcorey avatar
kcorey
nasaImageDetails
Script
Forked from wallek/nasaImageDetails
0
myhandle avatar
myhandle
umbrellaReminder
Cron
Forked from stevekrouse/umbrellaReminder
0
hanssep avatar
hanssep
starWars
Script
// Explore the Star Wars universe, from StarWarsAPI
0
iBrokeit avatar
iBrokeit
nasaAPOD
Script
NASA Astronomy Picture of the Day (APOD) Returns the picture of the day from NASA's api as well as a short write up describing the picture. Thanks to @stevekrouse for his fetchJSON val! -Happy coding!
0
ā€¦
17
ā€¦
Updated: July 2, 2024