TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Zerocal – A Serverless Calendar App in Rust

154 pointsby omn1over 2 years ago

10 comments

spdustinover 2 years ago
I want to make sure I understand this:<p>You made a VCALENDAR generator with a web-accessible endpoint. It fills in the VCALENDAR with info passed in via URL parameters. And rather than returning a webpage, it just returns the VCALENDAR file.<p>So you send your friends the link, they click it, rather then returning text&#x2F;html content, it returns a downloadable response consisting of a pre-filled VCALENDAR file with the correct MIME type, and .ics extension.<p>Do I have that right?
评论 #33112461 未加载
评论 #33112979 未加载
omn1over 2 years ago
Author here, had a lot of fun building this as it&#x27;s just ~100 lines of Rust code + some CSS&#x2F;HTML. If someone is looking for a fun thing to contribute to during Hacktoberfest, the code is on Github: <a href="https:&#x2F;&#x2F;github.com&#x2F;mre&#x2F;zerocal" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;mre&#x2F;zerocal</a> Will mainly use it for myself to send out event links to friends.
评论 #33111810 未加载
评论 #33110791 未加载
belkarxover 2 years ago
The process for making webapps in Rust seems extremely clean compared to other languages (or maybe I&#x27;m not exposed enough but I remember making things with Golang and even just JS was <i>torture</i> with common hosting solutions). Props to shuttle.rs and the Rust community!
评论 #33113243 未加载
tuukkahover 2 years ago
&gt; I wanted a way to create calendar entries from my terminal.<p>&gt; There is no state on the server, it just generates a calendar event on the fly and returns it.<p>Didn&#x27;t see <i>that</i> coming. I suppose it&#x27;s handy that you can call it anywhere curl is installed (or even use the browser address bar as your command line) instead of having to install and run the Rust program locally.
评论 #33119488 未加载
hoduchaover 2 years ago
Why do we need a vCalendar file generator? The output of your app is a vCalendar file which is then imported into a Calendar app either manually or through the integration of email and calendar services. So in the end, people still have to use a calendar app. It is much easier to create an event on a calendar app and send the invitation which is actually sending emails with a vCalendar file as an attachment. Besides that, most calendar apps allow exporting the event as a vCalendar file also.
longrodover 2 years ago
Looks cool but...why not just send the .ics file directly via your IM of choice? Am I missing something here? I don&#x27;t see the benefit if you still have to click, open file in your calendar, add it to the calendar.<p>Can you tell me why the above wouldn&#x27;t work and why this is better?
评论 #33113530 未加载
jacob019over 2 years ago
Speaking of zerocal, have you ever noticed that low calorie packaged foods like pickles and cauliflower will put tiny serving sizes on the package so they can advertise 0 calories? I think they round down to zero when it&#x27;s less than 5 calories.
评论 #33113784 未加载
clircleover 2 years ago
I&#x27;m wondering if this or a similar tool could be hooked into emacs to make working with calendars in emacs a bit easier. I don&#x27;t think there is a good way to send calendar invites to people from emacs (but happy to be wrong on this one).
评论 #33111413 未加载
simlevesqueover 2 years ago
I beg you to keep GET requests idempotent. It&#x27;s not that hard.
评论 #33112063 未加载
评论 #33111966 未加载
评论 #33111922 未加载
jonathankorenover 2 years ago
Given that this just creates an ics file, why bother with a server at all?
评论 #33119528 未加载