TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Val Town – A Cloud Scripting Site

332 点作者 stevekrouse超过 2 年前
Hey HN! We&#x27;re so excited to show you Val Town (<a href="https:&#x2F;&#x2F;val.town" rel="nofollow">https:&#x2F;&#x2F;val.town</a>)! A &quot;val&quot; is a JavaScript&#x2F;TypeScript function or value that runs on our servers. We aim to get you from idea to running code in seconds: type code, run it, get its API endpoint, schedule it - all from the browser, in a couple keystrokes.<p>We&#x27;re a startup of 4 people, mostly in NYC. We&#x27;ve been working on this for 6 months and are eager for feedback from the HN community.<p>Why do we need yet another online coding IDE? While researching devtools[1], I found myself wanting something halfway between Replit and Zapier: a tool that makes hosting, deploying, scheduling, and authenticating easy, but is first-and-foremost a programming tool.<p>We added `console.email` to the runtime to make it incredibly easy to email yourself. We don&#x27;t have npm imports yet, but we do have a low-friction system that treats every user as a namespace, so you can refer to `@me.foo + 1` or `@yourFriend.bar()` right in your code. There are a lot of thorny implications this newfangled import scheme creates, but also many joyous and carefree coding experiences! One of my favorite features is that we store every evaluation, up and down the callstack, including inputs, outputs, logs, etc, which has been an amazing aid to debugging.<p>So far, Val Town is mostly used for what we&#x27;re calling &quot;programmatic notifications&quot;: query a data source for new items on an interval and email them to yourself.<p>Get notified when users you &quot;follow&quot; post on Hacker News: <a href="https:&#x2F;&#x2F;www.val.town&#x2F;stevekrouse.hnFollowPollJob" rel="nofollow">https:&#x2F;&#x2F;www.val.town&#x2F;stevekrouse.hnFollowPollJob</a><p>Get notified when to close your window during fire season in SF: <a href="https:&#x2F;&#x2F;www.val.town&#x2F;stevekrouse.aqi" rel="nofollow">https:&#x2F;&#x2F;www.val.town&#x2F;stevekrouse.aqi</a><p>Get notified when there are new citations on a paper: <a href="https:&#x2F;&#x2F;www.val.town&#x2F;ernest.newCitationNotification" rel="nofollow">https:&#x2F;&#x2F;www.val.town&#x2F;ernest.newCitationNotification</a><p>Subscribe to RSS feeds: <a href="https:&#x2F;&#x2F;www.val.town&#x2F;stevekrouse.pollRSSFeeds" rel="nofollow">https:&#x2F;&#x2F;www.val.town&#x2F;stevekrouse.pollRSSFeeds</a><p>A good place to get started would be forking one of those vals and modifying it to suit your needs. Some folks are using the tool in other ways, such as in webhook contexts, and we encourage those uses as well. We&#x27;d LOVE to pair-program with anyone looking to try out the tool and give feedback. Email steve@val.town :-)<p>Main site: <a href="https:&#x2F;&#x2F;val.town" rel="nofollow">https:&#x2F;&#x2F;val.town</a> Docs: <a href="https:&#x2F;&#x2F;val-town.notion.site&#x2F;Val-Town-Docs-01c8eb9c534b4899802f3a9e31d540ab" rel="nofollow">https:&#x2F;&#x2F;val-town.notion.site&#x2F;Val-Town-Docs-01c8eb9c534b48998...</a> Discord: <a href="https:&#x2F;&#x2F;discord.gg&#x2F;dHv45uN5RY" rel="nofollow">https:&#x2F;&#x2F;discord.gg&#x2F;dHv45uN5RY</a> Blog &amp; Newsletter: <a href="https:&#x2F;&#x2F;val-town.notion.site&#x2F;Blog-6d3ef714d0c849e9be71b3986a1dcd46" rel="nofollow">https:&#x2F;&#x2F;val-town.notion.site&#x2F;Blog-6d3ef714d0c849e9be71b3986a...</a><p>[1] - Whole Code Catalog: <a href="https:&#x2F;&#x2F;futureofcoding.org&#x2F;catalog&#x2F;" rel="nofollow">https:&#x2F;&#x2F;futureofcoding.org&#x2F;catalog&#x2F;</a>

