Offline, privacy-first grammar checker. Fast, open-source, Rust-powered
feat: completed presentation for ACM
Elijah Potter436ca7e358a3
diff --git a/packages/web/package.json b/packages/web/package.jsonindex dc89f9e82..7b11b2915 100644--- a/packages/web/package.json+++ b/packages/web/package.json@@ -13,6 +13,7 @@"@flydotio/dockerfile": "^0.5.0","@sveltejs/adapter-node": "^3.0.3","@sveltejs/kit": "^1.20.4",+ "@types/reveal.js": "^5.0.3","@typescript-eslint/eslint-plugin": "^6.0.0","@typescript-eslint/parser": "^6.0.0","autoprefixer": "^10.4.16",@@ -31,6 +32,7 @@"type": "module","dependencies": {"lodash-es": "^4.17.21",+ "reveal.js": "^5.1.0","svelte-intersection-observer": "^1.0.0","wasm": "link:../../harper-wasm/pkg"}diff --git a/packages/web/src/routes/+page.server.js b/packages/web/src/routes/+layout.jssimilarity index 100%rename from packages/web/src/routes/+page.server.jsrename to packages/web/src/routes/+layout.jsdiff --git a/packages/web/src/routes/presentation/+page.svelte b/packages/web/src/routes/presentation/+page.sveltenew file mode 100644index 000000000..54c57c710--- /dev/null+++ b/packages/web/src/routes/presentation/+page.svelte@@ -0,0 +1,111 @@+<script lang="ts">+ import 'reveal.js/dist/reveal.css';+ import 'reveal.js/dist/theme/serif.css';+ import Reveal from 'reveal.js';+ import { onMount } from 'svelte';+ import Logo from '$lib/Logo.svelte';++ onMount(() => {+ let deck = new Reveal();+ deck.initialize();+ });+</script>++<div class="reveal">+ <div class="slides">+ <section>+ <Logo width="50%" />+ <h1>Harper</h1>+ <h2>The Grammar Checker for Developers</h2>+ </section>+ <section>+ <h1>The Problem:</h1>+ <h1 class="fragment fade-in"><strong>Grammarly</strong></h1>+ </section>+ <section>+ <h3>It is a privacy nightmare.</h3>+ <p class="fragment fade-in">+ Every request gets sent to their servers and stored <strong>forever.</strong>+ </p>+ </section>+ <section>+ <h3>It is <i>slow.</i></h3>+ <p class="fragment fade-in">Grammarly requests can take as many as 4000ms to resolve.*</p>+ </section>+ <section>+ <h3>LanguageTool</h3>+ <p class="fragment fade-in">You can self-host it, but...</p>+ <p class="fragment fade-in">there are memory issues.</p>+ </section>+ <section>+ <Logo width="40%" />+ <h2>Let me introduce:</h2>+ <h1>Harper</h1>+ </section>+ <section>+ <h2>The mission:</h2>+ <p>Create a grammar checker of the same caliber as Grammarly and LanguageTool.</p>+ <p class="fragment fade-in"><strong>Without the cruft.</strong></p>+ </section>+ <section>+ <h2>That means:</h2>+ <ul>+ <li class="fragment fade-in">It must be completely private.</li>+ <li class="fragment fade-in">It must encourage painless revision <i>by a human</i>.</li>+ <li class="fragment fade-in">It has to get out of the way.</li>+ </ul>+ </section>+ <section>+ <h2>Harper (right now)</h2>+ <ul>+ <li class="fragment fade-in">Runs on-device.</li>+ <li class="fragment fade-in">+ The entire grammar checker fits under 500kb (including datasets).+ </li>+ <li class="fragment fade-in">Completes checking on large documents in under 10-20ms.</li>+ </ul>+ </section>+ <section>+ <h2>Linters</h2>+ <ul>+ <li>"a" v.s. "an" usage.</li>+ <li>Spell-checking.</li>+ <li>Accidental word repetition (e.x. "We ate at <i>the the</i> cafe").</li>+ <li>Extraneous spaces.</li>+ <li>More than 100 curated patterns.</li>+ <li>Run-on sentances.</li>+ </ul>+ </section>+ <section>+ <h2>Availability</h2>+ <h3>Full Support:</h3>+ <ul>+ <li>Neovim (LSP)</li>+ <li>Web (WebAssembly)</li>+ </ul>+ <h3>Early Access (talk to me)</h3>+ <ul><li>Obsidian (CodeMirror + WebAssembly)</li></ul>+ <h3>Planned:</h3>+ <ul>+ <li>JetBrains products (LSP)</li>+ <li>Visual Studio Code (LSP)</li>+ </ul>+ </section>+ <section>+ <h2>Try It!</h2>+ <p>+ Go to <a href="https://writewithharper.com">https://writewithharper.com</a> on a laptop.+ <img+ alt="The QR code for the website."+ src=" https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=https://writewithharper.com"+ />+ </p>+ </section>+ </div>+</div>++<style>+ .reveal * {+ text-align: left;+ }+</style>diff --git a/packages/yarn.lock b/packages/yarn.lockindex 331f0aee6..2b6c4105b 100644--- a/packages/yarn.lock+++ b/packages/yarn.lock@@ -579,6 +579,11 @@resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975"integrity sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==+"@types/reveal.js@^5.0.3":+ version "5.0.3"+ resolved "https://registry.yarnpkg.com/@types/reveal.js/-/reveal.js-5.0.3.tgz#3d53723d1a959027af4270888c84fb0f9e189acb"+ integrity sha512-gwnK8TR38IOBIORWFrV5/z9lRX4iLke2FBqNgRhXxehaWJFkrzVY2TVzfdX/SX94eugt+OI5l++zDBBSfdzruQ==+"@types/semver@^7.5.0":version "7.5.8"resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.8.tgz#8268a8c57a3e4abd25c165ecd36237db7948a55e"@@ -2084,6 +2089,11 @@ reusify@^1.0.4:resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==+reveal.js@^5.1.0:+ version "5.1.0"+ resolved "https://registry.yarnpkg.com/reveal.js/-/reveal.js-5.1.0.tgz#dfaa4631127e739aa8ebbaa425d653e72d799e66"+ integrity sha512-KDt7m0+xwKV6nAZt4CNPVFBf42sTKRQapg0bGGKB5PKO5XvChnMfwlZkybydHiQJ7p5+6LbHKRGrhXODdoNIaA==+rimraf@^2.5.2:version "2.7.1"resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec"@@ -2214,7 +2224,16 @@ source-map-js@^1.0.1, source-map-js@^1.0.2:resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.0.2.tgz#adbc361d9c62df380125e7f161f71c826f1e490c"integrity sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==-"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:+"string-width-cjs@npm:string-width@^4.2.0":+ version "4.2.3"+ resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"+ integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==+ dependencies:+ emoji-regex "^8.0.0"+ is-fullwidth-code-point "^3.0.0"+ strip-ansi "^6.0.1"++string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:version "4.2.3"resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==@@ -2232,7 +2251,14 @@ string-width@^5.0.1, string-width@^5.1.2:emoji-regex "^9.2.2"strip-ansi "^7.0.1"-"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:+"strip-ansi-cjs@npm:strip-ansi@^6.0.1":+ version "6.0.1"+ resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"+ integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==+ dependencies:+ ansi-regex "^5.0.1"++strip-ansi@^6.0.0, strip-ansi@^6.0.1:version "6.0.1"resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==@@ -2582,6 +2608,7 @@ vitefu@^0.2.4:"wasm@link:../harper-wasm/pkg":version "0.0.0"+ uid ""which@^2.0.1:version "2.0.2"@@ -2590,7 +2617,16 @@ which@^2.0.1:dependencies:isexe "^2.0.0"-"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:+"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":+ version "7.0.0"+ resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"+ integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==+ dependencies:+ ansi-styles "^4.0.0"+ string-width "^4.1.0"+ strip-ansi "^6.0.0"++wrap-ansi@^7.0.0:version "7.0.0"resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==