@deepraxis/app-template 0.0.0-stage → 0.1.0-dev.3c36146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/LICENSE +67 -0
  2. package/README.md +6 -2
  3. package/SKILL.md +145 -0
  4. package/package.json +13 -4
  5. package/references/design.md +113 -0
  6. package/references/research.md +56 -0
  7. package/template/README.md +57 -0
  8. package/template/_gitignore +7 -0
  9. package/template/app/account/page.tsx +47 -0
  10. package/template/app/admin/page.tsx +53 -0
  11. package/template/app/api/auth/login/route.ts +30 -0
  12. package/template/app/api/auth/register/route.ts +24 -0
  13. package/template/app/api/health/route.ts +10 -0
  14. package/template/app/api/images/route.ts +15 -0
  15. package/template/app/globals.css +45 -0
  16. package/template/app/images/[...key]/route.ts +20 -0
  17. package/template/app/layout.tsx +35 -0
  18. package/template/app/login/page.tsx +26 -0
  19. package/template/app/logout/route.ts +9 -0
  20. package/template/app/page.tsx +21 -0
  21. package/template/app/register/page.tsx +25 -0
  22. package/template/components/ui/badge.tsx +26 -0
  23. package/template/components/ui/button.tsx +24 -0
  24. package/template/components/ui/card.tsx +17 -0
  25. package/template/components/ui/input.tsx +14 -0
  26. package/template/components/ui/label.tsx +6 -0
  27. package/template/env.d.ts +11 -0
  28. package/template/lib/auth.test.ts +61 -0
  29. package/template/lib/auth.ts +107 -0
  30. package/template/lib/db.ts +19 -0
  31. package/template/lib/design-tokens.test.ts +90 -0
  32. package/template/lib/format.test.ts +12 -0
  33. package/template/lib/format.ts +18 -0
  34. package/template/lib/guard.ts +37 -0
  35. package/template/lib/migrate.test.ts +50 -0
  36. package/template/lib/migrate.ts +54 -0
  37. package/template/lib/migrations.ts +5 -0
  38. package/template/lib/schema.ts +30 -0
  39. package/template/lib/session.ts +48 -0
  40. package/template/lib/storage.ts +32 -0
  41. package/template/lib/users.test.ts +51 -0
  42. package/template/lib/users.ts +46 -0
  43. package/template/lib/utils.ts +6 -0
  44. package/template/migrations/0001_init.sql +27 -0
  45. package/template/next.config.ts +4 -0
  46. package/template/package.json +39 -0
  47. package/template/postcss.config.cjs +1 -0
  48. package/template/praxis.jsonc +10 -0
  49. package/template/tailwind.config.ts +35 -0
  50. package/template/test/fake-d1.ts +38 -0
  51. package/template/tsconfig.json +17 -0
  52. package/template/vinext-plugins.ts +77 -0
  53. package/template/vite.config.ts +8 -0
  54. package/template/wrangler.jsonc +11 -0
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from "vite";
2
+ import vinext from "vinext";
3
+ import { cloudflare } from "@cloudflare/vite-plugin";
4
+ import { vinextWorkerPlugins } from "./vinext-plugins";
5
+
6
+ export default defineConfig({
7
+ plugins: [...vinextWorkerPlugins(), vinext(), cloudflare({ viteEnvironment: { name: "rsc", childEnvironments: ["ssr"] } })],
8
+ });
@@ -0,0 +1,11 @@
1
+ {
2
+ "name": "praxis-app",
3
+ "compatibility_date": "2025-04-01",
4
+ "compatibility_flags": ["nodejs_compat"],
5
+ "main": "vinext/server/app-router-entry",
6
+ "assets": { "binding": "ASSETS", "not_found_handling": "none" },
7
+ // The platform creates worker-owned resources for these bindings and ignores the ids.
8
+ "d1_databases": [{ "binding": "DB", "database_name": "app-db", "database_id": "local-only" }],
9
+ "r2_buckets": [{ "binding": "IMAGES", "bucket_name": "app-images" }]
10
+ // SESSION_SECRET (secret_text) is passed at deploy time and never written here.
11
+ }