Skip to content

Commit

Permalink
branding: Rename app to Hoarder
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 20, 2024
1 parent 7c04276 commit 0c5bb75
Show file tree
Hide file tree
Showing 21 changed files with 164 additions and 165 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:

- name: Build image
run: |
docker build . --target workers --tag remember-workers
docker build . --target web --tag remember-web
docker build . --target workers --tag hoarder-workers
docker build . --target web --tag hoarder-web
- name: Log in to registry
# This is where you will update the PAT to GITHUB_TOKEN
Expand All @@ -25,7 +25,7 @@ jobs:
- name: Push image
run: |
OWNER=$(echo ${{github.repository_owner}} | tr '[A-Z]' '[a-z]')
docker tag remember-workers ghcr.io/$OWNER/remember-workers:latest
docker tag remember-web ghcr.io/$OWNER/remember-web:latest
docker push ghcr.io/$OWNER/remember-workers:latest
docker push ghcr.io/$OWNER/remember-web:latest
docker tag hoarder-workers ghcr.io/$OWNER/hoarder-workers:latest
docker tag hoarder-web ghcr.io/$OWNER/hoarder-web:latest
docker push ghcr.io/$OWNER/hoarder-workers:latest
docker push ghcr.io/$OWNER/hoarder-web:latest
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Remember!
# Hoarder!
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
version: "3.8"
name: remember
services:
web:
build:
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "remember",
"name": "hoarder",
"version": "0.1.0",
"private": true,
"workspaces": [
Expand All @@ -10,11 +10,11 @@
"format": "prettier . --write",
"format:check": "prettier . --check",
"lint": "eslint .",
"prisma:migrate:dev": "yarn workspace @remember/db prisma migrate dev",
"prisma:generate": "yarn workspace @remember/db prisma generate",
"workers": "yarn workspace @remember/workers run start",
"web": "yarn workspace @remember/web run dev",
"studio": "yarn workspace @remember/db prisma studio"
"prisma:migrate:dev": "yarn workspace @hoarder/db prisma migrate dev",
"prisma:generate": "yarn workspace @hoarder/db prisma generate",
"workers": "yarn workspace @hoarder/workers run start",
"web": "yarn workspace @hoarder/web run dev",
"studio": "yarn workspace @hoarder/db prisma studio"
},
"dependencies": {
"@next/eslint-plugin-next": "^14.1.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/browser-extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 3,
"name": "Remember",
"description": "An extension to bookmark links to remember app",
"name": "Hoarder",
"description": "An extension to bookmark links to hoarder.app",
"version": "1.0",
"action": {
"default_popup": "index.html"
Expand Down
2 changes: 1 addition & 1 deletion packages/db/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@remember/db",
"name": "@hoarder/db",
"version": "0.1.0",
"private": true,
"main": "index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@remember/shared",
"name": "@hoarder/shared",
"version": "0.1.0",
"private": true,
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/web/app/dashboard/bookmarks/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AddLink from "./components/AddLink";
import type { Metadata } from "next";

export const metadata: Metadata = {
title: "Remember - Bookmarks",
title: "Hoarder - Bookmarks",
};

export default function BookmarksLayout({
Expand Down
6 changes: 3 additions & 3 deletions packages/web/app/dashboard/components/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Archive, Star, Tag, Home, Brain, Settings } from "lucide-react";
import { Archive, Star, Tag, Home, PackageOpen, Settings } from "lucide-react";
import { redirect } from "next/navigation";
import SidebarItem from "./SidebarItem";
import { getServerAuthSession } from "@/server/auth";
Expand All @@ -15,8 +15,8 @@ export default async function Sidebar() {
<aside className="flex h-full w-60 flex-col border-r p-4">
<Link href={"/dashboard/bookmarks"}>
<div className="mb-5 flex items-center rounded-lg px-1 text-slate-900">
<Brain />
<span className="ml-2 text-base font-semibold">Remember</span>
<PackageOpen />
<span className="ml-2 text-base font-semibold">Hoarder</span>
</div>
</Link>
<hr />
Expand Down
2 changes: 1 addition & 1 deletion packages/web/app/dashboard/tags/[tagName]/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getServerAuthSession } from "@/server/auth";
import { prisma } from "@remember/db";
import { prisma } from "@hoarder/db";
import { notFound, redirect } from "next/navigation";
import BookmarksGrid from "../../bookmarks/components/BookmarksGrid";
import { api } from "@/server/api/client";
Expand Down
2 changes: 1 addition & 1 deletion packages/web/app/dashboard/tags/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getServerAuthSession } from "@/server/auth";
import { prisma } from "@remember/db";
import { prisma } from "@hoarder/db";
import Link from "next/link";
import { redirect } from "next/navigation";

Expand Down
2 changes: 1 addition & 1 deletion packages/web/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: "Remember",
title: "Hoarder",
description: "Your AI powered second brain",
};

Expand Down
6 changes: 3 additions & 3 deletions packages/web/app/signin/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Brain } from "lucide-react";
import { PackageOpen } from "lucide-react";
import SignInForm from "./components/SignInForm";

