Skip to content
Proyek

Tentang

📝 A simple, private place for all your notes and ideas. Organize with boards, add images, write together in real time, and share securely, fully under your control.

Produktivitas dan otomatisasi

Cara angka ini diukur

Yang dapat Anda lakukan

  • Self-Hosting: daylog is a pure Next.js application, allowing you to host it on your own server or preferred hosting service.
  • Multi-user: daylog is multi-user, allowing you to create multiple accounts and manage your own data.
  • Boards: daylog is board-based, giving you the flexibility to organize notes by context, projects, or as folders.
  • Notes: Your notes can be simple text or formatted using Markdown.

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

daylog

daylog_portrait

Quality Gate Status

✨ A board based simple text and markdown notes web application.

Stable version

If you want to use the stable version of daylog, you can find it here. Keep in mind that main branch is always in development and may not be stable.

Who is it for?

Privacy-conscious individuals

  • Want a Notion/Obsidian-style notes app, but on their own server instead of a third-party cloud.
  • Opt-in AES-256 encryption + 2FA for sensitive data (personal journal, credentials, ideas).

Small teams / self-hosters

  • Homelabbers and devs already running their stack (Postgres + Redis) who want full control.
  • Live multi-user editing for shared team notes without relying on a SaaS.

Concrete use cases

  • Internal knowledge base for a startup that doesn't want to pay for Notion/Confluence.
  • Self-hosted project wiki and boards.
  • Personal journal or second brain with occasional public sharing via links (password + expiry).

Features

  • Self-Hosting: daylog is a pure Next.js application, allowing you to host it on your own server or preferred hosting service.
  • Multi-user: daylog is multi-user, allowing you to create multiple accounts and manage your own data.
  • Boards: daylog is board-based, giving you the flexibility to organize notes by context, projects, or as folders.
  • Notes: Your notes can be simple text or formatted using Markdown.
  • Editor: daylog includes a Markdown editor with essential formatting options, perfect for beginners.
  • Search: Easily find notes or boards with a single keyword using the built-in search feature.
  • Dark/Light mode: daylog supports both dark and light modes, making it easy on the eyes.
  • Responsive design: daylog is designed to be responsive and works well on both desktop and mobile devices.
  • Unsplash integration: daylog includes a built-in image search feature using Unsplash, allowing you to easily find and insert images into your notes.
  • 2FA: daylog includes a built-in 2FA feature, allowing you to add an extra layer of security to your account.
  • S3 integration: daylog includes a built-in s3 integration feature, allowing you to store your notes and boards uploaded images in a cloud storage service.
  • Real-time collaboration: Multiple users can edit the same note live, with presence indicators showing who's editing.
  • Field encryption: Opt-in AES-256-GCM encryption for your board and note content, with the key derived from your password.
  • Version history: Every note change is tracked, so you can browse past versions and comment on them.
  • Public sharing: Share notes via public links with optional password protection, expiry dates, and view tracking.
  • Shared boards: Share boards with other users and collaborate within a community space.
  • Internationalization: Available in English, Spanish, French, and German.

Demo

A walkthrough of the full flow: creating a board, creating a note, editing the note, and sharing it, ending on the shared note's public page with password protection.

https://github.com/user-attachments/assets/200c1a5f-0819-42dd-98b4-a6e1f067a365

Production Installation (Docker Compose)

  1. Download docker-compose.yml file:
wget https://github.com/artifacts-oss/daylog/releases/latest/download/docker-compose.yml
  1. Setup .env file:

Download the .env.example file and rename it to .env.

wget https://github.com/artifacts-oss/daylog/releases/latest/download/default.env.example -O .env

You can keep the default values or you can change them.

  1. Run docker compose:
docker compose up -d

Production Installation (Docker Hub)

To install and run daylog in a production environment using docker, follow these steps:

  1. Create a docker network:
docker network create daylog-net
  1. Run a postgres container:
