@pigeonposse/api-2026 0.0.0-stage → 1.0.1

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 (44) hide show
  1. package/LICENSE +676 -0
  2. package/README.md +120 -2
  3. package/dist/api/openapi.d.ts +656 -0
  4. package/dist/api/openapi.json +1706 -0
  5. package/dist/bin.cjs +14 -0
  6. package/dist/bin.d.cts +1 -0
  7. package/dist/bin.d.mts +1 -0
  8. package/dist/bin.d.ts +1 -0
  9. package/dist/bin.mjs +12 -0
  10. package/dist/env.cjs +21 -0
  11. package/dist/env.d.cts +23 -0
  12. package/dist/env.d.mts +23 -0
  13. package/dist/env.d.ts +23 -0
  14. package/dist/env.mjs +19 -0
  15. package/dist/local.cjs +15 -0
  16. package/dist/local.d.cts +9 -0
  17. package/dist/local.d.mts +7 -0
  18. package/dist/local.d.ts +9 -0
  19. package/dist/local.mjs +6 -0
  20. package/dist/main.cjs +22 -0
  21. package/dist/main.d.cts +13 -0
  22. package/dist/main.d.mts +11 -0
  23. package/dist/main.d.ts +13 -0
  24. package/dist/main.mjs +14 -0
  25. package/dist/schema/banner.json +11 -0
  26. package/dist/schema/code-of-conduct.json +11 -0
  27. package/dist/schema/composer.json +13 -0
  28. package/dist/schema/config.json +192 -0
  29. package/dist/schema/contributting.json +11 -0
  30. package/dist/schema/logo.json +11 -0
  31. package/dist/schema/package.json +13 -0
  32. package/dist/schema/readme.json +4 -0
  33. package/dist/schema/security.json +11 -0
  34. package/dist/schema/support.json +11 -0
  35. package/dist/server.cjs +16 -0
  36. package/dist/server.d.cts +9 -0
  37. package/dist/server.d.mts +9 -0
  38. package/dist/server.d.ts +9 -0
  39. package/dist/server.mjs +9 -0
  40. package/dist/shared/api-2026.C367WW-0.cjs +34 -0
  41. package/dist/shared/api-2026.CDiWYIa6.mjs +25 -0
  42. package/dist/shared/api-2026.CrRWS0qQ.mjs +32 -0
  43. package/dist/shared/api-2026.DKKpCkQB.cjs +40 -0
  44. package/package.json +80 -3
package/README.md CHANGED
@@ -1,3 +1,121 @@
1
- # Temporary Holding Version
1
+ # PIGEONPOSSE API
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ ![HEADER](https://raw.githubusercontent.com/pigeonposse/pigeon-web/main/docs/public/banner.png)
4
+
5
+ Run the PigeonPosse API.
6
+
7
+ Rest API to get data from your GitHub repository.
8
+
9
+ - Required for [@pigeonposse/web-2026](https://www.npmjs.com/package/@pigeonposse/web-2026)
10
+
11
+ ## Prerequisites
12
+
13
+ - GitHub Token [Read more](https://github.com/settings/tokens)
14
+
15
+ ## Installation
16
+
17
+ ```bash
18
+ npm i @pigeonposse/api-2026
19
+ # or
20
+ pnpm i @pigeonposse/api-2026
21
+ ```
22
+
23
+ ## CLI Usage
24
+
25
+ ```bash
26
+ GH_TOKEN="your-github-token" GH_USER="your-github-user" npx @pigeonposse/api-2026
27
+ # or
28
+ GH_TOKEN="your-github-token" GH_USER="your-github-user" pnpx @pigeonposse/api-2026
29
+ ```
30
+
31
+ Or with a installation
32
+
33
+ ```bash
34
+ npm i @pigeonposse/api-2026
35
+ GH_TOKEN="your-github-token" npm exec pigeonposse-api-2026
36
+ # or
37
+ pnpm i @pigeonposse/api-2026
38
+ GH_TOKEN="your-github-token" GH_USER="your-github-user" pnpm exec pigeonposse-api-2026
39
+ ```
40
+
41
+ ## Library Usage
42
+
43
+ ### Standard server
44
+
45
+ ```js
46
+ import { createServer } from '@pigeonposse/api-2026' // OR: import { createServer } from '@pigeonposse/api-2026/server'
47
+ createServer( {
48
+ DEBUG: 'false',
49
+ GH_TOKEN: "your-github-token",
50
+ GH_USER: 'angelespejo',
51
+ GH_BRANCH: 'main',
52
+ GH_USER_TYPE: 'user',
53
+ API_PORT: 1312,
54
+ API_STORE_PATH: 'build/store/pigeonposse.json'
55
+ } )
56
+ ```
57
+
58
+ ```bash
59
+ node standard-server.js
60
+ ## Override OPTION
61
+ DEBUG=true node standard-server.js
62
+ ```
63
+
64
+ ### Local server
65
+
66
+ ```js
67
+ import { createLocalServer } from '@pigeonposse/api-2026' // OR: import { createLocalServer } from '@pigeonposse/api-2026/server'
68
+
69
+ createLocalServer( {
70
+ DEBUG: 'false',
71
+ GH_TOKEN: "your-github-token",
72
+ GH_USER: 'angelespejo',
73
+ GH_BRANCH: 'main',
74
+ GH_USER_TYPE: 'user',
75
+ API_PORT: 1312,
76
+ API_STORE_PATH: 'build/store/pigeonposse.json'
77
+ } )
78
+ ```
79
+
80
+ ```bash
81
+ node local-server.js
82
+ ## Override OPTION
83
+ DEBUG=true node local-server.js
84
+ ```
85
+
86
+ ### Custom server
87
+
88
+ You can use only the app, for build your server wetheaver you want.
89
+
90
+ ### Standard app
91
+
92
+ ```js
93
+ import { appStandard } from '@pigeonposse/api-2026' // OR: import app from '@pigeonposse/api-2026/standard'
94
+
95
+ // Build you server
96
+ ```
97
+
98
+ ### Local app
99
+
100
+ ```js
101
+ import { appLocal } from '@pigeonposse/api-2026' // OR: import app from '@pigeonposse/api-2026/local'
102
+
103
+ // Build you server
104
+ ```
105
+
106
+ ### Change enviroment variables
107
+
108
+ ```js
109
+ import { ENV } from '@pigeonposse/api-2026' // OR: import { ENV } from '@pigeonposse/api-2026/env'
110
+
111
+ ENV.DEBUG = 'true'
112
+ ENV.GH_USER='angelespejo'
113
+ ENV.GH_BRANCH='main'
114
+ ENV.GH_USER_TYPE='user'
115
+
116
+ // Do something
117
+ ```
118
+
119
+ ## Add custom config in your repositories
120
+
121
+ This package use Collectium Github Preset for get Github data. For more information read [Docs](https://collectium.pigeonposse.com/guide/preset/github/)