Add Flatnotes
This commit is contained in:
parent
0055e54fab
commit
a989d8b703
52
apps/flatnotes/config.json
Normal file
52
apps/flatnotes/config.json
Normal file
|
@ -0,0 +1,52 @@
|
|||
{
|
||||
"$schema": "../schema.json",
|
||||
"name": "flatnotes",
|
||||
"available": true,
|
||||
"exposable": true,
|
||||
"id": "flatnotes",
|
||||
"port": 8137,
|
||||
"tipi_version": 1,
|
||||
"version": "v2.1.1",
|
||||
"categories": ["utilities"],
|
||||
"description": "A self-hosted, database-less note taking web app that utilises a flat folder of markdown files for storage.",
|
||||
"short_desc": "A self-hosted, database-less note taking web app",
|
||||
"author": "Dullage",
|
||||
"source": "https://github.com/Dullage/flatnotes",
|
||||
"website": "https://demo.flatnotes.io/",
|
||||
"form_fields": [
|
||||
{
|
||||
"type": "text",
|
||||
"label": "Flatnotes Auth Type",
|
||||
"hint": "Either `password` or `totp` for 2FA",
|
||||
"placeholder": "password",
|
||||
"required": true,
|
||||
"env_variable": "FLATNOTES_AUTH_TYPE"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"label": "Flatnotes Username",
|
||||
"min": 2,
|
||||
"required": true,
|
||||
"env_variable": "FLATNOTES_USERNAME"
|
||||
},
|
||||
{
|
||||
"type": "text",
|
||||
"label": "Flatnotes Password",
|
||||
"min": 5,
|
||||
"required": true,
|
||||
"env_variable": "FLATNOTES_PASSWORD"
|
||||
},
|
||||
{
|
||||
"type": "random",
|
||||
"label": "FLATNOTES_SECRET_KEY",
|
||||
"min": 32,
|
||||
"env_variable": "FLATNOTES_SECRET_KEY"
|
||||
},
|
||||
{
|
||||
"type": "random",
|
||||
"label": "FLATNOTES_TOTP_KEY",
|
||||
"min": 32,
|
||||
"env_variable": "FLATNOTES_TOTP_KEY"
|
||||
}
|
||||
]
|
||||
}
|
28
apps/flatnotes/docker-compose.yml
Normal file
28
apps/flatnotes/docker-compose.yml
Normal file
|
@ -0,0 +1,28 @@
|
|||
version: "3"
|
||||
|
||||
services:
|
||||
flatnotes:
|
||||
container_name: flatnotes
|
||||
image: dullage/flatnotes:v2.1.1
|
||||
environment:
|
||||
FLATNOTES_AUTH_TYPE: ${FLATNOTES_AUTH_TYPE}
|
||||
FLATNOTES_USERNAME: ${FLATNOTES_USERNAME}
|
||||
FLATNOTES_PASSWORD: ${FLATNOTES_PASSWORD}
|
||||
FLATNOTES_SECRET_KEY: ${FLATNOTES_SECRET_KEY}
|
||||
FLATNOTES_TOTP_KEY: ${FLATNOTES_TOTP_KEY}
|
||||
volumes:
|
||||
- "${APP_DATA_DIR}/data:/app/data"
|
||||
# - "./index:/app/data/.flatnotes"
|
||||
# Optional. Allows you to save the search index in a different location.
|
||||
ports:
|
||||
- ${APP_PORT}:80
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- tipi_main_network
|
||||
labels:
|
||||
traefik.enable: ${APP_EXPOSED}
|
||||
traefik.http.routers.flatnotes.rule: Host(`${APP_DOMAIN}`)
|
||||
traefik.http.routers.flatnotes.entrypoints: websecure
|
||||
traefik.http.routers.flatnotes.service: flatnotes
|
||||
traefik.http.routers.flatnotes.tls.certresolver: myresolver
|
||||
traefik.http.services.flatnotes.loadbalancer.server.port: 80
|
76
apps/flatnotes/metadata/description.md
Normal file
76
apps/flatnotes/metadata/description.md
Normal file
|
@ -0,0 +1,76 @@
|
|||
A self-hosted, database-less note taking web app that utilises a flat folder of markdown files for storage.
|
||||
|
||||
|
||||
## Design Principle
|
||||
|
||||
flatnotes is designed to be a distraction free note taking app that puts your note content first. This means:
|
||||
|
||||
* A clean and simple user interface.
|
||||
* No folders, notebooks or anything like that. Just all of your notes, backed by powerful search and tagging functionality.
|
||||
* Quick access to a full text search from anywhere in the app (keyboard shortcut "/").
|
||||
|
||||
Another key design principle is not to take your notes hostage. Your notes are just markdown files. There's no database, proprietary formatting, complicated folder structures or anything like that. You're free at any point to just move the files elsewhere and use another app.
|
||||
|
||||
Equally, the only thing flatnotes caches is the search index and that's incrementally synced on every search (and when flatnotes first starts). This means that you're free to add, edit & delete the markdown files outside of flatnotes even whilst flatnotes is running.
|
||||
|
||||
See the [Environment Variables](https://github.com/Dullage/flatnotes/wiki/Environment-Variables) article in the wiki for a full list of configuration options.
|
||||
|
||||
|
||||
## Q&A
|
||||
|
||||
### Where is the database?
|
||||
There is no database, only a single folder of markdown files (and the .flatnotes sub-folder).
|
||||
|
||||
### What is the .flatnotes sub-folder for?
|
||||
This stores a full text index of your note content allowing for rapid search times.
|
||||
|
||||
### Can I delete the .flatnotes sub-folder?
|
||||
As long as flatnotes isn't running, sure! It'll just get rebuilt then next time flatnotes is run.
|
||||
|
||||
### Can I add, edit & delete the markdown files outside of flatnotes?
|
||||
Yup. The only thing flatnotes caches is the search index and that's synced on every search (and when flatnotes first starts).
|
||||
|
||||
### Can I perform advanced searches?
|
||||
Yes! See the [Advanced Searching](https://github.com/Dullage/flatnotes/wiki/Advanced-Searching) wiki page.
|
||||
|
||||
### How do I get my notes out of flatnotes?
|
||||
They're just markdown files. You're free to just move the files elsewhere and use another app.
|
||||
|
||||
### Is there an API?
|
||||
Yes. The docs are available at the `/docs` endpoint. See [demo.flatnotes.io/docs](https://demo.flatnotes.io/docs) as an example.
|
||||
|
||||
### If there aren't any folders, how to I organise my notes?
|
||||
The first option is to choose not to. This frees you from the burden of organisation. You can then rely on flatnotes' powerful search functionality to find the note you are looking for.
|
||||
|
||||
Additionally you are able to tag notes by using a hashtag anywhere in the note content e.g. #work. Tags are indexed separately from the rest of the content and so can be searched separately either by using the field prefix e.g. "tags:work" or using the hashtag shortcut e.g. "#work".
|
||||
|
||||
### What types of authentication are supported?
|
||||
There are 3 types:
|
||||
|
||||
- None = No authentication, the site is open to anyone with access.
|
||||
- Password = The site is protected by a username and password.
|
||||
- TOTP = In addition to a username and password, the site is also protected by a time based one-time-password.
|
||||
|
||||
See the [Environment Variables](https://github.com/Dullage/flatnotes/wiki/Environment-Variables) article in the wiki for more information.
|
||||
|
||||
|
||||
## Roadmap
|
||||
|
||||
I want to keep flatnotes as simple and distraction free as possible which means limiting new features. This said, I welcome feedback and suggestions.
|
||||
|
||||
One feature I do plan to implement is the ability to *share* a note. In the spirit of simple and database-less, the current plan is to generate temporary pre-signed URLs but this needs to be explored.
|
||||
|
||||
|
||||
## Sponsorship
|
||||
|
||||
If you find this project useful, please consider buying me a coffee. It would make my day.
|
||||
|
||||
[!["Buy Me A Coffee"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/dullage)
|
||||
|
||||
|
||||
## Thanks
|
||||
|
||||
A special thanks to 2 fantastic open source projects that make flatnotes possible.
|
||||
|
||||
* [Whoosh](https://whoosh.readthedocs.io/en/latest/intro.html) - A fast, pure Python search engine library.
|
||||
* [TOAST UI Editor](https://ui.toast.com/tui-editor) - A GFM Markdown and WYSIWYG editor for the browser.
|
BIN
apps/flatnotes/metadata/logo.jpg
Normal file
BIN
apps/flatnotes/metadata/logo.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 31 KiB |
Loading…
Reference in New Issue
Block a user