Loading repository dataβ¦
Loading repository dataβ¦
athul / repository
A lightweight analytics server with FastAPI and deta.sh Base as DB. A glorified hit-counter of sorts π
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
Jimbru is an Privacy Oriented web analytics Server which is built with FastAPI and Deta Base as DB.
Jimbru is heavily inspired by Shynet which is also an Analytics server built with Django.
Not for Production Level use. It's hacky to the core. I made it for a Personal Use and doesn't have any fancy features.
user-agent header
Before deploying you need to get some Credentials
Signup for an account in https://deta.sh
Create a new Project
Get the Project Key and save it in the .env file as below
Install the Deta cli. This is for deploying to Deta.
Create a .env file inside the app/routes directory with the following keys
TITLE=<title of the site>
DOMAIN=<domain of the deployed server>
PKEY=<Deta Project Key>
PNAME=<Deta Base DB Name>
SECRET_JWT=<Secret for JWT. Get than withβ import os; print(os.urandom(24).hex())>
USERNAME=<username for authenticating>
PASSWORD=<password for authenticating>
The
PNAMEcan be anything.
app directory and running uvicorn main:app --reload inside the app directory.app directory you can create a new Micro with $ deta new. This will create a new Micro. You will get the domian from the output of the command. Save that domain in the DOMAIN key in the .env file, without a trailing /.$ deta update -e routes/.env to update the environment variables in the micro.$ deta deploy inside the app directory and the code will be deployed.Add a <script> tag for the site
<script src="https://<DOMAIN>/a.js" type="text/javascript"></script>
MIT