Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

feat: added obsidian plugin

Elijah Potter3056b27cdb8a
diff --git a/packages/obsidian-plugin/.gitignore b/packages/obsidian-plugin/.gitignore
new file mode 100644
index 000000000..f56f695e9
--- /dev/null
+++ b/packages/obsidian-plugin/.gitignore
@@ -0,0 +1,2 @@
+*.wasm
+node_modules
diff --git a/packages/obsidian-plugin/manifest.json b/packages/obsidian-plugin/manifest.json
new file mode 100644
index 000000000..9cf8cd018
--- /dev/null
+++ b/packages/obsidian-plugin/manifest.json
@@ -0,0 +1,10 @@
+{
+ "id": "harper",
+ "name": "harper",
+ "version": "0.0.1",
+ "minAppVersion": "0.15.0",
+ "description": "The Grammar Checker for Developers",
+ "author": "Elijah Potter",
+ "authorUrl": "https://elijahpotter.dev",
+ "isDesktopOnly": false
+}
diff --git a/packages/obsidian-plugin/package.json b/packages/obsidian-plugin/package.json
new file mode 100644
index 000000000..1bf4deac6
--- /dev/null
+++ b/packages/obsidian-plugin/package.json
@@ -0,0 +1,18 @@
+{
+ "name": "obsidian-plugin",
+ "private": true,
+ "version": "0.0.1",
+ "main": "main.js",
+ "devDependencies": {
+ "@rollup/plugin-node-resolve": "^15.2.3",
+ "@rollup/plugin-wasm": "^6.2.2",
+ "rollup": "^4.13.0"
+ },
+ "scripts": {
+ "build": "rollup -c",
+ "dev": "rollup -c --watch"
+ },
+ "dependencies": {
+ "wasm": "link:../../harper-wasm/pkg"
+ }
+}
diff --git a/packages/obsidian-plugin/rollup.config.mjs b/packages/obsidian-plugin/rollup.config.mjs
new file mode 100644
index 000000000..6d0b2d697
--- /dev/null
+++ b/packages/obsidian-plugin/rollup.config.mjs
@@ -0,0 +1,26 @@
+import { wasm } from '@rollup/plugin-wasm';
+import { nodeResolve } from '@rollup/plugin-node-resolve';
+
+export default {
+ input: 'src/main.js',
+ output: {
+ dir: '.',
+ format: 'cjs'
+ },
+ external: [
+ "obsidian",
+ "electron",
+ "@codemirror/autocomplete",
+ "@codemirror/collab",
+ "@codemirror/commands",
+ "@codemirror/language",
+ "@codemirror/lint",
+ "@codemirror/search",
+ "@codemirror/state",
+ "@codemirror/view",
+ "@lezer/common",
+ "@lezer/highlight",
+ "@lezer/lr",
+ ],
+ plugins: [wasm({ maxFileSize: Math.pow(2, 32), publicPath: "./" }), nodeResolve()]
+};
diff --git a/packages/obsidian-plugin/src/main.js b/packages/obsidian-plugin/src/main.js
new file mode 100644
index 000000000..945ae1ea9
--- /dev/null
+++ b/packages/obsidian-plugin/src/main.js
@@ -0,0 +1,144 @@
+import { linter } from "@codemirror/lint";
+import { Plugin } from "obsidian";
+import { EditorView } from "@codemirror/view"
+import wasm from "wasm/harper_wasm_bg.wasm";
+import init, { lint, use_spell_check } from "wasm";
+
+function contentToString(content) {
+ return content.reduce((p, c) => p + c, "");
+}
+
+function suggestionToLabel(sug) {
+ if (sug === "Remove") {
+ return "Remove";
+ } else {
+ return `Replace with "${contentToString(sug.ReplaceWith)}"`;
+ }
+}
+
+const harperLinter = linter(
+ async (view) => {
+ let text = view.state.doc.sliceString(-1);
+
+ await init(await wasm());
+ use_spell_check(false);
+ let lints = lint(text);
+
+ return lints.map((lint) => {
+ return {
+ from: lint.span.start,
+ to: lint.span.end,
+ severity: "error",
+ message: lint.message,
+ actions: lint.suggestions.map((sug, i) => {
+ return {
+ name: suggestionToLabel(sug),
+ apply: (view) => {
+ if (sug === "Remove") {
+ view.dispatch({
+ changes: {
+ from: lint.span.start,
+ to: lint.span.end,
+ insert: "",
+ },
+ });
+ } else {
+ view.dispatch({
+ changes: {
+ from: lint.span.start,
+ to: lint.span.end,
+ insert: contentToString(
+ sug.ReplaceWith,
+ ),
+ },
+ });
+ }
+ },
+ };
+ }),
+ };
+ });
+ },
+ { delay: -1 },
+);
+
+const theme = EditorView.baseTheme({
+ ".cm-diagnostic": {
+ padding: "4px !important",
+ marginLeft: "0px !important",
+ display: "block",
+ whiteSpace: "pre-wrap",
+ },
+ ".cm-diagnostic-error": { borderLeft: "none !important" },
+ ".cm-diagnostic-warning": { borderLeft: "none !important" },
+ ".cm-diagnostic-info": { borderLeft: "none !important" },
+ ".cm-diagnostic-hint": { borderLeft: "none !important" },
+
+ // The buttons
+ ".cm-diagnosticAction": {
+ margin: "0px !important",
+ display: "flex !important",
+ alignItems: "center !important",
+ gap: "var(--size-4-2) !important",
+ padding: "var(--size-4-1) var(--size-4-2) !important",
+ cursor: "var(--cursor) !important",
+ fontSize: "var(--font-ui-small) !important",
+ borderRadius: "var(--radius-s) !important",
+ whiteSpace: "nowrap !important",
+ backgroundColor: "white !important",
+ color: "black !important",
+ width: "100%"
+ },
+
+ ".cm-diagnosticSource": {
+ fontSize: "70%",
+ opacity: .7
+ },
+
+ ".cm-tooltip-lint": {
+ padding: 0,
+ margin: 0,
+ },
+
+ ".cm-tooltip": {
+ padding: "var(--size-2-3) !important",
+ border: "1px solid var(--background-modifier-border-hover) !important",
+ backgroundColor: "var(--background-secondary) !important",
+ borderRadius: "var(--radius-m) !important",
+ boxShadow: "var(--shadow-s) !important",
+ zIndex: "var(--layer-menu) !important",
+ userSelect: "none !important",
+ maxHeight: "calc(100% - var(--header-height)) !important",
+ overflow: "hidden !important",
+ },
+
+ ".cm-lintPoint": {
+ position: "relative",
+
+ "&:after": {
+ content: '""',
+ position: "absolute",
+ bottom: 0,
+ left: "-2px",
+ borderLeft: "3px solid transparent",
+ borderRight: "3px solid transparent",
+ borderBottom: "4px solid #d11"
+ }
+ },
+
+ ".cm-lintPoint-warning": {
+ "&:after": { borderBottomColor: "orange" }
+ },
+ ".cm-lintPoint-info": {
+ "&:after": { borderBottomColor: "#999" }
+ },
+ ".cm-lintPoint-hint": {
+ "&:after": { borderBottomColor: "#66d" }
+ },
+})
+
+export default class HarperPlugin extends Plugin {
+ async onload() {
+ this.registerEditorExtension([harperLinter, theme]);
+ }
+}
diff --git a/packages/obsidian-plugin/yarn.lock b/packages/obsidian-plugin/yarn.lock
new file mode 100644
index 000000000..ecbbb84c5
--- /dev/null
+++ b/packages/obsidian-plugin/yarn.lock
@@ -0,0 +1,206 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+
+"@rollup/plugin-node-resolve@^15.2.3":
+ version "15.2.3"
+ resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.2.3.tgz#e5e0b059bd85ca57489492f295ce88c2d4b0daf9"
+ integrity sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==
+ dependencies:
+ "@rollup/pluginutils" "^5.0.1"
+ "@types/resolve" "1.20.2"
+ deepmerge "^4.2.2"
+ is-builtin-module "^3.2.1"
+ is-module "^1.0.0"
+ resolve "^1.22.1"
+
+"@rollup/plugin-wasm@^6.2.2":
+ version "6.2.2"
+ resolved "https://registry.yarnpkg.com/@rollup/plugin-wasm/-/plugin-wasm-6.2.2.tgz#ea75fd8cc5ddba1e30bdc22e07cdbaf8d6d160bf"
+ integrity sha512-gpC4R1G9Ni92ZIRTexqbhX7U+9estZrbhP+9SRb0DW9xpB9g7j34r+J2hqrcW/lRI7dJaU84MxZM0Rt82tqYPQ==
+ dependencies:
+ "@rollup/pluginutils" "^5.0.2"
+
+"@rollup/pluginutils@^5.0.1", "@rollup/pluginutils@^5.0.2":
+ version "5.1.0"
+ resolved "https://registry.yarnpkg.com/@rollup/pluginutils/-/pluginutils-5.1.0.tgz#7e53eddc8c7f483a4ad0b94afb1f7f5fd3c771e0"
+ integrity sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==
+ dependencies:
+ "@types/estree" "^1.0.0"
+ estree-walker "^2.0.2"
+ picomatch "^2.3.1"
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.13.0.tgz#b98786c1304b4ff8db3a873180b778649b5dff2b"
+ integrity sha512-5ZYPOuaAqEH/W3gYsRkxQATBW3Ii1MfaT4EQstTnLKViLi2gLSQmlmtTpGucNP3sXEpOiI5tdGhjdE111ekyEg==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.13.0.tgz#8833679af11172b1bf1ab7cb3bad84df4caf0c9e"
+ integrity sha512-BSbaCmn8ZadK3UAQdlauSvtaJjhlDEjS5hEVVIN3A4bbl3X+otyf/kOJV08bYiRxfejP3DXFzO2jz3G20107+Q==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.13.0.tgz#ef02d73e0a95d406e0eb4fd61a53d5d17775659b"
+ integrity sha512-Ovf2evVaP6sW5Ut0GHyUSOqA6tVKfrTHddtmxGQc1CTQa1Cw3/KMCDEEICZBbyppcwnhMwcDce9ZRxdWRpVd6g==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.13.0.tgz#3ce5b9bcf92b3341a5c1c58a3e6bcce0ea9e7455"
+ integrity sha512-U+Jcxm89UTK592vZ2J9st9ajRv/hrwHdnvyuJpa5A2ngGSVHypigidkQJP+YiGL6JODiUeMzkqQzbCG3At81Gg==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.13.0.tgz#3d3d2c018bdd8e037c6bfedd52acfff1c97e4be4"
+ integrity sha512-8wZidaUJUTIR5T4vRS22VkSMOVooG0F4N+JSwQXWSRiC6yfEsFMLTYRFHvby5mFFuExHa/yAp9juSphQQJAijQ==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.13.0.tgz#5fc8cc978ff396eaa136d7bfe05b5b9138064143"
+ integrity sha512-Iu0Kno1vrD7zHQDxOmvweqLkAzjxEVqNhUIXBsZ8hu8Oak7/5VTPrxOEZXYC1nmrBVJp0ZcL2E7lSuuOVaE3+w==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.13.0.tgz#f2ae7d7bed416ffa26d6b948ac5772b520700eef"
+ integrity sha512-C31QrW47llgVyrRjIwiOwsHFcaIwmkKi3PCroQY5aVq4H0A5v/vVVAtFsI1nfBngtoRpeREvZOkIhmRwUKkAdw==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.13.0.tgz#303d57a328ee9a50c85385936f31cf62306d30b6"
+ integrity sha512-Oq90dtMHvthFOPMl7pt7KmxzX7E71AfyIhh+cPhLY9oko97Zf2C9tt/XJD4RgxhaGeAraAXDtqxvKE1y/j35lA==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.13.0.tgz#f672f6508f090fc73f08ba40ff76c20b57424778"
+ integrity sha512-yUD/8wMffnTKuiIsl6xU+4IA8UNhQ/f1sAnQebmE/lyQ8abjsVyDkyRkWop0kdMhKMprpNIhPmYlCxgHrPoXoA==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.13.0.tgz#d2f34b1b157f3e7f13925bca3288192a66755a89"
+ integrity sha512-9RyNqoFNdF0vu/qqX63fKotBh43fJQeYC98hCaf89DYQpv+xu0D8QFSOS0biA7cGuqJFOc1bJ+m2rhhsKcw1hw==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.13.0.tgz#8ffecc980ae4d9899eb2f9c4ae471a8d58d2da6b"
+ integrity sha512-46ue8ymtm/5PUU6pCvjlic0z82qWkxv54GTJZgHrQUuZnVH+tvvSP0LsozIDsCBFO4VjJ13N68wqrKSeScUKdA==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.13.0.tgz#a7505884f415662e088365b9218b2b03a88fc6f2"
+ integrity sha512-P5/MqLdLSlqxbeuJ3YDeX37srC8mCflSyTrUsgbU1c/U9j6l2g2GiIdYaGD9QjdMQPMSgYm7hgg0551wHyIluw==
+
+"@rollup/[email protected]":
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.13.0.tgz#6abd79db7ff8d01a58865ba20a63cfd23d9e2a10"
+ integrity sha512-UKXUQNbO3DOhzLRwHSpa0HnhhCgNODvfoPWv2FCXme8N/ANFfhIPMGuOT+QuKd16+B5yxZ0HdpNlqPvTMS1qfw==
+
+"@types/[email protected]", "@types/estree@^1.0.0":
+ version "1.0.5"
+ resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4"
+ integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==
+
+ version "1.20.2"
+ resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975"
+ integrity sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==
+
+builtin-modules@^3.3.0:
+ version "3.3.0"
+ resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6"
+ integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==
+
+deepmerge@^4.2.2:
+ version "4.3.1"
+ resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.3.1.tgz#44b5f2147cd3b00d4b56137685966f26fd25dd4a"
+ integrity sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==
+
+estree-walker@^2.0.2:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/estree-walker/-/estree-walker-2.0.2.tgz#52f010178c2a4c117a7757cfe942adb7d2da4cac"
+ integrity sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==
+
+fsevents@~2.3.2:
+ version "2.3.3"
+ resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6"
+ integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
+
+function-bind@^1.1.2:
+ version "1.1.2"
+ resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c"
+ integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==
+
+hasown@^2.0.0:
+ version "2.0.2"
+ resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003"
+ integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==
+ dependencies:
+ function-bind "^1.1.2"
+
+is-builtin-module@^3.2.1:
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169"
+ integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==
+ dependencies:
+ builtin-modules "^3.3.0"
+
+is-core-module@^2.13.0:
+ version "2.13.1"
+ resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384"
+ integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==
+ dependencies:
+ hasown "^2.0.0"
+
+is-module@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/is-module/-/is-module-1.0.0.tgz#3258fb69f78c14d5b815d664336b4cffb6441591"
+ integrity sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==
+
+path-parse@^1.0.7:
+ version "1.0.7"
+ resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735"
+ integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==
+
+picomatch@^2.3.1:
+ version "2.3.1"
+ resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
+ integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==
+
+resolve@^1.22.1:
+ version "1.22.8"
+ resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d"
+ integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==
+ dependencies:
+ is-core-module "^2.13.0"
+ path-parse "^1.0.7"
+ supports-preserve-symlinks-flag "^1.0.0"
+
+rollup@^4.13.0:
+ version "4.13.0"
+ resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.13.0.tgz#dd2ae144b4cdc2ea25420477f68d4937a721237a"
+ integrity sha512-3YegKemjoQnYKmsBlOHfMLVPPA5xLkQ8MHLLSw/fBrFaVkEayL51DilPpNNLq1exr98F2B1TzrV0FUlN3gWRPg==
+ dependencies:
+ "@types/estree" "1.0.5"
+ optionalDependencies:
+ "@rollup/rollup-android-arm-eabi" "4.13.0"
+ "@rollup/rollup-android-arm64" "4.13.0"
+ "@rollup/rollup-darwin-arm64" "4.13.0"
+ "@rollup/rollup-darwin-x64" "4.13.0"
+ "@rollup/rollup-linux-arm-gnueabihf" "4.13.0"
+ "@rollup/rollup-linux-arm64-gnu" "4.13.0"
+ "@rollup/rollup-linux-arm64-musl" "4.13.0"
+ "@rollup/rollup-linux-riscv64-gnu" "4.13.0"
+ "@rollup/rollup-linux-x64-gnu" "4.13.0"
+ "@rollup/rollup-linux-x64-musl" "4.13.0"
+ "@rollup/rollup-win32-arm64-msvc" "4.13.0"
+ "@rollup/rollup-win32-ia32-msvc" "4.13.0"
+ "@rollup/rollup-win32-x64-msvc" "4.13.0"
+ fsevents "~2.3.2"
+
+supports-preserve-symlinks-flag@^1.0.0:
+ version "1.0.0"
+ resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"
+ integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==
+
+"wasm@file:../../../../Projects/harper/harper-wasm/pkg":
+ version "0.1.0"
diff --git a/web/.dockerignore b/packages/web/.dockerignore
similarity index 100%
rename from web/.dockerignore
rename to packages/web/.dockerignore
diff --git a/web/.eslintignore b/packages/web/.eslintignore
similarity index 100%
rename from web/.eslintignore
rename to packages/web/.eslintignore
diff --git a/web/.eslintrc.cjs b/packages/web/.eslintrc.cjs
similarity index 100%
rename from web/.eslintrc.cjs
rename to packages/web/.eslintrc.cjs
diff --git a/web/.gitignore b/packages/web/.gitignore
similarity index 100%
rename from web/.gitignore
rename to packages/web/.gitignore
diff --git a/web/.npmrc b/packages/web/.npmrc
similarity index 100%
rename from web/.npmrc
rename to packages/web/.npmrc
diff --git a/web/.prettierignore b/packages/web/.prettierignore
similarity index 100%
rename from web/.prettierignore
rename to packages/web/.prettierignore
diff --git a/web/.prettierrc b/packages/web/.prettierrc
similarity index 100%
rename from web/.prettierrc
rename to packages/web/.prettierrc
diff --git a/web/package.json b/packages/web/package.json
similarity index 100%
rename from web/package.json
rename to packages/web/package.json
diff --git a/web/postcss.config.js b/packages/web/postcss.config.js
similarity index 100%
rename from web/postcss.config.js
rename to packages/web/postcss.config.js
diff --git a/web/src/app.css b/packages/web/src/app.css
similarity index 100%
rename from web/src/app.css
rename to packages/web/src/app.css
diff --git a/web/src/app.d.ts b/packages/web/src/app.d.ts
similarity index 100%
rename from web/src/app.d.ts
rename to packages/web/src/app.d.ts
diff --git a/web/src/app.html b/packages/web/src/app.html
similarity index 100%
rename from web/src/app.html
rename to packages/web/src/app.html
diff --git a/web/src/lib/GutterCenter.svelte b/packages/web/src/lib/GutterCenter.svelte
similarity index 100%
rename from web/src/lib/GutterCenter.svelte
rename to packages/web/src/lib/GutterCenter.svelte
diff --git a/web/src/lib/Logo.svelte b/packages/web/src/lib/Logo.svelte
similarity index 100%
rename from web/src/lib/Logo.svelte
rename to packages/web/src/lib/Logo.svelte
diff --git a/web/src/lib/NewEditor.svelte b/packages/web/src/lib/NewEditor.svelte
similarity index 100%
rename from web/src/lib/NewEditor.svelte
rename to packages/web/src/lib/NewEditor.svelte
diff --git a/web/src/lib/Underlines.svelte b/packages/web/src/lib/Underlines.svelte
similarity index 100%
rename from web/src/lib/Underlines.svelte
rename to packages/web/src/lib/Underlines.svelte
diff --git a/web/src/lib/analysis.ts b/packages/web/src/lib/analysis.ts
similarity index 100%
rename from web/src/lib/analysis.ts
rename to packages/web/src/lib/analysis.ts
diff --git a/web/src/lib/index.ts b/packages/web/src/lib/index.ts
similarity index 100%
rename from web/src/lib/index.ts
rename to packages/web/src/lib/index.ts
diff --git a/web/src/routes/+layout.svelte b/packages/web/src/routes/+layout.svelte
similarity index 100%
rename from web/src/routes/+layout.svelte
rename to packages/web/src/routes/+layout.svelte
diff --git a/web/src/routes/+page.server.js b/packages/web/src/routes/+page.server.js
similarity index 100%
rename from web/src/routes/+page.server.js
rename to packages/web/src/routes/+page.server.js
diff --git a/web/src/routes/+page.svelte b/packages/web/src/routes/+page.svelte
similarity index 100%
rename from web/src/routes/+page.svelte
rename to packages/web/src/routes/+page.svelte
diff --git a/web/static/android-chrome-192x192.png b/packages/web/static/android-chrome-192x192.png
similarity index 100%
rename from web/static/android-chrome-192x192.png
rename to packages/web/static/android-chrome-192x192.png
diff --git a/web/static/android-chrome-512x512.png b/packages/web/static/android-chrome-512x512.png
similarity index 100%
rename from web/static/android-chrome-512x512.png
rename to packages/web/static/android-chrome-512x512.png
diff --git a/web/static/apple-touch-icon.png b/packages/web/static/apple-touch-icon.png
similarity index 100%
rename from web/static/apple-touch-icon.png
rename to packages/web/static/apple-touch-icon.png
diff --git a/web/static/browserconfig.xml b/packages/web/static/browserconfig.xml
similarity index 100%
rename from web/static/browserconfig.xml
rename to packages/web/static/browserconfig.xml
diff --git a/web/static/favicon-16x16.png b/packages/web/static/favicon-16x16.png
similarity index 100%
rename from web/static/favicon-16x16.png
rename to packages/web/static/favicon-16x16.png
diff --git a/web/static/favicon-32x32.png b/packages/web/static/favicon-32x32.png
similarity index 100%
rename from web/static/favicon-32x32.png
rename to packages/web/static/favicon-32x32.png
diff --git a/web/static/favicon.ico b/packages/web/static/favicon.ico
similarity index 100%
rename from web/static/favicon.ico
rename to packages/web/static/favicon.ico
diff --git a/web/static/fonts/outfit.ttf b/packages/web/static/fonts/outfit.ttf
similarity index 100%
rename from web/static/fonts/outfit.ttf
rename to packages/web/static/fonts/outfit.ttf
diff --git a/web/static/icons/github.svg b/packages/web/static/icons/github.svg
similarity index 100%
rename from web/static/icons/github.svg
rename to packages/web/static/icons/github.svg
diff --git a/web/static/icons/profile.svg b/packages/web/static/icons/profile.svg
similarity index 100%
rename from web/static/icons/profile.svg
rename to packages/web/static/icons/profile.svg
diff --git a/web/static/maskable.png b/packages/web/static/maskable.png
similarity index 100%
rename from web/static/maskable.png
rename to packages/web/static/maskable.png
diff --git a/web/static/mstile-150x150.png b/packages/web/static/mstile-150x150.png
similarity index 100%
rename from web/static/mstile-150x150.png
rename to packages/web/static/mstile-150x150.png
diff --git a/web/static/safari-pinned-tab.svg b/packages/web/static/safari-pinned-tab.svg
similarity index 100%
rename from web/static/safari-pinned-tab.svg
rename to packages/web/static/safari-pinned-tab.svg
diff --git a/web/static/site.webmanifest b/packages/web/static/site.webmanifest
similarity index 100%
rename from web/static/site.webmanifest
rename to packages/web/static/site.webmanifest
diff --git a/web/svelte.config.js b/packages/web/svelte.config.js
similarity index 100%
rename from web/svelte.config.js
rename to packages/web/svelte.config.js
diff --git a/web/tailwind.config.js b/packages/web/tailwind.config.js
similarity index 100%
rename from web/tailwind.config.js
rename to packages/web/tailwind.config.js
diff --git a/web/tsconfig.json b/packages/web/tsconfig.json
similarity index 100%
rename from web/tsconfig.json
rename to packages/web/tsconfig.json
diff --git a/web/vite.config.ts b/packages/web/vite.config.ts
similarity index 100%
rename from web/vite.config.ts
rename to packages/web/vite.config.ts
diff --git a/web/yarn.lock b/packages/web/yarn.lock
similarity index 100%
rename from web/yarn.lock
rename to packages/web/yarn.lock