Bookmarks AI is a simple bookmarks storage webapp with AI auto classification and search.
It is built with Django, Bootstrap, and the OpenAI API.
This app is a work-in-progress, but you are free to use it as you wish. Any feedback can be sent to james [ at ] jamesflores.net.
Demo: https://bookmarks.jamesf.xyz
- I am running this on Heroku with Cloudflare (Flexible mode SSL) and using R2 for static file storage (S3 compatible).
- You will have to adjust
settings.pyto use WhiteNoise if you prefer.
- You will have to adjust
- Google Recaptcha is used on user registration and password reset.
- You will need to create your own account and set the RECAPTCHA environment variables.
- SMTP server for sending out account emails (I use Amazon SES).
- OpenAI account to set the Marvin environment variables.
$ git clone https://github.com/jamesflores/Bookmarks-AI.git
$ cd Bookmarks-AI
$ python -m venv venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.txt
(venv) $ python manage.py migrate
(venv) $ python manage.py loaddata fixtures/Category.json # default bookmark categories (adjust as needed)
(venv) $ python manage.py createsuperuser
(venv) $ python manage.py runserver
# Load the site at http://127.0.0.1:8000
- Add environment variables:
- Set
BOOKMARKS_SECRET_KEYto any random set of characters. - Set
DATABASE_URLto use a Postgres database. - Set
RECAPTCHA_PRIVATE_KEYandRECAPTCHA_PUBLIC_KEYfor Google Recaptcha. - Set
MARVIN_OPENAI_API_KEY,MARVIN_LOG_LEVELandMARVIN_CHAT_COMPLETIONS_MODELfor AI functionality. - Set the following email environment variables for email:
- Set
EMAIL_BACKEND=django.core.mail.backends.smtp.EmailBackend # django.core.mail.backends.console.EmailBackend
EMAIL_HOST=smtp.mail.com
EMAIL_PORT=587
EMAIL_USE_TLS=True
EMAIL_USE_SSL=
EMAIL_HOST_USER=user
EMAIL_HOST_PASSWORD=pass
DEFAULT_FROM_EMAIL=me@mail.com
- Using Django Admin, update your site details (domain and display name).
Contributions, issues and feature requests are welcome!
- A batteries-included Django starter project: https://github.com/wsvincent/djangox
- The AI engineering toolkit: https://github.com/PrefectHQ/marvin
Give a ⭐️!
