Skip to content

lvkv/whenfs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whenfs your calendar is now a filesystem

WhenFS turns your Google Calendar into a FUSE filesystem. It whimsically supports the following features:

  • Create a filesystem out of existing Google Calendars, or create a new one from scratch
  • Read and write files, directories and... well, just files and directories
  • Mount your friends' WhenFS calendar file systems to share files in the silliest way possible

This is what the Mona Lisa looks like when uploaded to Google Calendar:


.jpg

⬇️

calendar screenshot

The image above contains all the image's data split up across hundreds of tiny calendar event descriptions. The entire filesystem—files, directories, reads, writes and more—is all based on manipulating these Google Calendar events.

WhenFS is an example of a harder drive—a hard drive we didn't want or need.

(Demo) Mount a Friend's File System

WhenFS can mount existing WhenFS-ed Google Calendars when given the calendar's ID and ID of the file system recovery calendar event:

demo

(Demo) Transfer Files to Google Calendar

WhenFS can transfer a 3 KiB file to Google Calendar in just over 7 seconds—a blistering upload speed of 400 bytes per second:

demo

How Does it Work?

WhenFS operations start at the FUSE file system layer, facilitated by fuser. The filesystem sits on top of a write-through object cache, which itself sits on top of an abstract data storage interface with swappable calendar API backends.

flow

If you poke around enough, you'll likely run into bugs, edge cases, and completely unimplemented features. There are no plans to fix these.

Why Did You Do This?

I used this project as an opportunity to learn about Rust and FUSE file systems. I also think it's hilarious.

Visitors interested in the code should note that this is an irredeemably messy codebase—it's full of hacks, unidiomatic code, and wildly poor design decisions.

However, visitors should also note that that's okay. The best way to learn something new is to try it out for yourself—and creating a mess is a vital part of that process. The page you're on right now is my mess. Now go create yours!

How Do I Use This?

The diagram above took too long to create, so I no longer have the energy to write up a tutorial. If you figure out how to use this, let me know.

On a more serious note: Google Calendar is a wonderful service. I'd highly discourage anyone from using this for anything other than educational purposes. Abusing a free service is wrong—don't be evil.

Contributions

Contributions are more than welcome. Note that contributors are subject to a contributor license agreement ("CLA"), which requires that all contributions be accompanied by a lighthearted meme that makes the author chuckle slightly, but not too much.

About

A FUSE filesystem for your Google calendar

Topics

Resources

License

Stars

Watchers

Forks

Languages