@seip/blue-bird 0.7.6 → 0.8.0

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 (41) hide show
  1. package/.env_example +34 -34
  2. package/AGENTS.md +174 -249
  3. package/LICENSE +21 -21
  4. package/README.md +312 -367
  5. package/{index.js → backend/index.js} +22 -30
  6. package/backend/routes/api.js +57 -57
  7. package/core/app.js +338 -402
  8. package/core/auth.js +262 -256
  9. package/core/cache.js +174 -174
  10. package/core/cli/docker.js +488 -457
  11. package/core/cli/init.js +332 -336
  12. package/core/cli/route.js +42 -42
  13. package/core/config.js +52 -52
  14. package/core/database.js +263 -263
  15. package/core/debug.js +248 -248
  16. package/core/logger.js +115 -115
  17. package/core/middleware.js +27 -27
  18. package/core/router.js +144 -144
  19. package/core/swagger.js +40 -40
  20. package/core/upload.js +77 -77
  21. package/core/validate.js +380 -380
  22. package/docker/Dockerfile +16 -16
  23. package/docker/docker-compose.dev.yml +6 -0
  24. package/docker/docker-compose.mysql.yml +92 -92
  25. package/docker/docker-compose.none.yml +68 -68
  26. package/docker/docker-compose.postgres.yml +93 -93
  27. package/docker/nginx.conf +98 -106
  28. package/docker-compose.yml +92 -92
  29. package/frontend/about.html +98 -0
  30. package/frontend/css/app.css +0 -0
  31. package/frontend/favicon.ico +0 -0
  32. package/frontend/index.html +141 -0
  33. package/frontend/js/bundle.js +8 -0
  34. package/package.json +64 -71
  35. package/frontend/astro.config.mjs +0 -35
  36. package/frontend/public/css/app.css +0 -319
  37. package/frontend/public/favicon.ico +0 -0
  38. package/frontend/src/http/api.js +0 -29
  39. package/frontend/src/layouts/Layout.astro +0 -20
  40. package/frontend/src/pages/about.astro +0 -54
  41. package/frontend/src/pages/index.astro +0 -110
@@ -1,110 +0,0 @@
1
- ---
2
- import Layout from "../layouts/Layout.astro";
3
- import { apiUrl } from "../http/api";
4
-
5
- let apiData = null;
6
- try {
7
- const targetUrl = apiUrl("api/", Astro.url);
8
- console.log("[index.astro] request URL:", Astro.url.href);
9
- console.log("[index.astro] target URL:", targetUrl);
10
- const response = await fetch(targetUrl);
11
- apiData = await response.json();
12
- console.log("[index.astro] /api/ response:", apiData);
13
- } catch (err) {
14
- console.error("[index.astro] fetch error:", err.message);
15
- if (err.cause) {
16
- console.error("[index.astro] fetch error cause:", err.cause);
17
- }
18
- }
19
- ---
20
-
21
- <Layout title="Home - Blue Bird">
22
- <header class="site-header">
23
- <div class="nav-bar">
24
- <a href="/" class="nav-brand">
25
- <div class="brand-icon">
26
- <svg
27
- width="20"
28
- height="20"
29
- fill="none"
30
- stroke="white"
31
- viewBox="0 0 24 24"
32
- >
33
- <path
34
- stroke-linecap="round"
35
- stroke-linejoin="round"
36
- stroke-width="2"
37
- d="M12 19l9 2-9-18-9 18 9-2zm0 0v-8"></path>
38
- </svg>
39
- </div>
40
- Blue Bird
41
- </a>
42
- <nav class="nav-links">
43
- <a href="/">Home</a>
44
- <a href="/about">About</a>
45
- </nav>
46
- </div>
47
- </header>
48
-
49
- <main class="container py-3xl">
50
- <div class="hero">
51
- <div class="hero-glow hero-glow-1"></div>
52
- <div class="hero-glow hero-glow-2"></div>
53
-
54
- <div class="hero-inner">
55
- <span class="badge mb-xl" style="display:inline-flex;"
56
- >Welcome to Blue Bird with Astro</span
57
- >
58
-
59
- <h1 class="gradient-text mt-lg">
60
- Hello, Astro Developer!<br />Welcome to the next level.
61
- </h1>
62
-
63
- <p class="mt-lg" style="max-width:40rem;margin-inline:auto;">
64
- Blue Bird is a fast, structured, and opinionated Express.js framework
65
- for developers who want visual elegance and performance, now powered
66
- by Astro on the frontend.
67
- </p>
68
-
69
- <div class="flex justify-center gap-md mt-2xl flex-wrap">
70
- <a href="/about" class="btn btn-primary">About Us &rarr;</a>
71
- <a
72
- href="https://www.npmjs.com/package/@seip/blue-bird"
73
- target="_blank"
74
- class="btn btn-outline"
75
- >
76
- npm package
77
- </a>
78
- </div>
79
- </div>
80
- </div>
81
-
82
- <section class="grid-3 mt-2xl">
83
- <div class="card">
84
- <h4 class="gradient-text-blue mb-md">Astro SSR</h4>
85
- <p>
86
- Astro (v7.0) renders pages server-side via the Node adapter in
87
- middleware mode, mounted inside Express.
88
- </p>
89
- </div>
90
- <div class="card">
91
- <h4 class="gradient-text-blue mb-md">AES-256-GCM Auth</h4>
92
- <p>
93
- JWT tokens encrypted with military-grade AES-256-GCM and served
94
- through secure signed cookies.
95
- </p>
96
- </div>
97
- <div class="card">
98
- <h4 class="gradient-text-blue mb-md">Docker CLI</h4>
99
- <p>
100
- One-command orchestration for local MySQL, production stacks, and
101
- container lifecycle management.
102
- </p>
103
- </div>
104
- </section>
105
- </main>
106
-
107
- <footer class="site-footer">
108
- <p>Powered by Blue Bird Framework &amp; Astro. All rights reserved.</p>
109
- </footer>
110
- </Layout>