GithubHelp home page GithubHelp logo

usememos / memos Goto Github PK

View Code? Open in Web Editor NEW
27.3K 27.3K 2.0K 28.9 MB

An open source, lightweight note-taking service. Easily capture and share your great thoughts.

Home Page: https://usememos.com

License: MIT License

Go 50.12% HTML 0.11% TypeScript 47.62% Less 0.30% Dockerfile 0.10% JavaScript 0.13% CSS 0.07% Shell 0.43% PowerShell 1.13%
docker free go markdown memo microblog note-taking react self-hosted social-network sqlite

memos's Introduction

Memos

A privacy-first, lightweight note-taking service. Easily capture and share your great thoughts.

Home PageBlogsDocsLive Demo

Docker pull Discord

demo

Key points

  • Open source and free forever. Embrace a future where creativity knows no boundaries with our open-source solution – free today, tomorrow, and always.
  • Self-hosting with Docker in just seconds. Enjoy the flexibility, scalability, and ease of setup that Docker provides, allowing you to have full control over your data and privacy.
  • Pure text with added Markdown support. Say goodbye to the overwhelming mental burden of rich formatting and embrace a minimalist approach.
  • Customize and share your notes effortlessly. With our intuitive sharing features, you can easily collaborate and distribute your notes with others.
  • RESTful API for third-party services. Embrace the power of integration and unleash new possibilities with our RESTful API support.

Deploy with Docker in seconds

docker run -d --name memos -p 5230:5230 -v ~/.memos/:/var/opt/memos neosmemo/memos:stable

The ~/.memos/ directory will be used as the data directory on your local machine, while /var/opt/memos is the directory of the volume in Docker and should not be modified.

Learn more about other installation methods.

Contribution

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. We greatly appreciate any contributions you make. Thank you for being a part of our community! 🥰

Internationalization

Memos supports multiple languages. You can help us translate Memos into your language. We use Weblate to manage translations.

Translation status

Star history

Star History Chart

Other projects

  • Slash: An open source, self-hosted bookmarks and link sharing platform. Save and share your links very easily.
  • Gomark: A markdown parser written in Go for Memos. And its WebAssembly version is also available.

memos's People

Contributors

aatumaykin avatar ajaykumbhare avatar athurg avatar boojack avatar chaslui avatar correctroadh avatar den13501 avatar dependabot[bot] avatar dmitriisurmin avatar dontwatchmecode avatar dubzer avatar f97 avatar hyoban avatar jxpsert avatar kusanaginoturugi avatar lincolnthalles avatar lqwakeup avatar mehadnd avatar michaelien avatar moehanabi avatar nalderto avatar nulta avatar shrutic-git avatar unliar avatar weblate avatar wujiao233 avatar xwjdsh avatar yujianghao avatar zeng1998 avatar zty42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

memos's Issues

默认的密码是多少?

之前test和guest的密码都是123456,但是现在出入密码会出现😟 Request failed with status code 400

Environment variables are invalid

All environment variables are invalid and cannot be started with a non-root user in version 0.2.0. This did not appear in version 0.1.3.

0.2.0:
图片

0.1.3:
图片

功能建议

  1. 希望有图床功能,小vps存图片有点受不了。
  2. 输入#号后希望可以有标签列表。
  3. 还是希望能有微信渠道的发送方式
  4. 生成的分享图片可以用筛选后的结果生成。

Memos unsupported arm on raspberry pi

When I install memos on my raspberry pi using docker it gives me an unsupported arm64 error, is there any way to solve this?

Thanks very much.

root@pi:~# docker run --name memos --publish 5230:5230 --volume /www/wwwroot/note.f97.xyz:/var/opt/memos
 -e mode=prod -e port=5230 neosmemo/memos:0.1.3
Unable to find image 'neosmemo/memos:0.1.3' locally
0.1.3: Pulling from neosmemo/memos
97518928ae5f: Pull complete
0408c3031dd8: Pull complete
6cfeef34c3ab: Pull complete
d9f790065503: Pull complete
f7da0a14d252: Pull complete
Digest: sha256:b11e90f2ace97911b8cda578659adf4ff1079d3e5118d5701f330415bd2af4be
Status: Downloaded newer image for neosmemo/memos:0.1.3
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform 
(linux/arm64/v8) and no specific platform was requested
exec ./memos: exec format error
root@pi:~#

