Skip to content

KraXen72/local-harper

Repository files navigation

local-harper

screenshot

The main idea is that it uses Codemirror as the editor framework, since it's pretty lightweight and has a lot of plugins.

  • The suggestions are handled using @codemirror/autocomplete and some custom handling, so you can use both your keyboard and mouse to accept them
  • The underlining is using @codemirror/lint, so it's properly integrated with the editor and doesen't have any de-syncing issues when scrolling

features

  • live, performant and local grammar checking with harper
  • keyboard shortcuts & navigation
  • issue sidebar: clicking issue in editor focused sidebar and vice-versa
  • initial dictionary support (localStorage)
  • sleek UI built with solid-js and tailwindcss@4
  • rule manager
  • word counter (words, characters, sentences, paragraphs)
  • planned: dictionary manager

installation & try it out

pre-req: git, nodejs, pnpm.

git clone https://github.com/KraXen72/local-harper
cd local-harper
pnpm i
pnpm dev

note to harper maintainers/potential contributors

Most of the harper specific logic is probably (possibly very) bad. This is due to the fact that it's mostly vibecoded. I am in the process of cleaning up the codebase, so it goes from the "working PoC" stage into something more maintainable long term. I will eargerly accept any improvements/rewrites to the harper-specific logic (or to any part of the app, really). Thank you for making harper!

testing text:

There are some cases where the the standard grammar
checkers don't cut it. That;s where Harper comes in handy.

Harper is an language checker for developers. It can detect
improper capitalization and misspellled words,
as well as a number of other issues.
Like if you break up words you shoul dn't.
Harper can be an lifesaver when writing technical documents, 
emails or other formal forms of communication.

Harper works everywhere, even when you're not online. Since your data
never leaves your device, you don't ned too worry aout us
selling it or using it to train large language models.

The best part: Harper can give you feedback instantly.
For most documents, Harper can serve up suggestions in
under 10 ms, faster that Grammarly.

The best part: Harper can give you feedback instantly,
For most documents, Harper can serve up suggestions in
under 10 ms, faster that Grammarly,
The best part: Harper can give you feedback instantly,
For most documents, Harper can serve up suggestions in
under 10 ms, faster that Grammarly,
The best part: Harper can give you feedback instantly,
For most documents, Harper can serve up suggestions in
under 10 ms, faster that Grammarly.

About

local grammar checker built with harper.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors