Code Monkey home page Code Monkey logo

gnotes's Introduction

gnotes

Do you read and forget? gnotes helps you become an active reader.

Take freeform notes on things you've read, and generate an explorable view of your notes in an interactive timeline with filters.

Like learning out loud? Publish your notes to the public internet to share with the world.

image

Install

npm install

Adding notes

npm run new <you-note-name>

Fill out the meta data how you see fit, using any any conventions you like. You can move your note.md file anywhere inside notes/.

Viewing your notes

Locally: npm run view

Click to the link to open your webpage in the browser.

Deploy: npm run build

JSON API

Builds of your notes also produce a JSON API (enabled by default).

/notes.json

Returns metadata for all your notes

curl <your site>/api/notes.json
Example response: [ { "id": "clairefro/gnotes/notes/parmenides-on-nature.md", "fm": { "title": "On Nature", "author": "Parmenides", "yearPublished": -480, "type": "๐Ÿ“œ poem", "link": "http://philoctetes.free.fr/parmenidesunicode.htm", "tags": ["philosophy", "presocratic"], "lastNoted": "2021-12-28" }, "prettyUrl": "https://github.com/clairefro/gnotes/blob/main/notes/parmenides-on-nature.md", "rawUrl": "https://raw.githubusercontent.com/clairefro/gnotes/main/notes/parmenides-on-nature.md", "relPath": "notes/parmenides-on-nature.md" }, { "id": "clairefro/gnotes/notes/endo-shusaku-silence.md", "fm": { "title": "Silence", "author": "Endo, Shusaku", "yearPublished": 1966, "type": "๐Ÿ“• book", "link": "https://celmoreblog.files.wordpress.com/2016/05/235449575-silence-shusaku-endo-william-johnston.pdf", "tags": [ "fiction", "philosophy", "religion", "martyrdom", "christianity", "japan", "missionary" ], "lastNoted": "2021-12-16" }, "prettyUrl": "https://github.com/clairefro/gnotes/blob/main/notes/endo-shusaku-silence.md", "rawUrl": "https://raw.githubusercontent.com/clairefro/gnotes/main/notes/endo-shusaku-silence.md", "relPath": "notes/endo-shusaku-silence.md" } ]

/info.json

Reutrns a summary of metadata about all your notes

curl <your site>/api/info.json
Example response: { "repoUrl": "https://github.com/clairefro/gnotes", "summary": { "notes": { "count": 7 }, "authors": { "count": 7, "map": { "Arendt, Hannah": 1, "Boethius": 1, "Borges, Jorge Luis": 1, "Endo, Shusaku": 1, "Watts, Alan": 1, "Parmenides": 1, "Zhuangzi": 1 } }, "types": { "count": 2, "map": { "๐Ÿ“• book": 6, "๐Ÿ“œ poem": 1 } }, "tags": { "count": 12, "map": { "philosophy": 6, "fiction": 3, "religion": 2, "totalitarianism": 1, "politics": 1, "infinity": 1, "martyrdom": 1, "christianity": 1, "japan": 1, "missionary": 1, "presocratic": 1, "taoism": 1 } }, "yearPublished": { "min": -480, "max": 1996, "diff": 2476 } } }

Config

You can update the notesDir, distDir, whether or not to build webpage and/or API, and more.

See gnotes-config.js.

To change the distDir, update config.distDir in package.json

gnotes's People

Contributors

clairefro avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.