image

No way to exit recycle bin

Hi team great work! I found 2 bugs and hope can help improve

Realized 2 issues for this:

  1. entering into recycle bin and there is no exit button; got stuck there forever even close the pane and reopen
  2. created a note and deleted it, but it was not shown in the recycle bin, seems recycle bin is not functioning

一些功能测试及建议

  1. 选择Tag之后,直接空格再输入内容,Tag可以被识别。如果输入Tag后回车再输入,Tag将不会被识别
  2. 在代码模块里,当用# 号作为注释时,也会被识别为Tag。【这一点看下您的一个设计思路是否会全功能支持代码块;对于较长的代码块看是否可以实现折叠显示】
    image
  3. 当前数据库的密码是明文存储的,作为自用倒是无所谓,后续是否会做密码加密的功能
  4. 是否可以添加一个“开放注册”的选项。我理解的当前是这个可能是个人自用,就不希望开放注册功能。当然这会带来一个问题,如何添加自己的用户,这样就增加了部署成本(需要有数据库操作经验);可以有个选项控制注册用户的总数或者是程序启动时的一个传参
  5. 后续有无预留插件的想法,以便自由添加一些功能模块

非常感谢作者的付出!

The most recent commit has serious errors.

The most recent commit has serious errors.
Login:

😟 code=500, 
message=Failed to set login session, 
internal=failed to get session, err:
securecookie: the value is not valid

Sign up, use username test:

😟 code=401,
 message=Existed user found: test

prod 不能注册登录啊?日志里面只有一堆空指针

自动跳到/signin怎么填都是401, 开发环境的那个帐号也不能用, 删了那个db文件重来也不行

docker run -d \
	--name memos \
	--log-opt max-size=30m \
    	--log-opt max-file=2 \
    	--restart always \
	--publish 5230:5230 \
	--volume /opt/memos:/var/opt/memos \
	-e mode=prod -e port=5230 \
	neosmemo/memos:0.1.2
Version 0.1.2 has started at :5230
GET /api/user/me 401
echo: http: panic serving 192.168.1.8:33040: runtime error: invalid memory address or nil pointer dereference
goroutine 10 [running]:
net/http.(*conn).serve.func1(0xc0000a15e0)
	/usr/local/go/src/net/http/server.go:1805 +0x153
panic(0x9bfac0, 0xd61e40)
	/usr/local/go/src/runtime/panic.go:971 +0x499
net/http.(*timeoutHandler).ServeHTTP(0xc0001940c0, 0xaec250, 0xc00019a000, 0xc0000e4300)
	/usr/local/go/src/net/http/server.go:3302 +0x949
github.com/labstack/echo/v4/middleware.TimeoutWithConfig.func1.1(0xaf4698, 0xc0001a0000, 0xdcda40, 0x203000)
	/go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/timeout.go:118 +0x292
github.com/labstack/echo/v4/middleware.LoggerWithConfig.func2.1(0xaf4698, 0xc0001a0000, 0x0, 0x0)
	/go/pkg/mod/github.com/labstack/echo/[email protected]/middleware/logger.go:117 +0x12c
github.com/labstack/echo/v4.(*Echo).ServeHTTP(0xc0000ab200, 0xaec250, 0xc00019a000, 0xc0000e4300)
	/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:663 +0x2bc
net/http.serverHandler.ServeHTTP(0xc0000ee1c0, 0xaec250, 0xc00019a000, 0xc0000e4300)
	/usr/local/go/src/net/http/server.go:2868 +0xa3
net/http.(*conn).serve(0xc0000a15e0, 0xaecfc0, 0xc000130240)
	/usr/local/go/src/net/http/server.go:1933 +0x8cd
created by net/http.(*Server).Serve
	/usr/local/go/src/net/http/server.go:2994 +0x39b

memos升级后无法使用

