Files
notesnook/packages/core
Ammar Ahmed 210549445e global: add support for expiring notes (#9167)
* core: expiring notes

* core: add tests

* mobile: support setting not expiry date

* web: support note expiry dates
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

* core: add tests for expiring notes

* core: fix tests

* mobile: delete expiring notes at startup

* core: create index on expiry date

* core: minor refactor

* core: remove `.only` sync test

* web: refactors

* mobile: set limit on expiring notes

* web: improve expiry date menu option && note item ui
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

* web: add premium check for setting expiry for notes
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

* web: move note expiry date dialog into its own file && minor changes
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>

* web: delete expired notes on startup

* web: minor refactors

---------

Co-authored-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
2026-01-16 10:55:40 +05:00
..
2025-10-02 09:24:50 +05:00
2024-06-05 10:28:28 +05:00
2025-12-12 09:37:11 +05:00
2025-12-12 09:37:11 +05:00
2022-08-31 20:04:15 +05:00

Notesnook Core

The shared core for building Notesnook on any platform.

Developer guide | How to build? | Run the tests

Build instructions

Before you start it is recommended that you read the contributing guidelines.

Setting up the development environment

Requirements:

  1. Node.js
  2. git
  3. NPM (not yarn or pnpm)

Before you can do anything, you'll need to install Node.js on your system.

Once you have completed the setup, the first step is to clone the monorepo:

git clone https://github.com/streetwriters/notesnook.git

# change directory
cd notesnook

Once you are inside the ./notesnook directory, run the preparation step:

# this might take a while to complete
npm install

And that's it. You can run the tests to make sure everything is working as it should:

npm run test:core

Developer guide

The tech stack

We try to keep the stack as lean as possible

  1. Javascript
  2. Jest: Testing framework

Running the tests

When you are done making the required changes, you need to run the tests. We use Jest as the testing framework & the tests can be run with a single command:

npm run test:core