23 Commits

Author SHA1 Message Date
52cd3cf299 Got a working pnpm/bun setup 2026-05-03 22:18:26 -04:00
e89097619b Merge branch 'main' into feature/backend-endpoints 2026-05-03 21:19:00 -04:00
08c3a2e0ab Merge branch 'feature/backend-endpoints' 2026-05-03 21:18:47 -04:00
425c51e135 Created initial pnpm+turborepo setup 2026-05-02 04:06:44 -04:00
826c308d52 Merge branch 'feature/backend-endpoints' 2026-05-02 02:45:29 -04:00
3c37821ab4 The nukening 2026-05-02 02:44:18 -04:00
61d53886a3 Bla 2026-05-01 15:45:27 -04:00
0ea6005e7b Implement Channel endpoints and services for managing channels in the server 2026-04-20 15:43:43 -04:00
24671fefef Rename postMethodName to createNewServer for clarity in ServerController 2026-04-19 19:26:49 -04:00
d5173e162f Add Server endpoints + shoebill 2026-04-19 19:25:27 -04:00
b99a6c50b0 Improved user profile endpoints and validated usernames 2026-04-19 12:50:54 -04:00
1e97f75924 Shorten swagger shortcut /swag 2026-04-18 20:13:15 -04:00
6b73952ee0 Added UserProfile endpoint (also moved stuff around) 2026-04-18 20:11:51 -04:00
22991b6a30 Annotate repos 2026-04-18 18:34:59 -04:00
13b920d911 Set initial database schema 2026-04-18 18:25:51 -04:00
134a68f5ac Flaked it up 2026-04-18 16:52:10 -04:00
4b742ff211 Add README.md 2026-04-16 16:14:43 -04:00
624070bea5 Merge branch 'feature/frontend-scaffold-kmp' 2026-02-12 14:26:19 -05:00
c81cf97ff7 Merge branch 'init/backend' 2026-02-12 14:20:09 -05:00
41c0c8d405 Added KMP project Scaffold 2026-02-12 14:15:16 -05:00
8c1a2779f4 Initialize backend 2026-02-12 14:11:35 -05:00
cfdf39e6b9 Merge pull request 'Destroy It All!' (#3) from feature/blank-slate into main
Reviewed-on: #3
2026-02-12 18:51:29 +00:00
30984b0784 Destroy It All! 2026-02-12 13:46:05 -05:00
28 changed files with 607 additions and 981 deletions

1
.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

42
.gitignore vendored
View File

@@ -1,38 +1,8 @@
# Dependencies
# Configs
.direnv
.zed
.vscode
# JS
node_modules
.pnp
.pnp.js
# Local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local
# Testing
coverage
# Turbo
.turbo
# Vercel
.vercel
# Build Outputs
.next/
out/
build
dist
# Prisma
generated
# Debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Misc
.DS_Store
*.pem

View File

@@ -1,43 +1,3 @@
# Dependencies to run
# Shoebill
- postgres
- bun
- setup biome in ide / editor
## env
```env
DATABASE_URL = "postgresql://concord_user:concord_test@localhost:5432/concord_db"
```
# Running
## API
```bash
cd apps/api
bun run dev
```
## DB
```bash
cd packages/database
bun run db:generate
bun run db:migrate
bun run db:push
bun run db:seed
bun run db:studio # optional
```
## Linting and Fixing
```bash
bunx turbo format-and-lint # view linting and formatting suggestions, without writing
bunx turbo format-and-lint:fix # write fixes
```
## Alternatively
All commands for DB and API can be run from repo root with:
```bash
bunx turbo <script> # db:generate, etc...
```
For the original hackathon project, visit [this link](https://github.com/k-puig/shellhacks-2025).

2
apps/api/.gitignore vendored
View File

@@ -1,2 +0,0 @@
# deps
node_modules/

View File

@@ -1,22 +0,0 @@
{
"name": "@concord/api",
"scripts": {
"dev": "bun run --hot src/index.ts",
"build": "bun build src/index.ts",
"start": "bun src/index.ts",
"lint": "biome lint .",
"format": "biome format --write .",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@concord/database": "workspace:*",
"@hono/zod-validator": "^0.7.3",
"hono": "^4.9.10",
"zod": "^4.1.12"
},
"devDependencies": {
"@types/bun": "latest",
"@concord/biome-config": "workspace:*",
"@concord/tsconfig": "workspace:*"
}
}

View File

@@ -1,37 +0,0 @@
import { prisma } from '@concord/database'; // types from prisma
import { Hono } from 'hono';
import { logger } from 'hono/logger';
const app = new Hono();
app.use('*', logger());
// Health check
app.get('/', (c) => {
return c.json({ ok: true, message: 'Hello from the Concord API' });
});
// route to get all users
const usersRoute = app.get('/users', async (c) => {
const users = await prisma.user.findMany({
select: {
id: true,
username: true,
nickname: true,
createdAt: true,
},
});
return c.json(users);
});
const port = Number.parseInt(process.env.PORT || '3000', 10);
console.log(`API server listening on port ${port}`);
// This exports the type of our app's routes,
// which the client can use for end-to-end type safety.
export type AppType = typeof usersRoute;
export default {
port: 3000,
fetch: app.fetch,
};

View File

@@ -1,10 +0,0 @@
{
"extends": "@concord/tsconfig/base.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["src"]
}

View File

@@ -0,0 +1,20 @@
{
"name": "guild-service",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "bun run src/index.ts"
},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "pnpm@10.33.2",
"dependencies": {
"@types/node": "^25.6.0",
"elysia": "^1.4.28",
"ts-node": "^10.9.2",
"typescript": "^6.0.3"
}
}

View File

@@ -0,0 +1,6 @@
import { Elysia } from "elysia";
const app = new Elysia().get("/", "Hello world!");
app.listen(3000);
export default app;

View File

@@ -1,3 +0,0 @@
{
"extends": ["./packages/biome-config/biome.json"]
}

182
bun.lock
View File

@@ -1,182 +0,0 @@
{
"lockfileVersion": 1,
"workspaces": {
"": {
"name": "concord",
"devDependencies": {
"@biomejs/biome": "^2.2.5",
"turbo": "^2.5.8",
"typescript": "5.9.2",
},
},
"apps/api": {
"name": "@concord/api",
"dependencies": {
"@concord/database": "workspace:*",
"@hono/zod-validator": "^0.7.3",
"hono": "^4.9.10",
"zod": "^4.1.12",
},
"devDependencies": {
"@concord/biome-config": "workspace:*",
"@concord/tsconfig": "workspace:*",
"@types/bun": "latest",
},
},
"packages/biome-config": {
"name": "@concord/biome-config",
"version": "0.1.0",
},
"packages/database": {
"name": "@concord/database",
"dependencies": {
"@prisma/client": "^6.17.0",
},
"devDependencies": {
"@concord/biome-config": "workspace:*",
"@concord/tsconfig": "workspace:*",
"@types/bun": "latest",
"bcryptjs": "^3.0.2",
"prisma": "^6.17.0",
},
"peerDependencies": {
"typescript": "^5",
},
},
"packages/tsconfig": {
"name": "@concord/tsconfig",
"version": "0.1.0",
},
},
"packages": {
"@biomejs/biome": ["@biomejs/biome@2.2.5", "", { "optionalDependencies": { "@biomejs/cli-darwin-arm64": "2.2.5", "@biomejs/cli-darwin-x64": "2.2.5", "@biomejs/cli-linux-arm64": "2.2.5", "@biomejs/cli-linux-arm64-musl": "2.2.5", "@biomejs/cli-linux-x64": "2.2.5", "@biomejs/cli-linux-x64-musl": "2.2.5", "@biomejs/cli-win32-arm64": "2.2.5", "@biomejs/cli-win32-x64": "2.2.5" }, "bin": { "biome": "bin/biome" } }, "sha512-zcIi+163Rc3HtyHbEO7CjeHq8DjQRs40HsGbW6vx2WI0tg8mYQOPouhvHSyEnCBAorfYNnKdR64/IxO7xQ5faw=="],
"@biomejs/cli-darwin-arm64": ["@biomejs/cli-darwin-arm64@2.2.5", "", { "os": "darwin", "cpu": "arm64" }, "sha512-MYT+nZ38wEIWVcL5xLyOhYQQ7nlWD0b/4mgATW2c8dvq7R4OQjt/XGXFkXrmtWmQofaIM14L7V8qIz/M+bx5QQ=="],
"@biomejs/cli-darwin-x64": ["@biomejs/cli-darwin-x64@2.2.5", "", { "os": "darwin", "cpu": "x64" }, "sha512-FLIEl73fv0R7dI10EnEiZLw+IMz3mWLnF95ASDI0kbx6DDLJjWxE5JxxBfmG+udz1hIDd3fr5wsuP7nwuTRdAg=="],
"@biomejs/cli-linux-arm64": ["@biomejs/cli-linux-arm64@2.2.5", "", { "os": "linux", "cpu": "arm64" }, "sha512-5DjiiDfHqGgR2MS9D+AZ8kOfrzTGqLKywn8hoXpXXlJXIECGQ32t+gt/uiS2XyGBM2XQhR6ztUvbjZWeccFMoQ=="],
"@biomejs/cli-linux-arm64-musl": ["@biomejs/cli-linux-arm64-musl@2.2.5", "", { "os": "linux", "cpu": "arm64" }, "sha512-5Ov2wgAFwqDvQiESnu7b9ufD1faRa+40uwrohgBopeY84El2TnBDoMNXx6iuQdreoFGjwW8vH6k68G21EpNERw=="],
"@biomejs/cli-linux-x64": ["@biomejs/cli-linux-x64@2.2.5", "", { "os": "linux", "cpu": "x64" }, "sha512-fq9meKm1AEXeAWan3uCg6XSP5ObA6F/Ovm89TwaMiy1DNIwdgxPkNwxlXJX8iM6oRbFysYeGnT0OG8diCWb9ew=="],
"@biomejs/cli-linux-x64-musl": ["@biomejs/cli-linux-x64-musl@2.2.5", "", { "os": "linux", "cpu": "x64" }, "sha512-AVqLCDb/6K7aPNIcxHaTQj01sl1m989CJIQFQEaiQkGr2EQwyOpaATJ473h+nXDUuAcREhccfRpe/tu+0wu0eQ=="],
"@biomejs/cli-win32-arm64": ["@biomejs/cli-win32-arm64@2.2.5", "", { "os": "win32", "cpu": "arm64" }, "sha512-xaOIad4wBambwJa6mdp1FigYSIF9i7PCqRbvBqtIi9y29QtPVQ13sDGtUnsRoe6SjL10auMzQ6YAe+B3RpZXVg=="],
"@biomejs/cli-win32-x64": ["@biomejs/cli-win32-x64@2.2.5", "", { "os": "win32", "cpu": "x64" }, "sha512-F/jhuXCssPFAuciMhHKk00xnCAxJRS/pUzVfXYmOMUp//XW7mO6QeCjsjvnm8L4AO/dG2VOB0O+fJPiJ2uXtIw=="],
"@concord/api": ["@concord/api@workspace:apps/api"],
"@concord/biome-config": ["@concord/biome-config@workspace:packages/biome-config"],
"@concord/database": ["@concord/database@workspace:packages/database"],
"@concord/tsconfig": ["@concord/tsconfig@workspace:packages/tsconfig"],
"@hono/zod-validator": ["@hono/zod-validator@0.7.3", "", { "peerDependencies": { "hono": ">=3.9.0", "zod": "^3.25.0 || ^4.0.0" } }, "sha512-uYGdgVib3RlGD698WR5dVM0zB3UuPY5vHKXffGUbUh7r4xY+mFIhF3/v4AcQVLrU5CQdBso8BJr4wuVoCrjTuQ=="],
"@prisma/client": ["@prisma/client@6.17.0", "", { "peerDependencies": { "prisma": "*", "typescript": ">=5.1.0" }, "optionalPeers": ["prisma", "typescript"] }, "sha512-b42mTLOdLEZ6e/igu8CLdccAUX9AwHknQQ1+pHOftnzDP2QoyZyFvcANqSLs5ockimFKJnV7Ljf+qrhNYf6oAg=="],
"@prisma/config": ["@prisma/config@6.17.0", "", { "dependencies": { "c12": "3.1.0", "deepmerge-ts": "7.1.5", "effect": "3.16.12", "empathic": "2.0.0" } }, "sha512-k8tuChKpkO/Vj7ZEzaQMNflNGbaW4X0r8+PC+W2JaqVRdiS2+ORSv1SrDwNxsb8YyzIQJucXqLGZbgxD97ZhsQ=="],
"@prisma/debug": ["@prisma/debug@6.17.0", "", {}, "sha512-eE2CB32nr1hRqyLVnOAVY6c//iSJ/PN+Yfoa/2sEzLGpORaCg61d+nvdAkYSh+6Y2B8L4BVyzkRMANLD6nnC2g=="],
"@prisma/engines": ["@prisma/engines@6.17.0", "", { "dependencies": { "@prisma/debug": "6.17.0", "@prisma/engines-version": "6.17.0-16.c0aafc03b8ef6cdced8654b9a817999e02457d6a", "@prisma/fetch-engine": "6.17.0", "@prisma/get-platform": "6.17.0" } }, "sha512-XhE9v3hDQTNgCYMjogcCYKi7HCEkZf9WwTGuXy8cmY8JUijvU0ap4M7pGLx4pBblkp5EwUsYzw1YLtH7yi0GZw=="],
"@prisma/engines-version": ["@prisma/engines-version@6.17.0-16.c0aafc03b8ef6cdced8654b9a817999e02457d6a", "", {}, "sha512-G0VU4uFDreATgTz4sh3dTtU2C+jn+J6c060ixavWZaUaSRZsNQhSPW26lbfez7GHzR02RGCdqs5UcSuGBC3yLw=="],
"@prisma/fetch-engine": ["@prisma/fetch-engine@6.17.0", "", { "dependencies": { "@prisma/debug": "6.17.0", "@prisma/engines-version": "6.17.0-16.c0aafc03b8ef6cdced8654b9a817999e02457d6a", "@prisma/get-platform": "6.17.0" } }, "sha512-YSl5R3WIAPrmshYPkaaszOsBIWRAovOCHn3y7gkTNGG51LjYW4pi6PFNkGouW6CA06qeTjTbGrDRCgFjnmVWDg=="],
"@prisma/get-platform": ["@prisma/get-platform@6.17.0", "", { "dependencies": { "@prisma/debug": "6.17.0" } }, "sha512-3tEKChrnlmLXPd870oiVfRvj7vVKuxqP349hYaMDsbV4TZd3+lFqw8KTI2Tbq5DopamfNuNqhVCj+R6ZxKKYGQ=="],
"@standard-schema/spec": ["@standard-schema/spec@1.0.0", "", {}, "sha512-m2bOd0f2RT9k8QJx1JN85cZYyH1RqFBdlwtkSlf4tBDYLCiiZnv1fIIwacK6cqwXavOydf0NPToMQgpKq+dVlA=="],
"@types/bun": ["@types/bun@1.2.23", "", { "dependencies": { "bun-types": "1.2.23" } }, "sha512-le8ueOY5b6VKYf19xT3McVbXqLqmxzPXHsQT/q9JHgikJ2X22wyTW3g3ohz2ZMnp7dod6aduIiq8A14Xyimm0A=="],
"@types/node": ["@types/node@24.7.1", "", { "dependencies": { "undici-types": "~7.14.0" } }, "sha512-CmyhGZanP88uuC5GpWU9q+fI61j2SkhO3UGMUdfYRE6Bcy0ccyzn1Rqj9YAB/ZY4kOXmNf0ocah5GtphmLMP6Q=="],
"@types/react": ["@types/react@19.2.2", "", { "dependencies": { "csstype": "^3.0.2" } }, "sha512-6mDvHUFSjyT2B2yeNx2nUgMxh9LtOWvkhIU3uePn2I2oyNymUAX1NIsdgviM4CH+JSrp2D2hsMvJOkxY+0wNRA=="],
"bcryptjs": ["bcryptjs@3.0.2", "", { "bin": { "bcrypt": "bin/bcrypt" } }, "sha512-k38b3XOZKv60C4E2hVsXTolJWfkGRMbILBIe2IBITXciy5bOsTKot5kDrf3ZfufQtQOUN5mXceUEpU1rTl9Uog=="],
"bun-types": ["bun-types@1.2.23", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-R9f0hKAZXgFU3mlrA0YpE/fiDvwV0FT9rORApt2aQVWSuJDzZOyB5QLc0N/4HF57CS8IXJ6+L5E4W1bW6NS2Aw=="],
"c12": ["c12@3.1.0", "", { "dependencies": { "chokidar": "^4.0.3", "confbox": "^0.2.2", "defu": "^6.1.4", "dotenv": "^16.6.1", "exsolve": "^1.0.7", "giget": "^2.0.0", "jiti": "^2.4.2", "ohash": "^2.0.11", "pathe": "^2.0.3", "perfect-debounce": "^1.0.0", "pkg-types": "^2.2.0", "rc9": "^2.1.2" }, "peerDependencies": { "magicast": "^0.3.5" }, "optionalPeers": ["magicast"] }, "sha512-uWoS8OU1MEIsOv8p/5a82c3H31LsWVR5qiyXVfBNOzfffjUWtPnhAb4BYI2uG2HfGmZmFjCtui5XNWaps+iFuw=="],
"chokidar": ["chokidar@4.0.3", "", { "dependencies": { "readdirp": "^4.0.1" } }, "sha512-Qgzu8kfBvo+cA4962jnP1KkS6Dop5NS6g7R5LFYJr4b8Ub94PPQXUksCw9PvXoeXPRRddRNC5C1JQUR2SMGtnA=="],
"citty": ["citty@0.1.6", "", { "dependencies": { "consola": "^3.2.3" } }, "sha512-tskPPKEs8D2KPafUypv2gxwJP8h/OaJmC82QQGGDQcHvXX43xF2VDACcJVmZ0EuSxkpO9Kc4MlrA3q0+FG58AQ=="],
"confbox": ["confbox@0.2.2", "", {}, "sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ=="],
"consola": ["consola@3.4.2", "", {}, "sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA=="],
"csstype": ["csstype@3.1.3", "", {}, "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="],
"deepmerge-ts": ["deepmerge-ts@7.1.5", "", {}, "sha512-HOJkrhaYsweh+W+e74Yn7YStZOilkoPb6fycpwNLKzSPtruFs48nYis0zy5yJz1+ktUhHxoRDJ27RQAWLIJVJw=="],
"defu": ["defu@6.1.4", "", {}, "sha512-mEQCMmwJu317oSz8CwdIOdwf3xMif1ttiM8LTufzc3g6kR+9Pe236twL8j3IYT1F7GfRgGcW6MWxzZjLIkuHIg=="],
"destr": ["destr@2.0.5", "", {}, "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA=="],
"dotenv": ["dotenv@16.6.1", "", {}, "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow=="],
"effect": ["effect@3.16.12", "", { "dependencies": { "@standard-schema/spec": "^1.0.0", "fast-check": "^3.23.1" } }, "sha512-N39iBk0K71F9nb442TLbTkjl24FLUzuvx2i1I2RsEAQsdAdUTuUoW0vlfUXgkMTUOnYqKnWcFfqw4hK4Pw27hg=="],
"empathic": ["empathic@2.0.0", "", {}, "sha512-i6UzDscO/XfAcNYD75CfICkmfLedpyPDdozrLMmQc5ORaQcdMoc21OnlEylMIqI7U8eniKrPMxxtj8k0vhmJhA=="],
"exsolve": ["exsolve@1.0.7", "", {}, "sha512-VO5fQUzZtI6C+vx4w/4BWJpg3s/5l+6pRQEHzFRM8WFi4XffSP1Z+4qi7GbjWbvRQEbdIco5mIMq+zX4rPuLrw=="],
"fast-check": ["fast-check@3.23.2", "", { "dependencies": { "pure-rand": "^6.1.0" } }, "sha512-h5+1OzzfCC3Ef7VbtKdcv7zsstUQwUDlYpUTvjeUsJAssPgLn7QzbboPtL5ro04Mq0rPOsMzl7q5hIbRs2wD1A=="],
"giget": ["giget@2.0.0", "", { "dependencies": { "citty": "^0.1.6", "consola": "^3.4.0", "defu": "^6.1.4", "node-fetch-native": "^1.6.6", "nypm": "^0.6.0", "pathe": "^2.0.3" }, "bin": { "giget": "dist/cli.mjs" } }, "sha512-L5bGsVkxJbJgdnwyuheIunkGatUF/zssUoxxjACCseZYAVbaqdh9Tsmmlkl8vYan09H7sbvKt4pS8GqKLBrEzA=="],
"hono": ["hono@4.9.10", "", {}, "sha512-AlI15ijFyKTXR7eHo7QK7OR4RoKIedZvBuRjO8iy4zrxvlY5oFCdiRG/V/lFJHCNXJ0k72ATgnyzx8Yqa5arug=="],
"jiti": ["jiti@2.6.1", "", { "bin": { "jiti": "lib/jiti-cli.mjs" } }, "sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ=="],
"node-fetch-native": ["node-fetch-native@1.6.7", "", {}, "sha512-g9yhqoedzIUm0nTnTqAQvueMPVOuIY16bqgAJJC8XOOubYFNwz6IER9qs0Gq2Xd0+CecCKFjtdDTMA4u4xG06Q=="],
"nypm": ["nypm@0.6.2", "", { "dependencies": { "citty": "^0.1.6", "consola": "^3.4.2", "pathe": "^2.0.3", "pkg-types": "^2.3.0", "tinyexec": "^1.0.1" }, "bin": { "nypm": "dist/cli.mjs" } }, "sha512-7eM+hpOtrKrBDCh7Ypu2lJ9Z7PNZBdi/8AT3AX8xoCj43BBVHD0hPSTEvMtkMpfs8FCqBGhxB+uToIQimA111g=="],
"ohash": ["ohash@2.0.11", "", {}, "sha512-RdR9FQrFwNBNXAr4GixM8YaRZRJ5PUWbKYbE5eOsrwAjJW0q2REGcf79oYPsLyskQCZG1PLN+S/K1V00joZAoQ=="],
"pathe": ["pathe@2.0.3", "", {}, "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w=="],
"perfect-debounce": ["perfect-debounce@1.0.0", "", {}, "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA=="],
"pkg-types": ["pkg-types@2.3.0", "", { "dependencies": { "confbox": "^0.2.2", "exsolve": "^1.0.7", "pathe": "^2.0.3" } }, "sha512-SIqCzDRg0s9npO5XQ3tNZioRY1uK06lA41ynBC1YmFTmnY6FjUjVt6s4LoADmwoig1qqD0oK8h1p/8mlMx8Oig=="],
"prisma": ["prisma@6.17.0", "", { "dependencies": { "@prisma/config": "6.17.0", "@prisma/engines": "6.17.0" }, "peerDependencies": { "typescript": ">=5.1.0" }, "optionalPeers": ["typescript"], "bin": { "prisma": "build/index.js" } }, "sha512-rcvldz98r+2bVCs0MldQCBaaVJRCj9Ew4IqphLATF89OJcSzwRQpwnKXR+W2+2VjK7/o2x3ffu5+2N3Muu6Dbw=="],
"pure-rand": ["pure-rand@6.1.0", "", {}, "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA=="],
"rc9": ["rc9@2.1.2", "", { "dependencies": { "defu": "^6.1.4", "destr": "^2.0.3" } }, "sha512-btXCnMmRIBINM2LDZoEmOogIZU7Qe7zn4BpomSKZ/ykbLObuBdvG+mFq11DL6fjH1DRwHhrlgtYWG96bJiC7Cg=="],
"readdirp": ["readdirp@4.1.2", "", {}, "sha512-GDhwkLfywWL2s6vEjyhri+eXmfH6j1L7JE27WhqLeYzoh/A3DBaYGEj2H/HFZCn/kMfim73FXxEJTw06WtxQwg=="],
"tinyexec": ["tinyexec@1.0.1", "", {}, "sha512-5uC6DDlmeqiOwCPmK9jMSdOuZTh8bU39Ys6yidB+UTt5hfZUPGAypSgFRiEp+jbi9qH40BLDvy85jIU88wKSqw=="],
"turbo": ["turbo@2.5.8", "", { "optionalDependencies": { "turbo-darwin-64": "2.5.8", "turbo-darwin-arm64": "2.5.8", "turbo-linux-64": "2.5.8", "turbo-linux-arm64": "2.5.8", "turbo-windows-64": "2.5.8", "turbo-windows-arm64": "2.5.8" }, "bin": { "turbo": "bin/turbo" } }, "sha512-5c9Fdsr9qfpT3hA0EyYSFRZj1dVVsb6KIWubA9JBYZ/9ZEAijgUEae0BBR/Xl/wekt4w65/lYLTFaP3JmwSO8w=="],
"turbo-darwin-64": ["turbo-darwin-64@2.5.8", "", { "os": "darwin", "cpu": "x64" }, "sha512-Dh5bCACiHO8rUXZLpKw+m3FiHtAp2CkanSyJre+SInEvEr5kIxjGvCK/8MFX8SFRjQuhjtvpIvYYZJB4AGCxNQ=="],
"turbo-darwin-arm64": ["turbo-darwin-arm64@2.5.8", "", { "os": "darwin", "cpu": "arm64" }, "sha512-f1H/tQC9px7+hmXn6Kx/w8Jd/FneIUnvLlcI/7RGHunxfOkKJKvsoiNzySkoHQ8uq1pJnhJ0xNGTlYM48ZaJOQ=="],
"turbo-linux-64": ["turbo-linux-64@2.5.8", "", { "os": "linux", "cpu": "x64" }, "sha512-hMyvc7w7yadBlZBGl/bnR6O+dJTx3XkTeyTTH4zEjERO6ChEs0SrN8jTFj1lueNXKIHh1SnALmy6VctKMGnWfw=="],
"turbo-linux-arm64": ["turbo-linux-arm64@2.5.8", "", { "os": "linux", "cpu": "arm64" }, "sha512-LQELGa7bAqV2f+3rTMRPnj5G/OHAe2U+0N9BwsZvfMvHSUbsQ3bBMWdSQaYNicok7wOZcHjz2TkESn1hYK6xIQ=="],
"turbo-windows-64": ["turbo-windows-64@2.5.8", "", { "os": "win32", "cpu": "x64" }, "sha512-3YdcaW34TrN1AWwqgYL9gUqmZsMT4T7g8Y5Azz+uwwEJW+4sgcJkIi9pYFyU4ZBSjBvkfuPZkGgfStir5BBDJQ=="],
"turbo-windows-arm64": ["turbo-windows-arm64@2.5.8", "", { "os": "win32", "cpu": "arm64" }, "sha512-eFC5XzLmgXJfnAK3UMTmVECCwuBcORrWdewoiXBnUm934DY6QN8YowC/srhNnROMpaKaqNeRpoB5FxCww3eteQ=="],
"typescript": ["typescript@5.9.2", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-CWBzXQrc/qOkhidw1OzBTQuYRbfyxDXJMVJ1XNwUHGROVmuaeiEm3OslpZ1RV96d7SKKjZKrSJu3+t/xlw3R9A=="],
"undici-types": ["undici-types@7.14.0", "", {}, "sha512-QQiYxHuyZ9gQUIrmPo3IA+hUl4KYk8uSA7cHrcKd/l3p1OTpZcM0Tbp9x7FAtXdAYhlasd60ncPpgu6ihG6TOA=="],
"zod": ["zod@4.1.12", "", {}, "sha512-JInaHOamG8pt5+Ey8kGmdcAcg3OL9reK8ltczgHTAwNhMys/6ThXHityHxVV2p3fkw/c+MAvBHFVYHFZDmjMCQ=="],
}
}

27
flake.lock generated Normal file
View File

@@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1777578337,
"narHash": "sha256-Ad49moKWeXtKBJNy2ebiTQUEgdLyvGmTeykAQ9xM+Z4=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "15f4ee454b1dce334612fa6843b3e05cf546efab",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

21
flake.nix Normal file
View File

@@ -0,0 +1,21 @@
{
description = "Concord development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
};
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux";
pkgs = import nixpkgs { inherit system; };
in
{
devShells.${system}.default = pkgs.mkShell {
buildInputs = [
pkgs.pnpm
];
};
};
}

View File

@@ -1,30 +1,18 @@
{
"name": "concord",
"devDependencies": {
"@biomejs/biome": "^2.2.5",
"turbo": "^2.5.8",
"typescript": "5.9.2"
},
"engines": {
"node": ">=18"
},
"packageManager": "bun@1.2.23",
"private": true,
"name": "shoebill-chat",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "turbo run build",
"dev": "turbo run dev",
"check-types": "turbo run check-types",
"format-and-lint": "biome check .",
"format-and-lint:fix": "biome check . --write",
"db:generate": "prisma generate",
"db:migrate": "prisma migrate dev --skip-generate",
"db:deploy": "prisma migrate deploy",
"db:seed": "bun src/seed.ts",
"db:push": "prisma db push",
"db:studio": "prisma studio"
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "bun turbo dev"
},
"workspaces": [
"apps/*",
"packages/*"
]
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "pnpm@10.33.2",
"devDependencies": {
"bun": "^1.3.13",
"turbo": "^2.9.7"
}
}

View File

@@ -1,57 +0,0 @@
{
"$schema": "https://biomejs.dev/schemas/2.2.5/schema.json",
"root": false,
"vcs": {
"enabled": false,
"clientKind": "git",
"useIgnoreFile": false
},
"files": {
"ignoreUnknown": false,
"includes": ["**", "!dist", "!**/generated"]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"lineWidth": 100
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"json": {
"parser": {
"allowTrailingCommas": true,
"allowComments": true
},
"formatter": {
"trailingCommas": "none"
}
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"indentStyle": "space",
"lineWidth": 100,
"operatorLinebreak": "before",
"trailingCommas": "es5"
},
"linter": {
"enabled": true
}
},
"css": {
"formatter": { "enabled": true, "indentStyle": "space" }
},
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}

View File

@@ -1,5 +0,0 @@
{
"name": "@concord/biome-config",
"version": "0.1.0",
"private": true
}

View File

@@ -1,38 +0,0 @@
# dependencies (bun install)
node_modules
# output
out
dist
*.tgz
# code coverage
coverage
*.lcov
# logs
logs
_.log
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# caches
.eslintcache
.cache
*.tsbuildinfo
# IntelliJ based IDEs
.idea
# Finder (MacOS) folder config
.DS_Store
# prisma recommended
generated

View File

@@ -1,29 +0,0 @@
{
"name": "@concord/database",
"scripts": {
"db:migrate": "prisma migrate dev --skip-generate",
"db:generate": "prisma generate",
"db:push": "prisma db push",
"db:seed": "bun src/seed.ts",
"db:studio": "prisma studio",
"lint": "biome lint .",
"format": "biome format --write .",
"typecheck": "tsc --noEmit"
},
"devDependencies": {
"@concord/biome-config": "workspace:*",
"@concord/tsconfig": "workspace:*",
"@types/bun": "latest",
"bcryptjs": "^3.0.2",
"prisma": "^6.17.0"
},
"peerDependencies": {
"typescript": "^5"
},
"dependencies": {
"@prisma/client": "^6.17.0"
},
"exports": {
".": "./src/client.ts"
}
}

View File

@@ -1,234 +0,0 @@
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client"
output = "../generated"
}
// Enums
enum UserStatus {
online
offline
invisible
dnd
idle
}
enum ChannelType {
voice
text
forum
}
// Core
model User {
id String @id @default(cuid())
username String @unique @db.VarChar(32)
nickname String? @db.VarChar(64)
bio String? @db.VarChar(1024)
picture String? @db.VarChar(2048)
banner String? @db.VarChar(2048)
status UserStatus @default(offline)
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @default(now()) @map("updated_at")
passwordHash String @db.VarChar(255)
isOwner Boolean @default(false)
isAdmin Boolean @default(false)
// Relations
RoleAssign RoleAssign[]
Message Message[]
Reaction Reaction[]
UserPing UserPing[]
Timeout Timeout[]
RefreshToken RefreshToken[]
}
model Server {
id String @id @default(cuid())
name String @unique @db.VarChar(32)
description String? @db.VarChar(1024)
icon String? @db.VarChar(2048)
// FKs
headCategoryId String? @unique @map("head_category_id")
headCategory Category? @relation("ServerHeadCategory", fields: [headCategoryId], references: [id], onUpdate: NoAction, onDelete: SetNull)
// Relations
Category Category[]
Channel Channel[]
Role Role[]
Timeout Timeout[]
}
model Category {
id String @id @default(cuid())
name String @unique @db.VarChar(64)
// FKs (Linked-List)
nextCategoryId String? @unique @map("next_category_id")
nextCategory Category? @relation("CategoryOrder", fields: [nextCategoryId], references: [id], onUpdate: NoAction, onDelete: SetNull)
prevCategory Category? @relation("CategoryOrder")
serverId String @map("server_id")
server Server @relation(fields: [serverId], references: [id], onDelete: Cascade)
headChannelId String? @unique @map("head_channel_id")
headChannel Channel? @relation("CategoryHeadChannel", fields: [headChannelId], references: [id], onUpdate: NoAction, onDelete: SetNull)
// Relations
serverLink Server? @relation("ServerHeadCategory")
}
model Channel {
id String @id @default(cuid())
name String @unique @db.VarChar(64)
description String? @db.VarChar(1024)
type ChannelType @default(text)
// FKs (Linked-List)
nextChannelId String? @unique @map("next_channel_id")
nextChannel Channel? @relation("ChannelOrder", fields: [nextChannelId], references: [id], onUpdate: NoAction, onDelete: SetNull)
prevChannel Channel? @relation("ChannelOrder")
serverId String @map("server_id")
server Server @relation(fields: [serverId], references: [id], onDelete: Cascade)
// Relations
categoryLink Category? @relation("CategoryHeadChannel")
Message Message[]
ChannelPermissions ChannelPermissions[]
}
model Message {
id String @id @default(cuid())
text String @db.VarChar(8096)
createdAt DateTime @default(now())
updatedAt DateTime @default(now())
deletedAt DateTime?
// FKs
channelId String @map("channel_id")
channel Channel @relation(fields: [channelId], references: [id], onDelete: Cascade)
userId String @map("user_id")
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
// Replies
repliesToId String? @map("replies_to_id")
repliesTo Message? @relation("Replies", fields: [repliesToId], references: [id], onUpdate: NoAction, onDelete: SetNull)
replies Message[] @relation("Replies")
// Relations
Reaction Reaction[]
UserPing UserPing[]
RolePing RolePing[]
Attachment Attachment[]
}
model Role {
id String @id @default(cuid())
name String @unique @db.VarChar(64)
canModifyRoles Boolean @default(false)
canCreateChannels Boolean @default(false)
canKickUsers Boolean @default(false)
canTimeout Boolean @default(false)
// FKs
serverId String @map("server_id")
server Server @relation(fields: [serverId], references: [id], onDelete: Cascade)
// Relations
RoleAssign RoleAssign[]
ChannelPermissions ChannelPermissions[]
RolePing RolePing[]
}
// Supporting
model RoleAssign {
// Foreign Keys as composite primary key
userId String @map("user_id")
roleId String @map("role_id")
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
role Role @relation(fields: [roleId], references: [id], onDelete: Cascade)
@@id([userId, roleId])
}
model ChannelPermissions {
id String @id @default(cuid())
channelId String @map("channel_id")
roleId String @map("role_id")
channel Channel @relation(fields: [channelId], references: [id], onDelete: Cascade)
role Role @relation(fields: [roleId], references: [id], onDelete: Cascade)
}
model Reaction {
id String @id @default(cuid())
emoji String
messageId String @map("message_id")
userId String @map("user_id")
message Message @relation(fields: [messageId], references: [id], onDelete: Cascade)
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
@@unique([messageId, userId, emoji])
}
model UserPing {
// Foreign Keys as composite primary key
userId String @map("user_id")
messageId String @map("message_id")
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
message Message @relation(fields: [messageId], references: [id], onDelete: Cascade)
@@id([userId, messageId])
}
model RolePing {
// FKs as composite primary key
roleId String @map("role_id")
messageId String @map("message_id")
role Role @relation(fields: [roleId], references: [id], onDelete: Cascade)
message Message @relation(fields: [messageId], references: [id], onDelete: Cascade)
@@id([roleId, messageId])
}
model Attachment {
id String @id @default(cuid())
url String @db.VarChar(2000)
fileName String @map("file_name") @db.VarChar(255)
mimeType String @map("mime_type") @db.VarChar(64)
size Int
// FKs
messageId String @map("message_id")
message Message @relation(fields: [messageId], references: [id], onDelete: Cascade)
}
model Timeout {
timeoutUntil DateTime @map("timeout_until")
description String? @db.VarChar(1000)
// FKs
userId String @map("user_id")
serverId String @map("server_id")
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
server Server @relation(fields: [serverId], references: [id], onDelete: Cascade)
@@id([userId, serverId])
}
model RefreshToken {
id String @id @default(cuid())
tokenHash String @unique @db.VarChar(255)
createdAt DateTime @default(now())
expiresAt DateTime
device String? @db.VarChar(255)
// FKs
userId String @map("user_id")
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}

