import json # Generates mainheader with dynamic project count def generate_mainheader(): with open("core/data/dynamic/applications.json", "r", encoding="utf-8") as f: data = json.load(f) project_count = len(data.get("applications", [])) header_content = f"""
🌍 v0.7.4-beta

[ definitive-opensource ]

The definitive list of the best of everything open source

Status: Active - Projects: {project_count}

""" return header_content if __name__ == "__main__": generate_mainheader()