No description
  • Python 57.3%
  • HTML 40.4%
  • CSS 1.2%
  • JavaScript 1.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-06-30 19:53:46 +02:00
example_config Document the RapidAPI (MashApe) key for favicons 2020-05-06 14:04:33 +02:00
static ESLint hint about 'M' being global (MaterializeCSS) 2018-05-25 16:17:29 +02:00
templates Updated to 1.0.0 release of MaterializeCSS 2018-09-11 13:10:06 +02:00
.gitignore Improved ignores 2018-01-12 12:23:58 +01:00
__init__.py Needed for importing settings.py 2017-12-17 13:44:41 +01:00
CHANGELOG.md Updated some urls 2018-08-29 16:36:23 +02:00
digimarks.py Serve the search JS with the correct mimetype 2022-07-23 11:10:55 +02:00
LICENSE Initial commit 2016-07-07 14:42:48 +02:00
README.rst Note on freshness 2026-02-11 16:49:55 +01:00
requirements-dev.in Development requirements 2017-11-03 16:52:48 +01:00
requirements-dev.txt Dependency updates 2026-06-30 19:53:46 +02:00
requirements.in Replaced deprecated AtomFeed by feedgen; some dep updates 2020-07-28 14:52:44 +02:00
requirements.txt Dependency updates 2026-06-30 19:53:46 +02:00
setup.py Actual 1.2.0 version 2026-02-11 16:24:39 +01:00
wsgi.py Python 2+3 2017-12-17 13:52:00 +01:00

digimarks
=========

|PyPI version| |PyPI license| |Code health| |Codacy|

Simple bookmarking service, using a SQLite database to store bookmarks, supporting tags and automatic title fetching.

Currently, `digimarks is being rewritten <https://codeberg.org/diginaut/digimarks/src/branch/fastapi>`_ using a modern API and a new UI based on `digui <https://codeberg.org/diginaut/digui>`_ which makes interaction faster and caches inside the browser.


Installation
------------

From PyPI
~~~~~~~~~

Assuming you already are inside a virtualenv:

.. code-block:: bash

    pip install digimarks


From Git
~~~~~~~~

Create a new virtualenv (if you are not already in one) and install the
necessary packages:

.. code-block:: bash

    git clone https://codeberg.org/diginaut/digimarks.git
    cd digimarks
    mkvirtualenv digimarks # or whatever project you are working on
    pip install -r requirements.txt


Usage / example configuration
-----------------------------

Copy ``settings.py`` from example_config to the parent directory and
configure to your needs (*at the least* change the value of `SYSTEMKEY`).

Do not forget to fill in the `MASHAPE_API_KEY` value, which you [can request on the RapidAPI website](https://rapidapi.com/realfavicongenerator/api/realfavicongenerator).

Run digimarks as a service under nginx or apache and call the appropriate
url's when wanted.

Url's are of the form https://marks.example.com/<userkey>/<action>


Bookmarklet
~~~~~~~~~~~

To easily save a link from your browser, open its bookmark manager and create a new bookmark with as url:

.. code-block:: javascript

    javascript:location.href='http://marks.example.com/1234567890abcdef/add?url='+encodeURIComponent(location.href);


Creating a new user
-------------------

After having set up the ```settings.py``` as under Usage, you can add a new user, by going to this path on your digimarks server:

/<secretkey>/adduser

where `secretkey` is the value set in settings.SYSTEMKEY

digimarks will then redirect to the bookmarks overview page of the new user. Please remember the user key (the hash in the url), as it will not be visible otherwise in the interface.

If you for whatever reason would lose this user key, just either look on the console (or webserver logs) where the list of available user keys is printed on digimarks startup, or open bookmarks.db with a SQLite editor.


Server configuration
~~~~~~~~~~~~~~~~~~~~

* `vhost for Apache2.4`_
* `uwsgi.ini`_


What's new?
-----------

See the `Changelog`_.


Attributions
------------

'M' favicon by `Freepik`_.


.. _digimarks: https://codeberg.org/diginaut/digimarks
.. _webhook: https://en.wikipedia.org/wiki/Webhook
.. |PyPI version| image:: https://img.shields.io/pypi/v/digimarks.svg
   :target: https://pypi.python.org/pypi/digimarks/
.. |PyPI license| image:: https://img.shields.io/github/license/aquatix/digimarks.svg
   :target: https://pypi.python.org/pypi/digimarks/
.. |Code health| image:: https://landscape.io/github/aquatix/digimarks/master/landscape.svg?style=flat
   :target: https://landscape.io/github/aquatix/digimarks/master
   :alt: Code Health
.. |Codacy| image:: https://api.codacy.com/project/badge/Grade/9a34319d917b43219a29e59e9ac75e3b
   :alt: Codacy Badge
   :target: https://app.codacy.com/app/aquatix/digimarks?utm_source=github.com&utm_medium=referral&utm_content=aquatix/digimarks&utm_campaign=badger
.. _hook settings: https://github.com/aquatix/digimarks/blob/master/example_config/examples.yaml
.. _vhost for Apache2.4: https://github.com/aquatix/digimarks/blob/master/example_config/apache_vhost.conf
.. _uwsgi.ini: https://github.com/aquatix/digimarks/blob/master/example_config/uwsgi.ini
.. _Changelog: https://github.com/aquatix/digimarks/blob/master/CHANGELOG.md
.. _Freepik: http://www.flaticon.com/free-icon/letter-m_2041