View File

@@ -1,15 +0,0 @@
import { PrismaClient } from '../generated/client';
const globalForPrisma = globalThis as unknown as {
prisma: PrismaClient | undefined;
};
export const prisma =
globalForPrisma.prisma
|| new PrismaClient({
log: process.env.NODE_ENV === 'development' ? ['query', 'error', 'warn'] : ['error'],
});
if (process.env.NODE_ENV !== 'production') globalForPrisma.prisma = prisma;
export * from '../generated/client';

View File

@@ -1,163 +0,0 @@
import * as bcrypt from 'bcryptjs';
import { PrismaClient } from './client';
const prisma = new PrismaClient();
async function main() {
console.log('Start seeding...');
const hashedPassword = await bcrypt.hash('test', 10);
console.log('Generated password hash.');
// Clean up existing data to ensure a fresh start
await prisma.roleAssign.deleteMany();
await prisma.message.deleteMany();
await prisma.channel.deleteMany();
await prisma.category.deleteMany();
await prisma.role.deleteMany();
await prisma.server.deleteMany();
await prisma.user.deleteMany();
console.log('Cleaned up old data.');
// Create Users
const alice = await prisma.user.create({
data: {
username: 'Alice',
nickname: 'Alice',
passwordHash: hashedPassword,
isOwner: true,
},
});
const bob = await prisma.user.create({
data: {
username: 'Bob',
nickname: 'Bobby',
passwordHash: hashedPassword,
isAdmin: true,
},
});
const charlie = await prisma.user.create({
data: {
username: 'Charlie',
passwordHash: hashedPassword,
},
});
console.log(`Created users: ${alice.username}, ${bob.username}, ${charlie.username}`);
// Create a Server
const server = await prisma.server.create({
data: {
name: 'TS Lovers',
description: 'Static Types Win',
},
});
console.log(`Created server: ${server.name}`);
// Create Roles for the server
const adminRole = await prisma.role.create({
data: {
name: 'Admin',
serverId: server.id,
canCreateChannels: true,
canKickUsers: true,
canModifyRoles: true,
canTimeout: true,
},
});
const memberRole = await prisma.role.create({
data: { name: 'Member', serverId: server.id },
});
console.log(`Created roles: ${adminRole.name}, ${memberRole.name}`);
// Assign roles to users
await prisma.roleAssign.createMany({
data: [
{ userId: alice.id, roleId: adminRole.id },
{ userId: bob.id, roleId: adminRole.id },
{ userId: charlie.id, roleId: memberRole.id },
],
});
console.log('Assigned roles to users.');
// Create Categories
const generalCategory = await prisma.category.create({
data: {
name: 'General',
serverId: server.id,
},
});
const devCategory = await prisma.category.create({
data: {
name: 'Development',
serverId: server.id,
},
});
// Set the category order (linked-list) and head category for the server
await prisma.server.update({
where: { id: server.id },
data: { headCategoryId: generalCategory.id },
});
await prisma.category.update({
where: { id: generalCategory.id },
data: { nextCategoryId: devCategory.id },
});
console.log(`Created categories: ${generalCategory.name}, ${devCategory.name}`);
// Create Channels
const welcomeChannel = await prisma.channel.create({
data: {
name: 'welcome',
serverId: server.id,
},
});
const announcementsChannel = await prisma.channel.create({
data: {
name: 'announcements',
serverId: server.id,
},
});
// Set channel order for the "General" category
await prisma.category.update({
where: { id: generalCategory.id },
data: { headChannelId: welcomeChannel.id },
});
await prisma.channel.update({
where: { id: welcomeChannel.id },
data: { nextChannelId: announcementsChannel.id },
});
console.log(`Created channels: ${welcomeChannel.name}, ${announcementsChannel.name}`);
// Create a Message
const firstMessage = await prisma.message.create({
data: {
text: `Welcome to the ${server.name} server, ${bob.username}!`,
channelId: welcomeChannel.id,
userId: alice.id,
},
});
console.log(`Created a welcome message.`);
// Create a Reply
await prisma.message.create({
data: {
text: 'Glad to be here!',
channelId: welcomeChannel.id,
userId: bob.id,
repliesToId: firstMessage.id,
},
});
console.log(`Created a reply.`);
console.log('Seeding finished.');
}
main()
.catch((e) => {
console.error(e);
process.exit(1);
})
.finally(async () => {
await prisma.$disconnect();
});