37 条评论

catapart超过 2 年前
This is pretty neat!<p>I went ahead and dropped in a string tokenizer that I&#x27;ve been working on, and it worked straight away! (link: <a href="https:&#x2F;&#x2F;www.val.town&#x2F;embed&#x2F;catapart.magnitTokenize" rel="nofollow">https:&#x2F;&#x2F;www.val.town&#x2F;embed&#x2F;catapart.magnitTokenize</a>) I&#x27;m sure I&#x27;m doing it inefficiently, but it&#x27;s pretty sweet that it just plain worked!<p>Thanks for building such an open platform! I know I can get some real value of utilities like this, so it&#x27;s nice to know that there are folks out there willing to provide them! Hopefully any code I can add can be of use to someone!<p>edited to add: I also included a test of the tokenizer, if anyone was wanting to tokenize some strings with it: <a href="https:&#x2F;&#x2F;www.val.town&#x2F;embed&#x2F;catapart.testTokenizer" rel="nofollow">https:&#x2F;&#x2F;www.val.town&#x2F;embed&#x2F;catapart.testTokenizer</a>
jay-barronville超过 2 年前
Congrats on the launch! I love this idea. It’s so simple but it immediately clicks. My instant reaction was thinking of the various ways I’d totally use this (and gladly pay for it, if reasonably priced).<p>A few things:<p>- Add support for user secrets.<p>- Work on pricing ASAP. You’ve built something dope. You can be paid for it. In fact, I prefer to pay, because it makes it easier for me to feel that the product won’t just disappear after I begin to use it and rely on it. I also just like knowing folks are compensated for the work they do.<p>- Due to the type of product this is, security should be the #1 priority here. I understand you’re in the early stages, but please make this a focus. V8 has pretty decent isolation, but honestly, for a product like this, WebAssembly is your friend — it was quite literally designed for this type of product. A side benefit of relying on WebAssembly is that you’ll be able to support as many languages&#x2F;environments as you can get to compile.<p>Once again, dope work!
评论 #34348611 未加载
评论 #34348571 未加载
评论 #34374372 未加载
akkartik超过 2 年前
I want to draw particular attention to the use case of following HN users. I&#x27;ve been using it for a couple of months, and been finding a lot more great comments here as a result. There&#x27;s a separate front-end that&#x27;s the best way to get started following people: <a href="https:&#x2F;&#x2F;www.hnfollow.com" rel="nofollow">https:&#x2F;&#x2F;www.hnfollow.com</a>. And if you find yourself wishing it worked slightly differently for you, well you can go edit the underlying Val then.<p>Hit me up if you would like help setting this up for yourself and don&#x27;t want to join the Discord or something. My email is in my profile. You basically need to create a new Val for yourself called `hackerNewsAuthors` that&#x27;s just an array of HN username strings.
评论 #34344014 未加载
JZL003超过 2 年前
Oooh I think this is great<p>Another one, as an example, check the FDA food and drug alerts for medicine you take. I guess the pharmacy should email you but who knows, it&#x27;s just filtering an xml for a set of regex. I built a cheap example myself on a micro self hosted server I use for other things<p>Having quick and easy email behind a very simple url is great. Another usecase I use is I have a tiny http endpoint which just emails based on the url parameter (e.g. since it&#x27;s only me my.server.com&#x2F;email?msg=DONE_AI_training). Then I can use it to notify me when a long running job is done, using curl or the easy off the shelf requests that&#x27;s in any language
评论 #34344856 未加载
TylerJewell超过 2 年前
This is a phenomenal mixture of abstraction, design, and state management to peel away infrastructure complexity.
factsaresacred超过 2 年前
This is super nice. Please let me pay so you don&#x27;t disappear.<p>Are there any other services that make it this easy? DigitalOcean functions have a UI for quick prototyping but afaik Google Cloud, Vercel, Cloudflare etc wrap similar functionality inside projects or similar idiosyncrasies which adds friction if all you&#x27;re after is a function and an endpoint.
评论 #34374274 未加载
评论 #34348467 未加载
dustingetz超过 2 年前
Quick start -<p>click &quot;new val&quot;<p>type `console.email(&quot;hello from valtown&quot;, &quot;valtown&quot;);` , see email in about 10 seconds, and the val link has a log of emails sent<p>new val, `export hackerNewsAuthors = [&quot;stevekrouse&quot;, &quot;dustingetz&quot;];`<p>go here, click fork <a href="https:&#x2F;&#x2F;www.val.town&#x2F;stevekrouse.hnFollowPollJob" rel="nofollow">https:&#x2F;&#x2F;www.val.town&#x2F;stevekrouse.hnFollowPollJob</a><p>run<p>i think the hook is running now, wait for steve to post again to see?<p>if someone is feeling motivated, maybe integrate a weather API and mail it every morning?
ninjaa超过 2 年前
This is super awesome. A cloud cron builder and workflow builder is something the world really needs. If you add secrets and user accounts you&#x27;re off to the races here.
andybak超过 2 年前
Why call it a &quot;Cloud Scripting Site&quot; rather than a &quot;Javascript Cloud Scripting Site&quot;?<p>It&#x27;s very specifically javascript so it seems odd to name it as if it&#x27;s something broader.<p>(Or does &quot;cloud scripting&quot; already have a specific association with js that has somehow passed me by?)<p>EDIT - I guess &quot;Typescript&#x2F;Javascript Cloud Scripting Site&quot; is a bit of a mouthful but still...
评论 #34374346 未加载
schappim超过 2 年前
I like this. It&#x27;s like a modern version of webscript.io . The ability to provide form input &#x2F; render HTML would be awesome.
评论 #34344909 未加载
raybb超过 2 年前
I love this idea and think there&#x27;s a good chance I&#x27;ll use it in the future.<p>Generally I use followthatpage.com for getting notified of changes on a few simple pages.<p>However, one idea that would be a pretty good use case of your tool is to get notified of new search results for any query on OpenLibrary.org .<p>For example, if I wanted to be notified if there are any new books added to OpenLibrary that mention &quot;hackerNews&quot; I could use this search <a href="https:&#x2F;&#x2F;openlibrary.org&#x2F;search&#x2F;inside?q=hackernews" rel="nofollow">https:&#x2F;&#x2F;openlibrary.org&#x2F;search&#x2F;inside?q=hackernews</a> with this api call <a href="https:&#x2F;&#x2F;openlibrary.org&#x2F;search&#x2F;inside.json?q=hackernews" rel="nofollow">https:&#x2F;&#x2F;openlibrary.org&#x2F;search&#x2F;inside.json?q=hackernews</a><p>I probably won&#x27;t build this now but if someone does please let me know.
brap超过 2 年前
I love the import&#x2F;export model, it feels like one big living codebase everyone can contribute too.
评论 #34349354 未加载
teruakohatu超过 2 年前
Looks nice. Is there any persistant key&#x2F;value store?<p>I like your <a href="https:&#x2F;&#x2F;www.val.town&#x2F;ernest.newCitationNotification" rel="nofollow">https:&#x2F;&#x2F;www.val.town&#x2F;ernest.newCitationNotification</a> but it works because the JSON returned by the API call happens to include a list of citations by date, rather than just returning a citation count.<p>If you had an API that just returned a count, how would I check to see if the count had increased since the last call?<p>For the air quality example, <a href="https:&#x2F;&#x2F;www.val.town&#x2F;stevekrouse.aqi" rel="nofollow">https:&#x2F;&#x2F;www.val.town&#x2F;stevekrouse.aqi</a>, what prevents the script from emailing you once per hour? During a file season that would be annoying.
评论 #34346088 未加载
warent超过 2 年前
Seems very cool!<p>I gotta say hosting someone else&#x27;s code seems very ballsy. Building a service like this is something I&#x27;ve considered before but always wonder, how do you make sure they&#x27;re not doing unscrupulous activities?
评论 #34343829 未加载
jackbridger超过 2 年前
Really cool concept, really enjoyed playing with this a few months ago and great to see so much progress - especially emails. I do think it will lower the bar for what&#x27;s worth writing code for
elbajo超过 2 年前
Big fan of the idea!<p>I&#x27;ve been using Google Apps Script[1] for similar use cases but the limited feature set has been frustrating. Glad to see something more modern come up!<p>I wonder if HTML parsing is possible since there isn&#x27;t npm support to import a parser yet. Maybe by dropping the parser as a separate val?<p>[1] - <a href="https:&#x2F;&#x2F;www.google.com&#x2F;script&#x2F;start&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.google.com&#x2F;script&#x2F;start&#x2F;</a>
评论 #34346119 未加载
vanjajaja1超过 2 年前
I really like this idea, some sort of mashup of simple cloud function website and social network. looks fun, time to build a game :)
thornewolf超过 2 年前
Very fun so far! I have been having trouble deleting any existing val or writing to an exported val from an unexported val.<p>A specific example is one I made &quot;@demo.newPaste&quot;, which seemed to fail to write to &quot;exported @demo.pastes&quot; until I also exported &quot;@demo.newPaste&quot;. Is this maybe a mistake by me, a bug, or intended behavior?
评论 #34346740 未加载
TobyTheDog123超过 2 年前
I love the whole &quot;town&quot; vibe with the ability to reference code written by other people.<p>Echoing others in this thread who say we&#x27;d love to pay for it. I think introducing private Vals may go against what you&#x27;re going for, but I hope you find a good monetization strategy!
评论 #34374250 未加载
awbraunstein超过 2 年前
This is so awesome. Congrats Steve and team on this launch!<p>I&#x27;m excited to see what people build here.
imglorp超过 2 年前
Props for letting visitors see how it works without needing a login. Well done.
DavyJone超过 2 年前
This looks really cool, I find the mix between Zapier and Code to be :chef-kiss:<p>Do you plan to allow for self-hosting? eg. An org that wants to have a private version of this, or even internal version of it.
评论 #34344184 未加载
paxys超过 2 年前
I love the concept and will definitely try this out. Quick piece of feedback though – the &quot;val.town&quot; domain name isn&#x27;t going to help with broader appeal for the product.
dools超过 2 年前
Wow this is just like my product BenkoBot only better! Nicely done
epberry超过 2 年前
I&#x27;ve tried this out and it&#x27;s very cool. I think one particular application is roll-your-own &quot;social listening&quot; which usually requires buying tools.
aliqot超过 2 年前
This right here is going to be big. Good job Steve and co :)
tectonic超过 2 年前
I ran a website called JavaScript Town when I was in high school in the 90s. Probably should have kept that online.
bnzr超过 2 年前
this is extremely cool — feels like a ton of new use cases will unfold as people explore it. congrats on the launch!
KRAKRISMOTT超过 2 年前
How do you plan to compete against<p><a href="https:&#x2F;&#x2F;autocode.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;autocode.com&#x2F;</a> <a href="https:&#x2F;&#x2F;pipedream.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;pipedream.com&#x2F;</a> <a href="https:&#x2F;&#x2F;modal.com" rel="nofollow">https:&#x2F;&#x2F;modal.com</a> <a href="https:&#x2F;&#x2F;telefunc.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;telefunc.com&#x2F;</a> ?
评论 #34374546 未加载
评论 #34348913 未加载
hersko超过 2 年前
This is super cool. I created a secret, but how do I access it in my val?
评论 #34374285 未加载
triyambakam超过 2 年前
It seems similar to Deno Deploy, is that true? If so, how does it compare?
评论 #34345624 未加载
alanaan超过 2 年前
this seems like it could be a way better experience for writing airtable scripts - are there any examples&#x2F;templates of this use case yet?
评论 #34374260 未加载
jalino23超过 2 年前
this seems super cool! how is this free?
评论 #34344058 未加载
esilverman超过 2 年前
Congrats Steve! Keeping an eye on this
Alifatisk超过 2 年前
This is unique and exciting!
RobotToaster超过 2 年前
Is it open source?
评论 #34344980 未加载
HiroProtagonist超过 2 年前
Very cool idea!