@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.
- package/LICENSE +676 -0
- package/README.md +120 -2
- package/dist/api/openapi.d.ts +656 -0
- package/dist/api/openapi.json +1706 -0
- package/dist/bin.cjs +14 -0
- package/dist/bin.d.cts +1 -0
- package/dist/bin.d.mts +1 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.mjs +12 -0
- package/dist/env.cjs +21 -0
- package/dist/env.d.cts +23 -0
- package/dist/env.d.mts +23 -0
- package/dist/env.d.ts +23 -0
- package/dist/env.mjs +19 -0
- package/dist/local.cjs +15 -0
- package/dist/local.d.cts +9 -0
- package/dist/local.d.mts +7 -0
- package/dist/local.d.ts +9 -0
- package/dist/local.mjs +6 -0
- package/dist/main.cjs +22 -0
- package/dist/main.d.cts +13 -0
- package/dist/main.d.mts +11 -0
- package/dist/main.d.ts +13 -0
- package/dist/main.mjs +14 -0
- package/dist/schema/banner.json +11 -0
- package/dist/schema/code-of-conduct.json +11 -0
- package/dist/schema/composer.json +13 -0
- package/dist/schema/config.json +192 -0
- package/dist/schema/contributting.json +11 -0
- package/dist/schema/logo.json +11 -0
- package/dist/schema/package.json +13 -0
- package/dist/schema/readme.json +4 -0
- package/dist/schema/security.json +11 -0
- package/dist/schema/support.json +11 -0
- package/dist/server.cjs +16 -0
- package/dist/server.d.cts +9 -0
- package/dist/server.d.mts +9 -0
- package/dist/server.d.ts +9 -0
- package/dist/server.mjs +9 -0
- package/dist/shared/api-2026.C367WW-0.cjs +34 -0
- package/dist/shared/api-2026.CDiWYIa6.mjs +25 -0
- package/dist/shared/api-2026.CrRWS0qQ.mjs +32 -0
- package/dist/shared/api-2026.DKKpCkQB.cjs +40 -0
- package/package.json +80 -3
package/README.md
CHANGED
|
@@ -1,3 +1,121 @@
|
|
|
1
|
-
#
|
|
1
|
+
# PIGEONPOSSE API
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
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/)
|