View File

@@ -1,5 +0,0 @@
{
"extends": "@concord/tsconfig/base.json",
"include": ["."],
"exclude": ["generated"]
}

View File

@@ -1,39 +0,0 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
"esModuleInterop": true,
"isolatedModules": true,
"resolveJsonModule": true,
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
},
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"inlineSources": false,
"noUnusedLocals": false,
"noUnusedParameters": false,
"forceConsistentCasingInFileNames": true,
"noPropertyAccessFromIndexSignature": false
},
"exclude": ["node_modules", "dist"]
}

View File

@@ -1,5 +0,0 @@
{
"name": "@concord/tsconfig",
"version": "0.1.0",
"private": true
}

502
pnpm-lock.yaml generated Normal file
View File

@@ -0,0 +1,502 @@
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
devDependencies:
bun:
specifier: ^1.3.13
version: 1.3.13
turbo:
specifier: ^2.9.7
version: 2.9.7
apps/guild-service:
dependencies:
'@types/node':
specifier: ^25.6.0
version: 25.6.0
elysia:
specifier: ^1.4.28
version: 1.4.28(@sinclair/typebox@0.34.49)(exact-mirror@1.0.0)(file-type@22.0.1)(openapi-types@12.1.3)(typescript@6.0.3)
ts-node:
specifier: ^10.9.2
version: 10.9.2(@types/node@25.6.0)(typescript@6.0.3)
typescript:
specifier: ^6.0.3
version: 6.0.3
packages:
'@borewit/text-codec@0.2.2':
resolution: {integrity: sha512-DDaRehssg1aNrH4+2hnj1B7vnUGEjU6OIlyRdkMd0aUdIUvKXrJfXsy8LVtXAy7DRvYVluWbMspsRhz2lcW0mQ==}
'@cspotcode/source-map-support@0.8.1':
resolution: {integrity: sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==}
engines: {node: '>=12'}
'@jridgewell/resolve-uri@3.1.2':
resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
engines: {node: '>=6.0.0'}
'@jridgewell/sourcemap-codec@1.5.5':
resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
'@jridgewell/trace-mapping@0.3.9':
resolution: {integrity: sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==}
'@oven/bun-darwin-aarch64@1.3.13':
resolution: {integrity: sha512-qAS6Hg8Q14ckfBuqJ2Zh7gBQSVSUHeibSq4OFqBTv6DzyJuxYlr0sdYQzmYmnbPxbqobekqUDTa/4XEaqRi7vg==}
cpu: [arm64]
os: [darwin]
'@oven/bun-darwin-x64-baseline@1.3.13':
resolution: {integrity: sha512-gMEQayUpmCPYaE9zkNBj9TiQqHupnhjOYcuSzxFjzIjHJBUO4VjNnrpbKVeXNs+rKHFothORDd2QKquu5paSPQ==}
cpu: [x64]
os: [darwin]
'@oven/bun-darwin-x64@1.3.13':
resolution: {integrity: sha512-kGePeDD4IN4imo+H4uLjQGZLmvyYQg+nKr2P0nt4ksXXrWA4HE+mb0/TUPHfRI127DocXQpew+fvrHuHR5mpJQ==}
cpu: [x64]
os: [darwin]
'@oven/bun-linux-aarch64-musl@1.3.13':
resolution: {integrity: sha512-UV9EE18VE5aRhWtV2L6MTAGGn3slhJJ2OW/m+FJM15maHm0qf1V7TaZY0FovxhdQRvnklSiQ7Ntv0H5TUX4w0g==}
cpu: [arm64]
os: [linux]
'@oven/bun-linux-aarch64@1.3.13':
resolution: {integrity: sha512-NbLOJdr+RBFO1vFZ2YUFg4oVJ+2ua6zrwo4ZWRs0jKKcGJWtbY2wY5uz+i0PkwH6b9HYaYDgVTzE4ev06ncYZw==}
cpu: [arm64]
os: [linux]
'@oven/bun-linux-x64-baseline@1.3.13':
resolution: {integrity: sha512-fOi4ziKzgJG4UrrNd4AicBs6Fu9GY5xOqg+9tC76nuZNDAdSh6++kzab6TNi1Ck0Yzq6zIBIdGit6/0uSbBn8A==}
cpu: [x64]
os: [linux]
'@oven/bun-linux-x64-musl-baseline@1.3.13':
resolution: {integrity: sha512-fqBKuiiWLEu2dVkowZaXgKS98xfrvBqivdoxRtRP3eINcpI1dcelGbsOz+Xphn7tbGAuBiE1/0AelvvvdqS9rg==}
cpu: [x64]
os: [linux]
'@oven/bun-linux-x64-musl@1.3.13':
resolution: {integrity: sha512-+VHhE44kEjCXcTFHyc81zfTxL9+vzh9RqIh7gM1iWNhxpctD9kzntbUkP3UTFTwwNjoou1o8VRyxQafvc4OepA==}
cpu: [x64]
os: [linux]
'@oven/bun-linux-x64@1.3.13':
resolution: {integrity: sha512-UwttIUXoe9fS+40OcjoaRHgZw+HCPFqBVWEXkXqAJ3W7wA0XPZrWsoMAD9sGh3TaLqrwdiMo5xPogwpXhOtVXA==}
cpu: [x64]
os: [linux]
'@oven/bun-windows-aarch64@1.3.13':
resolution: {integrity: sha512-+EvdRWRCRg95Xea4M2lqSJFTjzQBTJDQTMlbG8bmwFkVTN16MdmSH7xhfxVQWUOyZBLEpIwuNFIlBBxVCwSUyQ==}
cpu: [arm64]
os: [win32]
'@oven/bun-windows-x64-baseline@1.3.13':
resolution: {integrity: sha512-6gy4hhQSjq/T/S9hC9m3NxY0RY+9Ww+XNlB+8koIMTsMSYEjk7Ho+hFHQz1Bn4W61Ub7Vykufg+jgDgPfa2GFA==}
cpu: [x64]
os: [win32]
'@oven/bun-windows-x64@1.3.13':
resolution: {integrity: sha512-vqDEFX63ZZQF3YstPSpPD+RxNm5AILPdUuuKpNwsj7ld4NjhdHUYkAmLXDtKNWt9JMRL10bop//W8faY/LV+RQ==}
cpu: [x64]
os: [win32]
'@sinclair/typebox@0.34.49':
resolution: {integrity: sha512-brySQQs7Jtn0joV8Xh9ZV/hZb9Ozb0pmazDIASBkYKCjXrXU3mpcFahmK/z4YDhGkQvP9mWJbVyahdtU5wQA+A==}
'@tokenizer/inflate@0.4.1':
resolution: {integrity: sha512-2mAv+8pkG6GIZiF1kNg1jAjh27IDxEPKwdGul3snfztFerfPGI1LjDezZp3i7BElXompqEtPmoPx6c2wgtWsOA==}
engines: {node: '>=18'}
'@tokenizer/token@0.3.0':
resolution: {integrity: sha512-OvjF+z51L3ov0OyAU0duzsYuvO01PH7x4t6DJx+guahgTnBHkhJdG7soQeTSFLWN3efnHyibZ4Z8l2EuWwJN3A==}
'@tsconfig/node10@1.0.12':
resolution: {integrity: sha512-UCYBaeFvM11aU2y3YPZ//O5Rhj+xKyzy7mvcIoAjASbigy8mHMryP5cK7dgjlz2hWxh1g5pLw084E0a/wlUSFQ==}
'@tsconfig/node12@1.0.11':
resolution: {integrity: sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==}
'@tsconfig/node14@1.0.3':
resolution: {integrity: sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==}
'@tsconfig/node16@1.0.4':
resolution: {integrity: sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==}
'@turbo/darwin-64@2.9.7':
resolution: {integrity: sha512-wnvOWuVWJ5EUHNKxExEWiGlTeVpLG1L0PCu5MUozyC1P2SHGiWsmpW6/yAuShH91Fa2TAHOvdCRBzriZh4j4Eg==}
cpu: [x64]
os: [darwin]
'@turbo/darwin-arm64@2.9.7':
resolution: {integrity: sha512-mA0FIPMwwN3lodDkQYaGxj6PeT7ZaN5aCEbkKn/WB+ZB9yJdVWA4J83GH7t43jqDc5dcnVluVN5UFx3plRiXhA==}
cpu: [arm64]
os: [darwin]
'@turbo/linux-64@2.9.7':
resolution: {integrity: sha512-fEbUYpgb5l7P+q+5tsWF2gw+/GSjUsuUTcnfm+f0lozUjgcjLKyOat6PgtAChmIFcTPchCL/8rJ3TvkBy01gfA==}
cpu: [x64]
os: [linux]
'@turbo/linux-arm64@2.9.7':
resolution: {integrity: sha512-VkUjulo9ytfHKUHOS5gy0XPoh4CTKPXWCL8nLdrlHVi9fSut31ECeUqnm/dAbETP5D4xo9mH9XkJ+qMzGe/zmg==}
cpu: [arm64]
os: [linux]
'@turbo/windows-64@2.9.7':
resolution: {integrity: sha512-/GWdY6/x4aIHqkYJq596Rpdk1x0MkpRPkJcLAoB3yGRwyUms0+u2F1GnV54IbyAZTeKLRWSJKzNC+QwVGdYchA==}
cpu: [x64]
os: [win32]
'@turbo/windows-arm64@2.9.7':
resolution: {integrity: sha512-xBBgxCC5PK2+WZ1PPRZdp+aJ0bMBcEbweXWux3RUHJvX9ZodcoQySkrW6qt+ahb+uk8ZjyQodLfDwtVSoYds1w==}
cpu: [arm64]
os: [win32]
'@types/node@25.6.0':
resolution: {integrity: sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==}
acorn-walk@8.3.5:
resolution: {integrity: sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw==}
engines: {node: '>=0.4.0'}
acorn@8.16.0:
resolution: {integrity: sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==}
engines: {node: '>=0.4.0'}
hasBin: true
arg@4.1.3:
resolution: {integrity: sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==}
bun@1.3.13:
resolution: {integrity: sha512-b9T4xZ8KqCHs4+TkHJv540LG1B8OD7noKu0Qaizusx3jFtMDHY6osNqgbaOlwW2B8RB2AKzz+sjzlGKIGxIjZw==}
cpu: [arm64, x64]
os: [darwin, linux, win32]
hasBin: true
cookie@1.1.1:
resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==}
engines: {node: '>=18'}
create-require@1.1.1:
resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==}
debug@4.4.3:
resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
engines: {node: '>=6.0'}
peerDependencies:
supports-color: '*'
peerDependenciesMeta:
supports-color:
optional: true
diff@4.0.4:
resolution: {integrity: sha512-X07nttJQkwkfKfvTPG/KSnE2OMdcUCao6+eXF3wmnIQRn2aPAHH3VxDbDOdegkd6JbPsXqShpvEOHfAT+nCNwQ==}
engines: {node: '>=0.3.1'}
elysia@1.4.28:
resolution: {integrity: sha512-Vrx8sBnvq8squS/3yNBzR1jBXI+SgmnmvwawPjNuEHndUe5l1jV2Gp6JJ4ulDkEB8On6bWmmuyPpA+bq4t+WYg==}
peerDependencies:
'@sinclair/typebox': '>= 0.34.0 < 1'
'@types/bun': '>= 1.2.0'
exact-mirror: '>= 0.0.9'
file-type: '>= 20.0.0'
openapi-types: '>= 12.0.0'
typescript: '>= 5.0.0'
peerDependenciesMeta:
'@types/bun':
optional: true
typescript:
optional: true
exact-mirror@1.0.0:
resolution: {integrity: sha512-tB6QSwlyUDZh22vS4ytBjmTvpMJ7eNNqSUtH4w7TpQsE7//V+MsdWUhO0B1UptzStDFHQBCxfJPtDDiVaFfRyQ==}
peerDependencies:
typebox: '>= 1.1.0'
peerDependenciesMeta:
typebox:
optional: true
fast-decode-uri-component@1.0.1:
resolution: {integrity: sha512-WKgKWg5eUxvRZGwW8FvfbaH7AXSh2cL+3j5fMGzUMCxWBJ3dV3a7Wz8y2f/uQ0e3B6WmodD3oS54jTQ9HVTIIg==}
file-type@22.0.1:
resolution: {integrity: sha512-ww5Mhre0EE+jmBvOXTmXAbEMuZE7uX4a3+oRCQFNj8w++g3ev913N6tXQz0XTXbueQ5TWQfm6BdaViEHHn8bhA==}
engines: {node: '>=22'}
ieee754@1.2.1:
resolution: {integrity: sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==}
make-error@1.3.6:
resolution: {integrity: sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==}
memoirist@0.4.0:
resolution: {integrity: sha512-zxTgA0mSYELa66DimuNQDvyLq36AwDlTuVRbnQtB+VuTcKWm5Qc4z3WkSpgsFWHNhexqkIooqpv4hdcqrX5Nmg==}
ms@2.1.3:
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
openapi-types@12.1.3:
resolution: {integrity: sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==}
strtok3@10.3.5:
resolution: {integrity: sha512-ki4hZQfh5rX0QDLLkOCj+h+CVNkqmp/CMf8v8kZpkNVK6jGQooMytqzLZYUVYIZcFZ6yDB70EfD8POcFXiF5oA==}
engines: {node: '>=18'}
token-types@6.1.2:
resolution: {integrity: sha512-dRXchy+C0IgK8WPC6xvCHFRIWYUbqqdEIKPaKo/AcTUNzwLTK6AH7RjdLWsEZcAN/TBdtfUw3PYEgPr5VPr6ww==}
engines: {node: '>=14.16'}
ts-node@10.9.2:
resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==}
hasBin: true
peerDependencies:
'@swc/core': '>=1.2.50'
'@swc/wasm': '>=1.2.50'
'@types/node': '*'
typescript: '>=2.7'
peerDependenciesMeta:
'@swc/core':
optional: true
'@swc/wasm':
optional: true
turbo@2.9.7:
resolution: {integrity: sha512-epxzqVO2s0IxcSWcgb+qKrtco8isfe7g3VtiS6hkYnEK4A9XQDZbrtavQ6MtWR1KoQn+1fUomaQth2rfRHlUlg==}
hasBin: true
typescript@6.0.3:
resolution: {integrity: sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==}
engines: {node: '>=14.17'}
hasBin: true
uint8array-extras@1.5.0:
resolution: {integrity: sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A==}
engines: {node: '>=18'}
undici-types@7.19.2:
resolution: {integrity: sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==}
v8-compile-cache-lib@3.0.1:
resolution: {integrity: sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==}
yn@3.1.1:
resolution: {integrity: sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==}
engines: {node: '>=6'}
snapshots:
'@borewit/text-codec@0.2.2': {}
'@cspotcode/source-map-support@0.8.1':
dependencies:
'@jridgewell/trace-mapping': 0.3.9
'@jridgewell/resolve-uri@3.1.2': {}
'@jridgewell/sourcemap-codec@1.5.5': {}
'@jridgewell/trace-mapping@0.3.9':
dependencies:
'@jridgewell/resolve-uri': 3.1.2
'@jridgewell/sourcemap-codec': 1.5.5
'@oven/bun-darwin-aarch64@1.3.13':
optional: true
'@oven/bun-darwin-x64-baseline@1.3.13':
optional: true
'@oven/bun-darwin-x64@1.3.13':
optional: true
'@oven/bun-linux-aarch64-musl@1.3.13':
optional: true
'@oven/bun-linux-aarch64@1.3.13':
optional: true
'@oven/bun-linux-x64-baseline@1.3.13':
optional: true
'@oven/bun-linux-x64-musl-baseline@1.3.13':
optional: true
'@oven/bun-linux-x64-musl@1.3.13':
optional: true
'@oven/bun-linux-x64@1.3.13':
optional: true
'@oven/bun-windows-aarch64@1.3.13':
optional: true
'@oven/bun-windows-x64-baseline@1.3.13':
optional: true
'@oven/bun-windows-x64@1.3.13':
optional: true
'@sinclair/typebox@0.34.49': {}
'@tokenizer/inflate@0.4.1':
dependencies:
debug: 4.4.3
token-types: 6.1.2
transitivePeerDependencies:
- supports-color
'@tokenizer/token@0.3.0': {}
'@tsconfig/node10@1.0.12': {}
'@tsconfig/node12@1.0.11': {}
'@tsconfig/node14@1.0.3': {}
'@tsconfig/node16@1.0.4': {}
'@turbo/darwin-64@2.9.7':
optional: true
'@turbo/darwin-arm64@2.9.7':
optional: true
'@turbo/linux-64@2.9.7':
optional: true
'@turbo/linux-arm64@2.9.7':
optional: true
'@turbo/windows-64@2.9.7':
optional: true
'@turbo/windows-arm64@2.9.7':
optional: true
'@types/node@25.6.0':
dependencies:
undici-types: 7.19.2
acorn-walk@8.3.5:
dependencies:
acorn: 8.16.0
acorn@8.16.0: {}
arg@4.1.3: {}
bun@1.3.13:
optionalDependencies:
'@oven/bun-darwin-aarch64': 1.3.13
'@oven/bun-darwin-x64': 1.3.13
'@oven/bun-darwin-x64-baseline': 1.3.13
'@oven/bun-linux-aarch64': 1.3.13
'@oven/bun-linux-aarch64-musl': 1.3.13
'@oven/bun-linux-x64': 1.3.13
'@oven/bun-linux-x64-baseline': 1.3.13
'@oven/bun-linux-x64-musl': 1.3.13
'@oven/bun-linux-x64-musl-baseline': 1.3.13
'@oven/bun-windows-aarch64': 1.3.13
'@oven/bun-windows-x64': 1.3.13
'@oven/bun-windows-x64-baseline': 1.3.13
cookie@1.1.1: {}
create-require@1.1.1: {}
debug@4.4.3:
dependencies:
ms: 2.1.3
diff@4.0.4: {}
elysia@1.4.28(@sinclair/typebox@0.34.49)(exact-mirror@1.0.0)(file-type@22.0.1)(openapi-types@12.1.3)(typescript@6.0.3):
dependencies:
'@sinclair/typebox': 0.34.49
cookie: 1.1.1
exact-mirror: 1.0.0
fast-decode-uri-component: 1.0.1
file-type: 22.0.1
memoirist: 0.4.0
openapi-types: 12.1.3
optionalDependencies:
typescript: 6.0.3
exact-mirror@1.0.0: {}
fast-decode-uri-component@1.0.1: {}
file-type@22.0.1:
dependencies:
'@tokenizer/inflate': 0.4.1
strtok3: 10.3.5
token-types: 6.1.2
uint8array-extras: 1.5.0
transitivePeerDependencies:
- supports-color
ieee754@1.2.1: {}
make-error@1.3.6: {}
memoirist@0.4.0: {}
ms@2.1.3: {}
openapi-types@12.1.3: {}
strtok3@10.3.5:
dependencies:
'@tokenizer/token': 0.3.0
token-types@6.1.2:
dependencies:
'@borewit/text-codec': 0.2.2
'@tokenizer/token': 0.3.0
ieee754: 1.2.1
ts-node@10.9.2(@types/node@25.6.0)(typescript@6.0.3):
dependencies:
'@cspotcode/source-map-support': 0.8.1
'@tsconfig/node10': 1.0.12
'@tsconfig/node12': 1.0.11
'@tsconfig/node14': 1.0.3
'@tsconfig/node16': 1.0.4
'@types/node': 25.6.0
acorn: 8.16.0
acorn-walk: 8.3.5
arg: 4.1.3
create-require: 1.1.1
diff: 4.0.4
make-error: 1.3.6
typescript: 6.0.3
v8-compile-cache-lib: 3.0.1
yn: 3.1.1
turbo@2.9.7:
optionalDependencies:
'@turbo/darwin-64': 2.9.7
'@turbo/darwin-arm64': 2.9.7
'@turbo/linux-64': 2.9.7
'@turbo/linux-arm64': 2.9.7
'@turbo/windows-64': 2.9.7
'@turbo/windows-arm64': 2.9.7
typescript@6.0.3: {}
uint8array-extras@1.5.0: {}
undici-types@7.19.2: {}
v8-compile-cache-lib@3.0.1: {}
yn@3.1.1: {}

5
pnpm-workspace.yaml Normal file
View File

@@ -0,0 +1,5 @@
packages:
- 'apps/*'
- 'packages/*'
allowBuilds:
bun: true

View File

@@ -1,43 +1,15 @@
{
"$schema": "https://turborepo.com/schema.json",
"ui": "tui",
"$schema": "https://turborepo.dev/schema.json",
"tasks": {
"build": {
"dependsOn": ["^build"],
"inputs": ["$TURBO_DEFAULT$", ".env*"],
"outputs": [".next/**", "!.next/cache/**"],
"env": ["DATABASE_URL"]
},
"//#format-and-lint": {},
"//#format-and-lint:fix": {
"cache": false
"outputs": ["dist/**"]
},
"check-types": {
"dependsOn": ["^check-types"]
},
"dev": {
"cache": false,
"persistent": true
},
"db:generate": {
"persistent": true,
"cache": false
},
"db:migrate": {
"cache": false,
"persistent": true
},
"db:deploy": {
"cache": false
},
"db:seed": {
"cache": false
},
"db:push": {
"cache": false
},
"db:studio": {
"cache": false,
"persistent": true
}
}
}