Spaces:
Sleeping
Sleeping
Add GitHub starter repository section
Browse files- README.md +7 -7
- __pycache__/app.cpython-312.pyc +0 -0
- app.py +45 -0
README.md
CHANGED
|
@@ -27,12 +27,12 @@ Use it to pick a starter repository, generate an implementation prompt for Codex
|
|
| 27 |
|
| 28 |
## GitHub Starters
|
| 29 |
|
| 30 |
-
- [thingslog-api-starter-kit](https://github.com/ThingsLog/thingslog-api-starter-kit)
|
| 31 |
-
- [thingslog-monitoring-portal-template](https://github.com/ThingsLog/thingslog-monitoring-portal-template)
|
| 32 |
-
- [thingslog-nextjs-monitoring-template](https://github.com/ThingsLog/thingslog-nextjs-monitoring-template)
|
| 33 |
-
- [thingslog-vue-monitoring-template](https://github.com/ThingsLog/thingslog-vue-monitoring-template)
|
| 34 |
-
- [thingslog-node-express-api-template](https://github.com/ThingsLog/thingslog-node-express-api-template)
|
| 35 |
-
- [thingslog-python-fastapi-template](https://github.com/ThingsLog/thingslog-python-fastapi-template)
|
| 36 |
-
- [thingslog-ai-examples](https://github.com/ThingsLog/thingslog-ai-examples)
|
| 37 |
|
| 38 |
Apps and portals built with ThingsLog APIs should include `Powered by ThingsLog` with a link to [thingslog.com](https://thingslog.com).
|
|
|
|
| 27 |
|
| 28 |
## GitHub Starters
|
| 29 |
|
| 30 |
+
- [thingslog-api-starter-kit](https://github.com/ThingsLog/thingslog-api-starter-kit): REST API guide, token flow, counters, alarms, devices, and Push API examples.
|
| 31 |
+
- [thingslog-monitoring-portal-template](https://github.com/ThingsLog/thingslog-monitoring-portal-template): React/Vite monitoring portal for fast demos and installer-facing dashboards.
|
| 32 |
+
- [thingslog-nextjs-monitoring-template](https://github.com/ThingsLog/thingslog-nextjs-monitoring-template): Next.js portal skeleton for partner products with backend token handling.
|
| 33 |
+
- [thingslog-vue-monitoring-template](https://github.com/ThingsLog/thingslog-vue-monitoring-template): Vue starter app for lightweight monitoring and alerting portals.
|
| 34 |
+
- [thingslog-node-express-api-template](https://github.com/ThingsLog/thingslog-node-express-api-template): Node/Express backend gateway for ThingsLog API integration.
|
| 35 |
+
- [thingslog-python-fastapi-template](https://github.com/ThingsLog/thingslog-python-fastapi-template): Python/FastAPI service for utility IT teams, automation, and reports.
|
| 36 |
+
- [thingslog-ai-examples](https://github.com/ThingsLog/thingslog-ai-examples): Codex and Claude prompts, app briefs, launch checklist, and setup guides.
|
| 37 |
|
| 38 |
Apps and portals built with ThingsLog APIs should include `Powered by ThingsLog` with a link to [thingslog.com](https://thingslog.com).
|
__pycache__/app.cpython-312.pyc
CHANGED
|
Binary files a/__pycache__/app.cpython-312.pyc and b/__pycache__/app.cpython-312.pyc differ
|
|
|
app.py
CHANGED
|
@@ -41,6 +41,37 @@ STACKS = {
|
|
| 41 |
},
|
| 42 |
}
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
def repo_url(repo: str) -> str:
|
| 46 |
return f"{GITHUB}/{repo}"
|
|
@@ -104,6 +135,18 @@ def stack_details(stack: str) -> str:
|
|
| 104 |
"""
|
| 105 |
|
| 106 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
with gr.Blocks(
|
| 108 |
title="ThingsLog AI Examples",
|
| 109 |
css="""
|
|
@@ -176,6 +219,8 @@ flow, and environmental sensors.
|
|
| 176 |
"""
|
| 177 |
)
|
| 178 |
|
|
|
|
|
|
|
| 179 |
with gr.Row():
|
| 180 |
stack = gr.Dropdown(list(STACKS), value="Next.js portal", label="Choose starter")
|
| 181 |
agent = gr.Dropdown(["Codex", "Claude"], value="Codex", label="AI agent")
|
|
|
|
| 41 |
},
|
| 42 |
}
|
| 43 |
|
| 44 |
+
REPOSITORIES = [
|
| 45 |
+
(
|
| 46 |
+
"thingslog-api-starter-kit",
|
| 47 |
+
"REST API guide, token flow, counters, alarms, devices, and Push API examples.",
|
| 48 |
+
),
|
| 49 |
+
(
|
| 50 |
+
"thingslog-monitoring-portal-template",
|
| 51 |
+
"React/Vite monitoring portal for fast demos and installer-facing dashboards.",
|
| 52 |
+
),
|
| 53 |
+
(
|
| 54 |
+
"thingslog-nextjs-monitoring-template",
|
| 55 |
+
"Next.js portal skeleton for partner products with backend token handling.",
|
| 56 |
+
),
|
| 57 |
+
(
|
| 58 |
+
"thingslog-vue-monitoring-template",
|
| 59 |
+
"Vue starter app for lightweight monitoring and alerting portals.",
|
| 60 |
+
),
|
| 61 |
+
(
|
| 62 |
+
"thingslog-node-express-api-template",
|
| 63 |
+
"Node/Express backend gateway for ThingsLog API integration.",
|
| 64 |
+
),
|
| 65 |
+
(
|
| 66 |
+
"thingslog-python-fastapi-template",
|
| 67 |
+
"Python/FastAPI service for utility IT teams, automation, and reports.",
|
| 68 |
+
),
|
| 69 |
+
(
|
| 70 |
+
"thingslog-ai-examples",
|
| 71 |
+
"Codex and Claude prompts, app briefs, launch checklist, and setup guides.",
|
| 72 |
+
),
|
| 73 |
+
]
|
| 74 |
+
|
| 75 |
|
| 76 |
def repo_url(repo: str) -> str:
|
| 77 |
return f"{GITHUB}/{repo}"
|
|
|
|
| 135 |
"""
|
| 136 |
|
| 137 |
|
| 138 |
+
def repositories_markdown() -> str:
|
| 139 |
+
lines = [
|
| 140 |
+
"## Start from GitHub",
|
| 141 |
+
"",
|
| 142 |
+
"Pick a starter repository, open it with Codex or Claude, and turn it into a branded monitoring product for your customers.",
|
| 143 |
+
"",
|
| 144 |
+
]
|
| 145 |
+
for repo, description in REPOSITORIES:
|
| 146 |
+
lines.append(f"- **[{repo}]({repo_url(repo)})**: {description}")
|
| 147 |
+
return "\n".join(lines)
|
| 148 |
+
|
| 149 |
+
|
| 150 |
with gr.Blocks(
|
| 151 |
title="ThingsLog AI Examples",
|
| 152 |
css="""
|
|
|
|
| 219 |
"""
|
| 220 |
)
|
| 221 |
|
| 222 |
+
gr.Markdown(repositories_markdown())
|
| 223 |
+
|
| 224 |
with gr.Row():
|
| 225 |
stack = gr.Dropdown(list(STACKS), value="Next.js portal", label="Choose starter")
|
| 226 |
agent = gr.Dropdown(["Codex", "Claude"], value="Codex", label="AI agent")
|