export default async function SignInPage() {
Expand All @@ -7,9 +7,9 @@ export default async function SignInPage() {
<div className="flex min-h-screen flex-col items-center justify-center">
<div className="flex space-x-2">
<span>
<Brain size="30" className="h-full" />
<PackageOpen size="30" className="h-full" />
</span>
<span className="text-4xl">Remember</span>
<span className="text-4xl">Hoarder</span>
</div>
<div className="mt-20 flex w-96 flex-col items-center rounded-xl border border-gray-300 p-20">
<SignInForm />
Expand Down
4 changes: 2 additions & 2 deletions packages/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@remember/web",
"name": "@hoarder/web",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -10,6 +10,7 @@
"lint": "next lint"
},
"dependencies": {
"@hoarder/db": "0.1.0",
"@hookform/resolvers": "^3.3.4",
"@next-auth/prisma-adapter": "^1.0.7",
"@next/eslint-plugin-next": "^14.1.0",
Expand All @@ -19,7 +20,6 @@
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.5",
"@remember/db": "0.1.0",
"@tanstack/react-query": "^5.20.5",
"@tanstack/react-query-devtools": "^5.21.0",
"@trpc/client": "11.0.0-next-beta.274",
Expand Down
2 changes: 1 addition & 1 deletion packages/web/server/api/routers/apiKeys.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { generateApiKey } from "@/server/auth";
import { authedProcedure, router } from "../trpc";
import { prisma } from "@remember/db";
import { prisma } from "@hoarder/db";
import { z } from "zod";

export const apiKeysAppRouter = router({
Expand Down
4 changes: 2 additions & 2 deletions packages/web/server/api/routers/bookmarks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import {
zNewBookmarkRequestSchema,
zUpdateBookmarksRequestSchema,
} from "@/lib/types/api/bookmarks";
import { prisma } from "@remember/db";
import { LinkCrawlerQueue } from "@remember/shared/queues";
import { prisma } from "@hoarder/db";
import { LinkCrawlerQueue } from "@hoarder/shared/queues";
import { TRPCError, experimental_trpcMiddleware } from "@trpc/server";
import { User } from "next-auth";

Expand Down
4 changes: 2 additions & 2 deletions packages/web/server/auth.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import NextAuth, { NextAuthOptions, getServerSession } from "next-auth";
import { PrismaAdapter } from "@next-auth/prisma-adapter";
import AuthentikProvider from "next-auth/providers/authentik";
import serverConfig from "@remember/shared/config";
import { prisma } from "@remember/db";
import serverConfig from "@hoarder/shared/config";
import { prisma } from "@hoarder/db";
import { DefaultSession } from "next-auth";
import * as bcrypt from "bcrypt";

Expand Down
8 changes: 4 additions & 4 deletions packages/workers/crawler.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import logger from "@remember/shared/logger";
import logger from "@hoarder/shared/logger";
import {
LinkCrawlerQueue,
OpenAIQueue,
ZCrawlLinkRequest,
queueConnectionDetails,
zCrawlLinkRequestSchema,
} from "@remember/shared/queues";
} from "@hoarder/shared/queues";

import { Worker } from "bullmq";
import { Job } from "bullmq";

import { prisma } from "@remember/db";
import { prisma } from "@hoarder/db";

import { Browser } from "puppeteer";
import puppeteer from "puppeteer-extra";
Expand All @@ -27,7 +27,7 @@ import metascraperTwitter from "metascraper-twitter";
import metascraperReadability from "metascraper-readability";
import { Mutex } from "async-mutex";
import assert from "assert";
import serverConfig from "@remember/shared/config";
import serverConfig from "@hoarder/shared/config";

const metascraperParser = metascraper([
metascraperReadability(),
Expand Down
8 changes: 4 additions & 4 deletions packages/workers/openai.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { prisma, BookmarkedLink } from "@remember/db";
import logger from "@remember/shared/logger";
import serverConfig from "@remember/shared/config";
import { prisma, BookmarkedLink } from "@hoarder/db";
import logger from "@hoarder/shared/logger";
import serverConfig from "@hoarder/shared/config";
import {
OpenAIQueue,
ZOpenAIRequest,
queueConnectionDetails,
zOpenAIRequestSchema,
} from "@remember/shared/queues";
} from "@hoarder/shared/queues";
import { Job } from "bullmq";
import OpenAI from "openai";
import { z } from "zod";
Expand Down
6 changes: 3 additions & 3 deletions packages/workers/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"$schema": "https://json.schemastore.org/package.json",
"name": "@remember/workers",
"name": "@hoarder/workers",
"version": "0.1.0",
"private": true,
"dependencies": {
"@remember/db": "0.1.0",
"@remember/shared": "0.1.0",
"@hoarder/db": "0.1.0",
"@hoarder/shared": "0.1.0",
"@tsconfig/node21": "^21.0.1",
"async-mutex": "^0.4.1",
"bullmq": "^5.1.9",
Expand Down
Loading

0 comments on commit 0c5bb75

Please sign in to comment.