Skip to content

The definitive list of the best of (consumer facing) open source.

Deleted current web client in favor of new one

Lucas8254138f9513
diff --git a/apps/web/README.md b/apps/web/README.md
deleted file mode 100644
index 8c10c25..0000000
--- a/apps/web/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-I'm so tired of choosing between Bun, Deno, or Node (and then npm, pnpm, or yarn) and then deciding between Svelte, Vue, or React. And then the quintillion dependencies and blablabla. WHY IS WEB DEVELOPMENT SO BLOATED.
-
-Anyways the definitive-opensource website is pure javascript with minimal styling ;).
diff --git a/apps/web/index.html b/apps/web/index.html
deleted file mode 100644
index 6e8b33f..0000000
--- a/apps/web/index.html
+++ /dev/null
@@ -1,84 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>definitive-opensource</title>
- <link rel="stylesheet" href="style.css" />
- </head>
-
- <body>
- <nav>
- <b>definitive-opensource</b>
- <div>GitHub</div>
- </nav>
-
- <div class="line-x"></div>
-
- <div class="description">
- The definitive list of the best of consumer facing open source.
- </div>
-
- <div class="line-x"></div>
-
- <main>
- <div class="controls">
- <div class="line-y"></div>
-
- <input
- type="text"
- id="search"
- placeholder="Search by name or description..."
- />
-
- <div class="line-y"></div>
-
- <select id="categoryFilter">
- <option value="">All Categories</option>
- </select>
-
- <div class="line-y"></div>
-
- <select id="subcategoryFilter">
- <option value="">All Subcategories</option>
- </select>
-
- <div class="line-y"></div>
-
- <select id="platformFilter">
- <option value="">All Platforms</option>
- </select>
-
- <div class="line-y"></div>
-
- <select id="tagFilter">
- <option value="">All Tags</option>
- </select>
-
- <div class="line-y"></div>
- </div>
-
- <div class="line-x"></div>
-
- <div
- style="
- display: grid;
- margin: 15px;
- grid-template-columns: repeat(3, minmax(0, 1fr));
- gap: 15px;
- "
- id="appContainer"
- >
- Loading data...
- </div>
- </main>
-
- <div class="line-x"></div>
-
- <footer>
- WAHAHA THIS WEBSITE IS PURE JAVASCRIPT NO STUPID FRAMEWORKS
- </footer>
-
- <script src="script.js"></script>
- </body>
-</html>
diff --git a/apps/web/script.js b/apps/web/script.js
deleted file mode 100644
index 40fe085..0000000
--- a/apps/web/script.js
+++ /dev/null
@@ -1,223 +0,0 @@
-const endpoints = {
- applications:
- "https://raw.githubusercontent.com/mustbeperfect/definitive-opensource/main/core/data/dynamic/applications_generated.json",
- categories:
- "https://raw.githubusercontent.com/mustbeperfect/definitive-opensource/main/core/data/static/categories.json",
- platforms:
- "https://raw.githubusercontent.com/mustbeperfect/definitive-opensource/main/core/data/static/platforms.json",
- tags: "https://raw.githubusercontent.com/mustbeperfect/definitive-opensource/main/core/data/static/tags.json",
-};
-
-let db = {
- apps: [],
- categories: [],
- subcategories: [],
- platforms: [],
- tags: [],
-};
-
-const appContainer = document.getElementById("appContainer");
-const searchInput = document.getElementById("search");
-const categoryFilter = document.getElementById("categoryFilter");
-const subcategoryFilter = document.getElementById("subcategoryFilter");
-const platformFilter = document.getElementById("platformFilter");
-const tagFilter = document.getElementById("tagFilter");
-
-const escapeHTML = (str) => {
- if (!str) return "";
- return String(str).replace(
- /[&<>'"]/g,
- (tag) =>
- ({
- "&": "&amp;",
- "<": "&lt;",
- ">": "&gt;",
- "'": "&#39;",
- '"': "&quot;",
- })[tag],
- );
-};
-
-const debounce = (func, delay) => {
- let timeoutId;
- return (...args) => {
- clearTimeout(timeoutId);
- timeoutId = setTimeout(() => func(...args), delay);
- };
-};
-
-async function init() {
- try {
- const [appRes, catRes, platRes, tagRes] = await Promise.all([
- fetch(endpoints.applications),
- fetch(endpoints.categories),
- fetch(endpoints.platforms),
- fetch(endpoints.tags),
- ]);
-
- const [appData, catData, platData, tagData] = await Promise.all([
- appRes.json(),
- catRes.json(),
- platRes.json(),
- tagRes.json(),
- ]);
-
- db.apps = appData.applications || [];
- db.categories = catData.categories || [];
- db.subcategories = catData.subcategories || [];
- db.platforms = platData.platforms || [];
- db.tags = tagData.properties || [];
-
- populateFilters();
- renderApps();
- setupEventListeners();
- } catch (error) {
- appContainer.innerHTML = `<strong>Error loading data:</strong> ${escapeHTML(error.message)}`;
- console.error(error);
- }
-}
-
-function populateFilters() {
- const catHTML = db.categories
- .map(
- (cat) =>
- `<option value="${escapeHTML(cat.id)}">${escapeHTML(cat.name)}</option>`,
- )
- .join("");
- categoryFilter.insertAdjacentHTML("beforeend", catHTML);
-
- const platHTML = db.platforms
- .map(
- (plat) =>
- `<option value="${escapeHTML(plat.id)}">${escapeHTML(plat.name)}</option>`,
- )
- .join("");
- platformFilter.insertAdjacentHTML("beforeend", platHTML);
-
- const tagHTML = db.tags
- .map(
- (tag) =>
- `<option value="${escapeHTML(tag.id)}">${escapeHTML(tag.name)}</option>`,
- )
- .join("");
- tagFilter.insertAdjacentHTML("beforeend", tagHTML);
-
- updateSubcategoryDropdown();
-}
-
-function updateSubcategoryDropdown() {
- const selectedCategory = categoryFilter.value;
-
- const filteredSubcategories =
- selectedCategory === ""
- ? db.subcategories
- : db.subcategories.filter((sub) => sub.parent === selectedCategory);
-
- const subHTML =
- '<option value="">All Subcategories</option>' +
- filteredSubcategories
- .map(
- (sub) =>
- `<option value="${escapeHTML(sub.id)}">${escapeHTML(sub.name)}</option>`,
- )
- .join("");
-
- subcategoryFilter.innerHTML = subHTML;
-}
-
-function setupEventListeners() {
- searchInput.addEventListener("input", debounce(renderApps, 300));
-
- categoryFilter.addEventListener("change", () => {
- updateSubcategoryDropdown();
- renderApps();
- });
-
- subcategoryFilter.addEventListener("change", renderApps);
- platformFilter.addEventListener("change", renderApps);
- tagFilter.addEventListener("change", renderApps);
-}
-
-function renderApps() {
- const searchTerm = searchInput.value.toLowerCase();
- const selectedCategory = categoryFilter.value;
- const selectedSubcategory = subcategoryFilter.value;
- const selectedPlatform = platformFilter.value;
- const selectedTag = tagFilter.value;
-
- let validSubcategoryIds = null;
- if (selectedCategory !== "") {
- validSubcategoryIds = db.subcategories
- .filter((sub) => sub.parent === selectedCategory)
- .map((sub) => sub.id);
- }
-
- const filteredApps = db.apps.filter((app) => {
- const matchesSearch =
- app.name.toLowerCase().includes(searchTerm) ||
- app.description.toLowerCase().includes(searchTerm);
-
- let matchesCategory = true;
- if (validSubcategoryIds) {
- matchesCategory = validSubcategoryIds.includes(app.category);
- }
-
- const matchesSubcategory =
- selectedSubcategory === "" || app.category === selectedSubcategory;
- const matchesPlatform =
- selectedPlatform === "" || app.platforms.includes(selectedPlatform);
- const matchesTag = selectedTag === "" || app.tags.includes(selectedTag);
-
- return (
- matchesSearch &&
- matchesCategory &&
- matchesSubcategory &&
- matchesPlatform &&
- matchesTag
- );
- });
-
- if (filteredApps.length === 0) {
- appContainer.innerHTML =
- "<div>No applications match your current filters.</div>";
- return;
- }
-
- appContainer.innerHTML = filteredApps
- .map(
- (app) => `
- <div class="app-card">
- <div class="app-header">
- <div class="app-title" target="_blank" rel="noopener noreferrer">${escapeHTML(app.name)}</div>
- <div class="item-group">
- <div class="app-tag">${escapeHTML(app.tags.join(", "))}</div>
- <a href="${escapeHTML(app.homepage_url)}">
- <img src="/assets/icon/box-arrow-up-right.svg" alt="Description of my SVG" width="15" height="15">
- </a>
- <a href="${escapeHTML(app.repo_url)}">
- <img src="/assets/icon/github.svg" alt="Description of my SVG" width="15" height="15">
- </a>
- </div>
- </div>
- <div class="app-description">${escapeHTML(app.description)}</div>
-
- <div class="app-header">
- <div class=""><strong>Category:</strong> ${escapeHTML(app.category)}</div>
- <div class="">${escapeHTML(app.platforms.join(", "))}</div>
- </div>
-
- <div class="line-x"></div>
-
- <div class="app-bottom">
- <div class="app-property">${escapeHTML(app.language)}</div>
- <div style="text-align: center" class="app-property">${escapeHTML(app.stars)}</div>
- <div style="text-align: right" class="app-property">${escapeHTML(app.license)}</div>
- </div>
-
- </div>
- `,
- )
- .join("");
-}
-
-init();
diff --git a/apps/web/style.css b/apps/web/style.css
deleted file mode 100644
index 1ab43f0..0000000
--- a/apps/web/style.css
+++ /dev/null
@@ -1,158 +0,0 @@
-/* Globals */
-
-*,
-*::before,
-*::after {
- box-sizing: border-box;
-}
-
-* {
- margin: 0;
- padding: 0;
-}
-
-:root {
- --gray-1: #111111;
- --gray-2: #222222;
- --gray-3: #333333;
- --gray-4: #444444;
- --gray-5: #555555;
- --gray-6: #666666;
- --gray-7: #777777;
- --gray-8: #888888;
- --gray-9: #999999;
- --gray-a: #aaaaaa;
- --gray-b: #bbbbbb;
- --gray-c: #cccccc;
- --gray-d: #dddddd;
- --gray-e: #eeeeee;
-}
-
-/* Tags */
-
-body {
- font-family: Arial, Helvetica, sans-serif;
-}
-
-nav {
- display: flex;
- justify-content: space-between;
- margin-left: 25px;
- margin-right: 25px;
- margin-top: 15px;
- margin-bottom: 15px;
-}
-
-footer {
- text-align: center;
- padding: 25px;
- font-size: 12px;
-}
-
-main {
- margin: 0 auto;
-}
-
-input,
-select {
- border: none;
- background: transparent;
- outline: none;
- margin-left: 10px;
- width: 100%;
-}
-
-a {
- text-decoration: none;
- color: inherit;
-}
-
-/* Main */
-
-.line-x {
- min-height: 1px;
- height: 1px;
- max-height: 1px;
- width: 100%;
- background-color: var(--gray-c);
-}
-
-.line-y {
- min-width: 1px;
- width: 1px;
- max-width: 1px;
- height: 100%;
- background-color: var(--gray-c);
-}
-
-.description {
- text-align: center;
- margin-top: 150px;
- margin-bottom: 150px;
-}
-
-.controls {
- display: flex;
- gap: 10px;
- height: 60px;
- align-items: center;
- justify-content: center;
- gap: 10px;
-}
-
-.app-card {
- border: 1px solid var(--gray-c);
- min-width: 400px;
-}
-
-.app-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding-left: 20px;
- padding-right: 20px;
- padding-top: 15px;
- padding-bottom: 15px;
-}
-
-.app-bottom {
- display: flex;
- width: 100%;
- align-items: center;
- padding-left: 20px;
- padding-right: 20px;
- padding-top: 15px;
- padding-bottom: 15px;
-}
-
-.app-tag {
- border: 1px solid var(--gray-c);
- padding-left: 10px;
- padding-right: 10px;
- padding-top: 5px;
- padding-bottom: 5px;
-}
-
-.item-group {
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 10px;
-}
-
-.app-title {
- font-size: 1.5em;
- font-weight: bold;
-}
-
-.app-description {
- height: 55px;
- overflow-y: auto;
- padding-left: 20px;
- padding-right: 20px;
- margin-bottom: 25px;
-}
-
-.app-property {
- width: 100%;
-}