~/talk

Building a Browser Extension with Kotlin

Talkat KotlinConf 2018 · 2018-10-03..10-05· [kotlin, web-platform]
slides:none on file

Kotlin compiled to JavaScript is used to build a fully working, type-safe browser extension by generating Kotlin/JS external declarations for the WebExtensions API. The approach parses MDN JSON with a generator mini-compiler that emits Kotlin code, integrates with Gradle and the Kotlin/JS toolchain, and produces generated interfaces that enable IDE completion and catch real type errors at compile time. The result is a small Firefox extension using the WebExtensions manifest and a near-instant edit→reload workflow.

AI-written summary · about

  1. 0:00Browser extensions with Kotlin
  2. 2:54Why Kotlin for dynamic features
  3. 5:23WebExtensions standard support
  4. 9:20Type-safe JS API declarations
  5. 12:26JavaScript interop with external classes
  6. 17:58Code generation from JS parameters
  7. 21:42Testing in Firefox
  8. 26:32Project setup with Kotlin DSL
  9. 28:26Running and debugging
  10. 34:05Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.