Skip to content

Instantly share code, notes, and snippets.

@yevbar
Created December 2, 2018 17:33
Show Gist options
  • Save yevbar/af36ec9c96e2c6df9f794f33943d3f98 to your computer and use it in GitHub Desktop.
Save yevbar/af36ec9c96e2c6df9f794f33943d3f98 to your computer and use it in GitHub Desktop.

ChromeExtension -

  • When "annotate" triggered
    • Copy selected text
    • Copy current URL
    • Copy document.scroll.X and document.scroll.X
    • Include other data needed for web annotation standards
    • Send to memex.com (or whichever endpoint is for gathering them
    • Save ^ data to a local directory (each its own file like maildir)
    • Display popup with "recommended" annotations
  • Separate application page (chrome extensions have these at chrome://...)
    • List of your annotated items as well as a better discovery dashboard

Electron App -

  • Electron embeds a website so we're really just embedding a website
  • The website
    • Single page for functionality (additional pages would be purely social/discovery)
    • Monaco for editor (simpler to configure and does more by default (is from VS Code)
    • If not loaded already, iterate over directory with local annotations and load into Monaco
    • As user types, user should be able to see suggested autocompletes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment