The first time I saw Observable HQ, I was amazed by the simplicity and power of the notebook editor. I was so impressed I spent the rest of the day playing with it with the wonder and joy of seeing something truly spectacular. I wanted to create a similar editor for my personal use. This project is a simple editor that allows me to write markdown and code in the same editor. The editor is built using SvelteKit and uses the Monaco editor for code editing.
The code is a simple SvelteKit project. To run the project, you need to have Node.js installed. Clone the repository and run the following commands:
# install dependencies
npm install
# install playwright
npx playwright install
# start the server and open the app in a new browser tab
npm run dev -- --open
Looking at package.json, you can see that there are a number of scripts that you can run. The most important ones are:
dev
: Start the development serverbuild
: Create production buildpreview
: Preview the production buildtest
: Run all the teststest-watch
: Run the tests in watch mode with the unit test automatically re-running when the code changestest:unit
: Run the unit teststest:unit-watch
: Run the unit tests in watch modetest:integration
: Run the integration testslint
: Lint the codeformat
: Format the codeThis project is licensed under the MIT License - see the LICENSE file for details.