Skip to content
This repository was archived by the owner on Oct 7, 2023. It is now read-only.

kyoheiu/marks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

marks

Git-powered self-hostable online text editor.

features

  • In data directory you store text files, and marks enables you to edit or delete them, or add a new one.
  • On save, the change will be automatically added and commited by git.
  • No fancy editing feature such as WYSIWYG.
  • No tags, no categories, no subdirectories.
  • Texts with .md extension are converted to html in the view mode.
  • Search file name and contents with fd-find and ripgrep (regex pattern supported).
  • Lightweight: Compressed docker image size is ~50MB.

deploy

  1. If not initialized, git init in your data directory. To commit on save, add user.name and user.email to data/.git/config like this:
[user]
    name = Kyohei Uto
    email = "im@kyoheiu.dev"
  1. Use docker compose up -d with docker-compose.yml. For example:
version: '3.3'
services:
    marks:
        user: '1000:1000' # must be the same as the user who executed `git.init`.
        environment:
            - MARKS_GIT_USER="marks"  # default to 'marks'. Used for the signature when commiting.
            - MARKS_GIT_EMAIL="im@kyoheiu.dev" # default to 'git@example.com'
        volumes:
            - './data:/marks/data:rw'
            - '/etc/passwd:/etc/passwd:ro'
            - '/etc/group:/etc/group:ro'
        ports:
            - '8080:8080'
        container_name: marks
        image: 'kyoheiudev/marks:0.5.0'
        logging:
          driver: json-file
          options:
            max-size: 1m
            max-file: '3'

tech stack

  • frontend
    • svelte
  • backend
    • rust(axum)
    • git2

About

Git-powered self-hostable online text editor.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors