Skip to content

naborajs/LIFE-LOGGER

Repository files navigation

Naboraj Sarkar

🧠 LIFE LOGGER

Personal Data Operating System

Designed, Engineered & Maintained by Naboraj Sarkar

Transform your daily life into structured, searchable intelligence.

🚀 Private • Automated • Intelligent • Permanent • Developer-Grade


🌍 What is Life Logger?

Life Logger is more than just a Telegram bot. It's a Personal Intelligence Infrastructure designed to capture, structure, and preserve the most valuable dataset you will ever generate:

👉 Your Life.

Every decision, mistake, and breakthrough is logged, ensuring you never forget.

🧠 “Memory fades. Systems remember.”


💡 Why Life Logger Exists

We often track:

  • Steps
  • Money
  • Calories
  • Followers

But rarely do we track:

✅ Decisions
✅ Thoughts
✅ Growth
✅ Failures
✅ Lessons

Life Logger is built on the belief:

“The highest ROI dataset is the one generated by your own life.”


🔥 Key Features

✅ Structured Daily Logging

Send a Telegram message, and the system automatically attaches:

  • 🕒 Time
  • 📅 Date
  • 📆 Week
  • 🧭 Category
  • 🧠 Context

No formatting required.


🏆 Achievement Tracking

Document:

  • What you achieved
  • How you achieved it
  • Obstacles overcome
  • Strategies used
  • Lessons learned

⭐ “Winning behaviors should be studied — not celebrated and forgotten.”


⚠️ Failure Intelligence

Convert mistakes into structured feedback loops.

⚡ “Failure is expensive only when ignored.”


🤖 Automated GitHub Storage

Architecture Flow:

User → Telegram → Buffer → Scheduled Commit → GitHub

Benefits:

  • 🔒 Full ownership
  • ☁️ Cloud persistence
  • 📚 Organized history
  • 🧾 Clean commit structure

🧾 Dual Storage Format

Human-Friendly (.md):
Readable timeline for reflection.

AI-Friendly (.txt):
Raw timestamp format for analysis and future machine learning applications.


🔎 Built-in Search Engine

Retrieve past experiences instantly:

/search discipline
/search gym
/search mistake

Your past becomes queryable intelligence.


🔐 Privacy-First Architecture

Your data is stored in YOUR GitHub repository. You control:

  • ✅ Visibility
  • ✅ Access
  • ✅ Ownership

🔒 “If it’s not under your control — it’s not really yours.”


🏗 System Architecture

┌──────────────────┐
│     Telegram     │
└─────────┬────────┘
          ↓
┌──────────────────┐
│    Bot Engine    │
└─────────┬────────┘
          ↓
┌──────────────────┐
│   Buffer Layer   │
└─────────┬────────┘
          ↓
┌──────────────────┐
│  GitHub Logger   │
└─────────┬────────┘
          ↓
┌──────────────────────────────┐
│ Search • Export • Future AI  │
└──────────────────────────────┘

Each layer is modular and built for scalability.


🛠 Tech Stack

  • 🐍 Python
  • 🤖 python-telegram-bot
  • 🐙 GitHub API
  • ⏰ Scheduled Automation
  • 🔐 Security Layer
  • 📦 Buffered Commit Engine

⚡ How to Build Your Own Life Logger

Step 1 — Fork This Repository

Click Fork to create your personal copy.


Step 2 — Create a Telegram Bot

  1. Open Telegram and search for @BotFather.
  2. Start the bot and send /newbot.
  3. Follow the prompts to set up your bot.
  4. Copy the Bot Token provided.

Step 3 — Create a Private GitHub Repository

  1. Go to GitHub and create a new repository.
  2. Name it appropriately (e.g., life-data).
  3. Set the repository to Private.

Step 4 — Configure Environment Variables

Create a .env file in the root directory with the following content:

TELEGRAM_TOKEN=your_telegram_bot_token
GITHUB_TOKEN=your_github_personal_access_token
GITHUB_REPO=your_username/your_repository_name
GITHUB_BRANCH=main
OWNER_ID=your_telegram_user_id

Note: Replace the placeholders with your actual values.


Step 5 — Generate a GitHub Personal Access Token

  1. Navigate to GitHub Settings.
  2. Click on "Generate new token".
  3. Select the following scopes:
    • repo (Full control of private repositories)
  4. Generate the token and copy it. Store it securely.

💻 Running Locally

Prerequisites

  • Python 3.6 or higher
  • pip package manager

Installation

  1. Clone your forked repository:

    git clone https://github.com/your_username/LIFE-LOGGER.git
    cd LIFE-LOGGER
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the bot:

    python bot.py

📱 Running on Termux (Android)

  1. Install Termux from F-Droid.

  2. Update and install necessary packages:

    pkg update && pkg upgrade
    pkg install python git
  3. Clone your repository:

    git clone https://github.com/your_username/LIFE-LOGGER.git
    cd LIFE-LOGGER
  4. Install dependencies:

    pip install -r requirements.txt
  5. Run the bot:

    python bot.py

☁️ Deploying to Railway

  1. Sign up at Railway.
  2. Create a new project and link your GitHub repository.
  3. Set the environment variables in the Railway dashboard.
  4. Deploy the project.

Your bot will now run 24/7 in the cloud.


🧠 Why This System Will Change You

By logging your life:

  • You become more aware.
  • You make intentional decisions.
  • You track growth and patterns.

⚡ “Observed behavior improves automatically.”


📈 Future Possibilities

  • AI-powered reflections
  • Mood analytics
  • Decision tracking
  • Habit prediction
  • Personal knowledge graph

You're building a Second Brain.


👨‍💻 Author

Naboraj Sarkar
System Builder • Developer • Creator

“I don’t just write code — I design systems that compound intelligence.”


🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request for improvements.


📬 Contact

For any questions or feedback:


⭐ Final Thought

“Your life is happening whether you record it or not.
The question is — will you remember it accurately?”

Life Logger ensures that you will.

If this project inspires you, consider starring the repository.


Years pass quickly.
Lessons get forgotten.
Achievements blur.
Mistakes repeat.

Life Logger was built around one powerful belief:

“The most valuable dataset you will ever generate is your own life.”

This system transforms everyday experiences into long-term intelligence.


🧭 Core Philosophy

  • 📌 Ownership over dependency
  • 📌 Structure over chaos
  • 📌 Reflection over reaction
  • 📌 Intelligence over memory
  • 📌 Systems over motivation

Life Logger is designed for individuals who think long-term — builders, creators, disciplined learners, and self-optimizers.


🚀 Key Features

✅ Structured Daily Logging

Capture events instantly through Telegram. Each entry is automatically enriched with:

  • 🕒 Timestamp
  • 📅 Date
  • 📆 Week
  • 📊 Category
  • 🧠 Context

No formatting required.
Just send a message — the system handles the rest.


🏆 Achievement Tracking

Success leaves clues — but only if documented.

Life Logger allows deep achievement logging including:

  • What you achieved
  • How you achieved it
  • Strategies used
  • Obstacles overcome
  • Lessons extracted
“Winning behaviors should be studied — not celebrated and forgotten.”

⚠️ Failure Intelligence

Most people hide from failure.
Life Logger turns failure into structured insight.

By recording mistakes, you gain:

  • Pattern awareness
  • Emotional maturity
  • Strategic clarity
  • Faster growth cycles
“Failure is expensive only when ignored.”

🤖 Automated GitHub Storage

Instead of storing data in fragile local notes, Life Logger pushes entries into a secure GitHub repository.

Architecture Flow:

User → Telegram → Buffer → Scheduled Commit → GitHub → Permanent Record

This ensures:

  • 🔒 Full ownership
  • ☁️ Cloud persistence
  • 📚 Organized history
  • 🧾 Clean commit structure

🔎 Powerful Search Engine

Memory is slow.
Search is instant.

Retrieve past experiences in seconds:

/search discipline
/search business
/search gym
/search mistake

Your past becomes queryable intelligence.


📤 Data Export

No lock-in.
No hidden storage.
No proprietary traps.

Export your complete dataset anytime. Because your life data belongs to you.


🏗 System Architecture

┌─────────────────────┐
│      Telegram       │
└─────────┬───────────┘
          ↓
┌─────────────────────┐
│     Bot Engine      │
└─────────┬───────────┘
          ↓
┌─────────────────────┐
│   Buffer System     │
└─────────┬───────────┘
          ↓
┌─────────────────────┐
│  GitHub Logger      │
└─────────┬───────────┘
          ↓
┌─────────────────────┐
│ Search • Export • AI│
└─────────────────────┘

Every layer was designed for modularity and future scalability.


🛠 Technology Stack

  • 🐍 Python
  • 🤖 python-telegram-bot
  • 🐙 GitHub API
  • ⏰ Scheduled Automation
  • 🔐 Security Layer
  • 📦 Buffered Commit System

📖 The Engineering Journey

Life Logger was not built in a straight line.
It evolved through experimentation, debugging, and persistence.

⚡ The Vision

The original idea was simple:

“What if every meaningful moment of life could be stored automatically?”

But simplicity in vision often hides complexity in execution.


🚧 Early Challenges

  • Designing a clean logging architecture
  • Avoiding commit spam on GitHub
  • Creating structured categories
  • Building a reliable search mechanism
  • Ensuring privacy

The solution?

👉 A Buffered Logging System.

Instead of committing every message instantly, entries are stored temporarily and pushed in controlled intervals.

Cleaner repository.
Better performance.
Smarter engineering.


🔥 Deployment Obstacles

No real system is built without friction.

During deployment, several infrastructure issues appeared:

  • Python version conflicts
  • Dependency mismatches
  • Cloud runtime failures
  • Lock file interference
  • Build instability

Each obstacle reinforced an important engineering principle:

“Stable systems are built by eliminating unpredictability.”

The fix involved:

  • Locking Python runtime
  • Pinning dependency versions
  • Removing conflicting build files
  • Simplifying deployment configuration

The result — a clean, production-ready infrastructure.


🧠 Why This System Matters

Most people track steps.
Some track money.
Very few track their thinking.

Life Logger captures something deeper:

  • Decisions
  • Behavior
  • Growth
  • Self-awareness
“You cannot improve what you do not observe.”

🔐 Privacy First

Life Logger follows one non-negotiable rule:

Your data is yours.

  • No analytics
  • No surveillance
  • No selling
  • No tracking

Only owner-level access is permitted.


📈 Future Vision

Life Logger is not the destination — it is the foundation.

Future evolution may include:

  • AI-powered reflections
  • Behavior prediction
  • Habit intelligence
  • Emotional trend analysis
  • Decision pattern detection
“The goal is simple — turn lived experience into searchable wisdom.”

🌟 Who Is This For?

  • Builders
  • Thinkers
  • Entrepreneurs
  • High-agency individuals
  • Self-improvers

If you believe your future self deserves access to your past insights — Life Logger is for you.


⚠️ Important Note

This repository contains the system infrastructure only.
User datasets remain private for security reasons.


👨‍💻 Author & Branding

Naboraj Sarkar

System Builder • Developer • Creator

“I don’t just write code — I design systems that compound intelligence.”

If this project inspires you, consider building your own tools. Because the strongest advantage in the modern world is this:

👉 Owning your infrastructure.


🧠 Final Thought

“Your life is happening whether you record it or not.
The question is — will you remember it accurately?”

Life Logger ensures that you will.


⭐ If you find this project valuable, consider starring the repository.

About

Life Logger is a private-first personal data operating system that captures daily events, achievements, and failures via Telegram, structures them automatically, and securely stores them on GitHub. Built as a digital second brain for search, insights, and lifelong self-tracking — engineered by Naboraj Sarkar 🧠⚡

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages