npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

gcal-sync

v1.11.0

Published

🔄 add an one way synchronization from ticktick tasks and github commits to google calendar and track your progress effortlessly.

Downloads

277

Readme

:trumpet: Overview

Add an one way synchronization from ticktick tasks and github commits to your google calendar and boost your time-tracking capabilities and productivity analysis.

:question: Motivation

This project was deeply inspired by this tool, and my main reason for creating this was to track my progress over my completed ticktick tasks, moving them to another calendar, which was not possible in the mentioned project at the time.

:dart: Features

   ✔️ sync your ticktick tasks to google calendar;    ✔️ sync your github commits to google calendar;    ✔️ every completed task in ticktick will be moved to its corresponding completed google calendar;    ✔️ updates corresponding google calendar event in case of changes in ticktick task date or name;    ✔️ option to send a daily summary notification of what gcalsync has done throughout the day;    ✔️ option to sync each ticktick list to a different google calendar;    ✔️ option to ignore certain tasks based on tags;    ✔️ you can add a url link to run the sync function manually whenever you want.

:warning: Requirements

The only thing you need to use this solution is a gmail/google account.

:bulb: Usage

How it works

It basically sets a function to run in google apps scripts to run at every 5 minutes, and this function is responsable for:

  • sync your ticktick tasks to google calendar;
  • sync your github commits to google calendar;
  • send you optional emails about session. daily changes, errors and new versions.

Installation

To effectively use this project, do the following steps:

if you want to change the google event color, you can choose from 12 options:

1   -> blue
2   -> green
3   -> purple
4   -> red
5   -> yellow
6   -> orange
7   -> turquoise
8   -> gray
9   -> bold blue
10  -> bold green
11  -> bold red

General tips

  • in case of deleted ticktick tasks (that means, you dont intend to do it anymore) that are in gcal, make sure to delete in gcal as well. If not, they will be moved to its corresponding completed calendar;
  • it is not necessary to generate a github token in order to sync commits, it is only required if you want to sync your contributions to private repos as well;
  • every update in ticktick may take 5 minutes to propagate to its ics calendars;

Updating

To update your esports-notifier instance and use the latest features, you just need to change the version number in the getGcalSync function, as it is shown bellow:

So if your instance is running at version "1.0.0" and the latest is "3.6.1", just replace those numbers in the version variable.

It is a good practice to go to the dist folder everytime you update your instance to check if your files in GAS are the same as the new version; if they're not this may cause erros.

Uninstall

If you want to receive the daily emails, just go to the GAS respective project in the header dropdown menu select the uninstall function and then click on the Run button. By doing that, the GAS trigger responsable for running everyday the function will be deleted.

:wrench: Development

Development setup

# Clone this repository
$ git clone https://github.com/lucasvtiradentes/gcal-sync

# Go into the repository
$ cd gcal-sync

# Install dependencies
$ npm install

If you want to contribute to the project, fork the project, make the necessary changes, and to test your work on google apps scripts with do this:

  1. run npm run build in order to generate the dist files. After that, create a new GAS file (ex: dev_gcal.gs) and paste the content of gcalsync_dev on this new GAS file.

  2. after that, update the content of the getGcalSync as specified bellow:

function getGcalSync() {
  // ...
  const useDevVersion = true; // set this to true to use your gcal-sync version

  if (useDevVersion) {
    const GcalSync = getGcalSyncDev(); // your work is here
  }
  // ...
}

now you can test your work really easy on production/GAS!

Used technologies

This project uses the following thechnologies:

:books: About

Related

  • online-ics: online tool to view the content of ICS calendars;
  • gas-ics-sync: A Google Apps Script for syncing ICS/ICAL files faster than the current Google Calendar speed. This was my main inspiration;
  • esports-notifier: get an daily email whenever one of your favorite eSports team has a match at day in games such as csgo, valorant and rainbow six siege;
  • twitch-notifier: get email notifications when only your favorite twitch streamers go live.

License

This project is distributed under the terms of the MIT License Version 2.0. A complete version of the license is available in the LICENSE file in this repository. Any contribution made to this project will be licensed under the MIT License Version 2.0.

Feedback

If you have any questions or suggestions you are welcome to discuss it on github issues or, if you prefer, you can reach me in my social media provided bellow.