Content lense enables bloggers and publishers to analyse their digital content and generate exciting insights.
Some impressions of our dashboards and visualizations so far:
There are three main parts of this project: the frontend
, the API backend
and several analytics microservices
(e.g. sentiment or mentioned people)
https://github.com/content-lense/content-lense-api
Handles authentication, manages data and importing content. This is based on the amazing api-platform project.
https://github.com/content-lense/content-lense-frontend
React GUI to manage configuration, manage imported data and visualize insights.
Currently, we plan to implement the following microservices:
- Sentiment analytics (rates imported text by sentiment)
- Mentioned entites (currently, mentioned people are analyzed and enriched with wiki data information such as age or gender)
- Text complexity (basic statistics such as words and text length + scores such as Wiener Sachtextindex and reading time)
- Topic recognition (selects topics for a text from a given list of topics based on a zero-shot classification)
- We will soon provide a very simple docker compose stack that includes latest stable builds of all parts of content lense. You will then just need to do a
docker compose up
to get up and running. - If you want to try content lense right now, please do the following:
# Checkout and start the API docker stack
git clone git@github.com:content-lense/content-lense-api.git
cd content-lense-api
docker compose up -d
# show logs with docker compose logs -f
# Create the postgres database, load doctrine fixtures and create jwt key pairs
./dev_flush_db.sh
# Checkout and start the frontend
cd ..
git clone git@github.com:content-lense/content-lense-frontend.git
cd content-lense-frontend
pnpm install
pnpm dev &&
# Checkout and start the mention API
cd ..
git clone git@github.com:content-lense/content-lense-mention-api.git
cd content-lense-mention-api
docker build -f Docker/Dockerfile -t content-lense-mentions:latest .
docker run -it --rm -p 5000:5000 content-lense-mentions
# Checkout and start the text complexity API
cd ..
git clone git@github.com:content-lense/content-lense-text-complexity
cd content-lense-text-complexity
docker build -f Docker/Dockerfile -t content-lense-text-complexity:latest .
docker run -it --rm -p 5001:5001 content-lense-text-complexity
# Checkout and start the topic API
cd ..
git clone git@github.com:content-lense/content-lense-topic-detection-api.git
cd content-lense-topic-detection-api
docker build -f Docker/Dockerfile -t content-lense-topic-detection-api:latest .
docker run -it --rm -p 5002:5002 content-lense-topic-detection-api
# Checkout and start the sentiment API
cd ..
git clone git@github.com:content-lense/content-lense-sentiment-api.git
cd content-lense-sentiment-api
docker build -f Docker/Dockerfile -t content-lense-sentiment-api:latest .
docker run -it --rm -p 5003:5003 content-lense-sentiment-api
# Open the frontend at https://localhost and login using the admin credentials
- JWT login with user `admin@cl.com` and password `demodemo`
- _OR_ set the `x-auth-token` to fixture value of `33973585cd5f17cad05f1a09bb663f89` (e.g. using the [ModHeader plugin](https://modheader.com/) for the browser of your choice)
Content Lense is licensed under MIT.
Media Tech Lab media-tech-lab
Cloud Creators GmbH cloud-creators