docker run -d \
--name daylog-db \
--network daylog-net \
-e POSTGRES_USER=postgres \
-e POSTGRES_PASSWORD=postgres \
-e POSTGRES_DB=daylog \
-v daylog_data:/var/lib/postgresql/data \
postgres:16
  1. Run a redis container:
docker run -d \
--name daylog-redis \
--network daylog-net \
-v daylog_redis:/data \
redis:7-alpine
  1. Run daylog container:
docker run -d \
 --name daylog \
 --network daylog-net \
 -p 3000:3000 \
 -v daylog_storage:/app/storage \
 -e DATABASE_URL=postgresql://postgres:postgres@daylog-db:5432/daylog?schema=public \
 -e REDIS_URL=redis://daylog-redis:6379 \
 -e ENVIRONMENT=production \
 -e STORAGE_PATH=/app/storage \
 davidartifacts/daylog:latest

Production Installation (npm)

To install and run daylog in a production environment, follow these steps:

  1. Clone the repository:
git clone https://github.com/artifacts-oss/daylog.git
cd daylog
  1. Install dependencies:
npm install
  1. Set up environment variables: Copy .env.example and setup your own variables. Important: by default daylog uses PostgreSQL, you can change your conection string to any other database engine supported by Prisma ORM. You can follow their guide to achieve this step. daylog also requires a Redis instance for real-time collaboration — set REDIS_URL (e.g. redis://localhost:6379).

  2. Initialize the Prisma database:

npx prisma migrate deploy
npx prisma generate
  1. Build the application:
npm run build
  1. Start the application:
npm start
  1. (optional) Configure a process manager: Use a process manager like PM2 to keep your application running:
npm install -g pm2
pm2 start npm --name "daylog" -- start
pm2 save
pm2 startup
  1. Set up a reverse proxy: Configure a reverse proxy using Nginx or another web server to forward requests to your Node.js application.

  2. Secure your application: Ensure your application is served over HTTPS and configure appropriate security headers.

Your daylog application should now be running in a production environment.

Initial Setup

Go to http://localhost:3000/register/init to create an admin user.

After creating the admin user, you can log in using the credentials you just created.

Check the .env file to see the available environment variables.

TODOs

  • Improve grammar 📖
  • Enhance MD editor 🖊
  • Improve user security (data encryption, account recovery, email verification) 🔐
  • Create breadcrumbs navigation 🚢
  • Create public link sharing option ✉
  • Create shared boards 📰
  • Improve production deployment instructions 🛠
  • And many more cool features in the future 🚀...

Build with

External components

Local Development

To set up a local development environment for daylog, you can follow the same steps as Production but with this changes:

  1. Set up dev environment variable: Change ENVIRONMENT variable to 'development'

  2. Initialize the Prisma database:

npx prisma deploy
  1. Run the development server:
npm run dev

Your daylog application should now be running locally at http://localhost:3000.

Running Tests

To run tests for the daylog application, use the following command:

npm run test

This will execute the test suite and provide feedback on the application's functionality.

Disclaimer

This project is provided "as is" without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages, or other liability, whether in an action of contract, tort, or otherwise, arising from, out of, or in connection with the software or the use or other dealings in the software.

License

This project is licensed under the Apache-2.0 License. See the LICENSE file for details.

About The Author

Hi! I'm David, and I'm glad to have you in this repo. This is my first open-source project, and there's still a lot of work to do to enhance the user experience and implement new features I have in mind.

Feel free to use it as your personal note-taking app or share it with your friends, colleagues, and family. I’d truly appreciate any feedback to improve the code in this repo or any kind of collaboration.

Donations

Money is not the best reward—your time and collaboration are. However, if you'd like to support me (the author), you can make a donation to keep me motivated and hydrated (with some coffee, of course) at:

Buy Me A Coffee

Thank you! ❤

Jelajahi proyek terkait

Memuat…