aboutsummaryrefslogtreecommitdiff
path: root/web/core
diff options
context:
space:
mode:
authorbenj <benj@rse8.com>2026-04-10 11:13:34 +0800
committerbenj <benj@rse8.com>2026-04-10 11:13:34 +0800
commit493746b14c1251a45b061d2e3edd9160c929d2b9 (patch)
tree1607cceb94c1aac1a17a01bb5c0d71b97342e892 /web/core
parentc041641634650c31e03c70dcad132fd94cb08e63 (diff)
downloadtidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.gz
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.bz2
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.lz
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.xz
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.tar.zst
tidyindex-493746b14c1251a45b061d2e3edd9160c929d2b9.zip
a basic ui and landing web interface for tidyindex.com
Diffstat (limited to 'web/core')
-rw-r--r--web/core/package.json28
-rw-r--r--web/core/src/index.ts15
-rw-r--r--web/core/tsconfig.json10
3 files changed, 53 insertions, 0 deletions
diff --git a/web/core/package.json b/web/core/package.json
new file mode 100644
index 0000000..ca4db41
--- /dev/null
+++ b/web/core/package.json
@@ -0,0 +1,28 @@
+{
+ "name": "@tidyindex/core",
+ "version": "0.0.0",
+ "private": true,
+ "type": "module",
+ "exports": {
+ ".": "./src/index.ts",
+ "./db": "./src/db/client.ts",
+ "./schema": "./src/db/schema.ts",
+ "./keys": "./src/keys.ts",
+ "./auth": "./src/auth.ts",
+ "./usage": "./src/usage.ts",
+ "./plans": "./src/plans.ts",
+ "./accounts": "./src/accounts.ts",
+ "./crypto": "./src/crypto.ts"
+ },
+ "scripts": {
+ "check": "tsc --noEmit"
+ },
+ "dependencies": {
+ "@neondatabase/serverless": "^0.9.5",
+ "drizzle-orm": "^0.33.0",
+ "jose": "^5.9.0"
+ },
+ "devDependencies": {
+ "typescript": "^5.6.0"
+ }
+}
diff --git a/web/core/src/index.ts b/web/core/src/index.ts
new file mode 100644
index 0000000..5e965e9
--- /dev/null
+++ b/web/core/src/index.ts
@@ -0,0 +1,15 @@
+// @tidyindex/core — shared, platform-agnostic domain code for the
+// SvelteKit UI (web/ui) and the Hono API (web/api).
+//
+// Rules of the road:
+// - No imports from SvelteKit, Vite, Workers, Node-only modules, or
+// anything platform-specific. Pass platform values in as arguments.
+// - Use Web Crypto (./crypto), not node:crypto.
+// - No module-level state. Functions take a Db (or other context) as
+// their first argument.
+//
+// Real submodules will be added in subsequent passes (db, keys, auth,
+// usage, plans, accounts). For now this barrel just exists so the
+// workspace wires together.
+
+export const CORE_VERSION = '0.0.0';
diff --git a/web/core/tsconfig.json b/web/core/tsconfig.json
new file mode 100644
index 0000000..9717b38
--- /dev/null
+++ b/web/core/tsconfig.json
@@ -0,0 +1,10 @@
+{
+ "extends": "../tsconfig.base.json",
+ "compilerOptions": {
+ "rootDir": "src",
+ "outDir": "dist",
+ "lib": ["ES2022", "DOM"],
+ "noEmit": true
+ },
+ "include": ["src/**/*.ts"]
+}