原有的memo笔记都无法读取了,写新的memo会在daily notes 中记录,但是也无法提取。
打开memos就会报fetch error的错误。
请问有遇到过这个情况的吗?

Disable auto-seed data in prod mode

Discussed in #59

Originally posted by alim0x May 19, 2022
目前创建用户默认id 102,101 是 guest,是否有办法删除访客并禁用访客登录,或者容器启动时有没有相关配置参数🧐

Bug: 时区不同导致前端报错

可能与 #2 相关。
在部署时发现,时区错误(笔记时间在未来时)会导致网页无法加载/提交笔记,刷新后提示「😭 请求数据失败了」。此时数据库内有笔记、API 正常响应,但日期在未来。影响范围不只是时区设置错误,跨时区访问也可能会造成此问题。

 是否可以在后端使用 UNIX 时间戳来存放日期,前端解析到本机时区呢?

若部署在「Asia/Shanghai」,尝试将系统调整为「UTC」,发布笔记后应该可以复现。


一些不相关的问题:

  • 数据库若是要更新,请问如何迁移原有数据啊;
  • 在自建部署时,网页仍会加载 Google Analytics。

修改记录时间

因为有Daily Review的存在,那么就会有需要修改item的记录时间的场景,这样才能更好的展示时间线。不知是否可增加?

Bug: 输入内容含有空格,但保存后丢失

1.问题描述

输入内容含有空格,但保存后丢失了一个空格

2.代码

#docker #nginx
docker run -d -p 80:80 -p 81:81 -p 801:801 --name nginx-server -v C:/Users/leopold/nginx/conf.d/default.conf:/etc/nginx/conf.d/default.conf -v C:/Users/leopold/nginx/www:/usr/share/nginx/html -v C:/Users/leopold/nginx/conf/nginx.conf:/etc/nginx/nginx.conf -v C:/Users/leopold/nginx/logs:/var/log/nginx nginx:1.22.0

3.结果

image

4.是否能复现

本地能复现

5.临时解决方法

标签与内容之间若无回车符可临时解决此问题

Editor bug in Firefox

When editing, and when entering a user name, the cursor cannot be placed anywhere, and only the left and right keys can be used to move left and right. This bug does not appear in the chromium kernel browser.
图片

能否无痛升级?docker版本号建议

这个项目非常合胃口呀,年纪大了不想在twitter微博叨叨,普通的叨叨又不想写到播客上,这是个很好的出口。

前天部署了 0.1.3 用下来总体满意,看到demo支持todo列表的动态勾选, 0.1.3 没有,于是心动(但是鬼迷心窍没有备份),直接把 docker run 配置文件的映像版本号改成 dev ,然后就悲剧了。停止 0.1.3 容器,删除 0.1.3 容器,启动 dev 容器。

报错,代码500.

然后又作死停止 dev 容器,删除 dev 容器,启动 0.1.3 容器。

报错,代码401

image

建议作者能否把 docker 的最新稳定版本 tag 改为 latest,这样更新方便一些

折叠Memo

太长篇幅的memo还需要折叠,显示效果更好

手机页面输入框无法输入

使用memo:nextmemo:latest docker镜像部署,使用手机浏览器打开时,出现输入框无法聚焦的问题,倒是无法输入。
使用了微信内置浏览器,Chrome,Safari测试,情况一样。
c712e46bf2852bc1f5fc6a817e94950

安装文档过时

按照文档可以运行,但是一直运行在 dev 模式下,看了下代码中的 mode 好像从 env 获取?还有就是当前的 memos_release.db 结构不对,报错是缺少 paasword_hash 列。

import from JSON之后,无法创建新的shortcuts

测试版本0.0.1、0.1.0、dev都有此问题。
新建容器后,可以创建shortcuts,然后再导入json备份文件,再创建新的shortcuts时,点击New Filter按钮,就会回到主界面,无法创建新的shortcuts。

【Bug】Share Memo图片另存没反应

版本:v0.1.2
Edge浏览器(Chrome内核)下分享Memo点击图片另存没反应,右键复制是可以的
Safari浏览器下分享Memo可以另存,但是保存的文件名称为Unknow【无文件后缀】,建议优化例为如memos-idxxx.png

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.