Skip to content

Open source alternatives to paid SaaS apps: Notion, Slack, Auth0, Vercel and more. Curated list with licenses and GitHub stars.

Remove obsolete muapi pages folder (now part of the muapi site)

Anil Chandra Naidu Matcha2894b5ac9a0d
diff --git a/muapi-pages-later/open-source-alternatives/lib.js b/muapi-pages-later/open-source-alternatives/lib.js
deleted file mode 100644
index b4c2785..0000000
--- a/muapi-pages-later/open-source-alternatives/lib.js
+++ /dev/null
@@ -1,38 +0,0 @@
-import tools from "./data.json";
-import stats from "./stats.json";
-
-export const SITE_URL = "https://muapi.ai";
-export const BASE_PATH = "/open-source-alternatives";
-
-export function getAllTools() {
- return tools;
-}
-
-export function getTool(slug) {
- return tools.find((t) => t.slug === slug) || null;
-}
-
-export function getCategories() {
- return [...new Set(tools.map((t) => t.category))].sort();
-}
-
-// stats.json is written by scripts/refresh-oss-stats.mjs (GitHub API).
-export function getRepoStats(repo) {
- return (repo && stats[repo]) || null;
-}
-
-export function withStats(alt) {
- const s = getRepoStats(alt.repo);
- return {
- ...alt,
- stars: s?.stars ?? null,
- license: s?.license || alt.license,
- pushedAt: s?.pushedAt ?? null,
- url: alt.repo ? `https://github.com/${alt.repo}` : alt.url,
- };
-}
-
-export function formatStars(n) {
- if (n == null) return null;
- return n >= 1000 ? `${(n / 1000).toFixed(n >= 10000 ? 0 : 1)}k` : String(n);
-}