Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Decker's Agenda using Nylas Ruby SDK

A topic by atejada created Nov 27, 2022 Views: 294 Replies: 4
Viewing posts 1 to 4
(+3)

I work at a company called Nylas, which deals with email, calendars and contacts. When I read about Decker (I used HyperCard eons ago) I instantly thought about making some sort of integration between them.

I simply used the Nylas Ruby SDK to fetch contacts in my address book, grab the profile picture, download it, resize it and change its format using ImageMagic and then call a little Lil script via Lilt to make them into an encoded string. Then I simply generate the source code for a .deck file, so that it can be opened with Decker. 

Here are some screenshots:


My idea is to release a blog post, a live stream and a code sample (Will add all links on this thread) as I want to help Decker get more exposure and of course, do my job at the same time 馃槄

And nope...I don't personally know Hulk...and that's not his personal or work email 馃ゲ

(+1)

Nice! Looking forward to the blog post!

Thanks 馃槉 

(+2)

The livestream is tomorrow 馃槃  How to build an agenda using Decker and Ruby | Coding with Nylas

https://www.youtube.com/live/xDXy-v54pTM?feature=share 

here LinkedIn just in case 馃槈 

https://www.linkedin.com/video/event/urn:li:ugcPost:7008554541847629824/

Developer (2 edits) (+1)

Neat! I enjoyed watching the livestream.

Decker's ".deck" file format is very simple and easy to generate directly, but Lilt can also programmatically manipulate decks!

Imagine we had an API endpoint that lets anyone fetch address book data as JSON like so:

[
  {
    "name":"alice",
    "email":"alice@alice-rules.com",
    "photo":"https://alice-rules.com/photo.png"
  },
  {
    "name":"jane",
    "email":"jane@janeswebzone.pizza",
    "photo":"https://janeswebzone.pizza/about/jane.png"
  }
]

Additionally, imagine we've already created a ".deck" template, with a card named "entry" that has a number of fields we wish to fill out and a canvas named "photo" for the person's thumbnail image.

Using Lil in concert with the curl and imagemagick commandline utilities, we could do something like the following: