synapseForge 0.1.24.dev2__tar.gz

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 (35) hide show
  1. synapseforge-0.1.24.dev2/LICENSE +201 -0
  2. synapseforge-0.1.24.dev2/PKG-INFO +187 -0
  3. synapseforge-0.1.24.dev2/README.md +270 -0
  4. synapseforge-0.1.24.dev2/README_PYPI.md +156 -0
  5. synapseforge-0.1.24.dev2/pipeline/__init__.py +1 -0
  6. synapseforge-0.1.24.dev2/pipeline/init/__init__.py +7 -0
  7. synapseforge-0.1.24.dev2/pipeline/init/__main__.py +10 -0
  8. synapseforge-0.1.24.dev2/pipeline/init/config_handler.py +35 -0
  9. synapseforge-0.1.24.dev2/pipeline/init/input_handler.py +124 -0
  10. synapseforge-0.1.24.dev2/pipeline/init/logo_handler.py +33 -0
  11. synapseforge-0.1.24.dev2/pipeline/init/main.py +151 -0
  12. synapseforge-0.1.24.dev2/pipeline/init/placeholder_handler.py +162 -0
  13. synapseforge-0.1.24.dev2/pipeline/init/template_handler.py +89 -0
  14. synapseforge-0.1.24.dev2/pipeline/init/venv_handler.py +68 -0
  15. synapseforge-0.1.24.dev2/pipeline/launch/__init__.py +1 -0
  16. synapseforge-0.1.24.dev2/pipeline/launch/forge.py +701 -0
  17. synapseforge-0.1.24.dev2/pipeline/launch/templates/launcher.py +79 -0
  18. synapseforge-0.1.24.dev2/pipeline/template.zip +0 -0
  19. synapseforge-0.1.24.dev2/pyproject.toml +115 -0
  20. synapseforge-0.1.24.dev2/setup.cfg +4 -0
  21. synapseforge-0.1.24.dev2/synapseForge.egg-info/PKG-INFO +187 -0
  22. synapseforge-0.1.24.dev2/synapseForge.egg-info/SOURCES.txt +39 -0
  23. synapseforge-0.1.24.dev2/synapseForge.egg-info/dependency_links.txt +1 -0
  24. synapseforge-0.1.24.dev2/synapseForge.egg-info/entry_points.txt +2 -0
  25. synapseforge-0.1.24.dev2/synapseForge.egg-info/requires.txt +10 -0
  26. synapseforge-0.1.24.dev2/synapseForge.egg-info/top_level.txt +2 -0
  27. synapseforge-0.1.24.dev2/synapseforge/__init__.py +3 -0
  28. synapseforge-0.1.24.dev2/synapseforge/__main__.py +6 -0
  29. synapseforge-0.1.24.dev2/synapseforge/cli/__init__.py +1 -0
  30. synapseforge-0.1.24.dev2/synapseforge/cli/main.py +390 -0
  31. synapseforge-0.1.24.dev2/synapseforge/tk/__init__.py +1 -0
  32. synapseforge-0.1.24.dev2/synapseforge/tk/colors_app.py +305 -0
  33. synapseforge-0.1.24.dev2/synapseforge/tk/init_app.py +447 -0
  34. synapseforge-0.1.24.dev2/synapseforge/tk/logo.ico +0 -0
  35. synapseforge-0.1.24.dev2/synapseforge/tk/logo.png +0 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright (c) 2026 SYNASPE AI SAS
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,187 @@
1
+ Metadata-Version: 2.4
2
+ Name: synapseForge
3
+ Version: 0.1.24.dev2
4
+ Summary: AI agent project scaffolding & distribution CLI
5
+ Author-email: "synapse.ai" <developer@synapseaihub.com.ar>
6
+ Maintainer-email: "synapse.ai" <developer@synapseaihub.com.ar>
7
+ License: Apache-2.0
8
+ Project-URL: Homepage, https://www.synapseaihub.com.ar
9
+ Project-URL: Repository, https://github.com/synapse-ai-hub/synapseForge
10
+ Project-URL: Issues, https://github.com/synapse-ai-hub/synapseForge/issues
11
+ Keywords: ai-agents,llm,framework,cli,fastapi,react,mcp,tool-calling
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3.12
16
+ Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
18
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
19
+ Requires-Python: >=3.12
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Requires-Dist: Pillow>=10.0.0
23
+ Provides-Extra: dev
24
+ Requires-Dist: ruff>=0.10.0; extra == "dev"
25
+ Requires-Dist: mypy>=1.15.0; extra == "dev"
26
+ Requires-Dist: black>=24.0.0; extra == "dev"
27
+ Requires-Dist: pre-commit>=4.0.0; extra == "dev"
28
+ Provides-Extra: build
29
+ Requires-Dist: pyinstaller>=6.0.0; extra == "build"
30
+ Dynamic: license-file
31
+
32
+ <p align="center">
33
+ <img src="https://github.com/synapse-ai-hub/sources/raw/main/logo_transparente.png" alt="Logo" width="150">
34
+ </p>
35
+
36
+ ---
37
+
38
+ <h1 align="center">
39
+ <img src="https://github.com/synapse-ai-hub/sources/raw/main/forge.png" alt="synapseForge" width="420">
40
+ </h1>
41
+
42
+ ---
43
+
44
+ <p align="center">
45
+ <a href="./LICENSE">
46
+ <img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License: Apache 2.0" />
47
+ </a>
48
+ &nbsp;
49
+ <a href="https://link.mercadopago.com.ar/synapseforge">
50
+ <img src="https://github.com/synapse-ai-hub/sources/raw/main/badges/mercadopago-support.svg" alt="Support this project" />
51
+ </a>
52
+ </p>
53
+
54
+ ---
55
+
56
+ <h3 align="center">CLI to scaffold and ship full-stack AI agent projects (FastAPI + React/Vite/TS)</h3>
57
+
58
+ ---
59
+
60
+ ## Description
61
+
62
+ **synapseForge** is a PyPI package that provides a CLI to scaffold full-stack AI agent projects from scratch — backend (FastAPI), frontend (React/Vite/TypeScript), branding (logo, .ico, color palette), dependencies, and a self-contained distribution build.
63
+
64
+ The generated project includes:
65
+
66
+ - **Agent Framework**: AgentLoop with native tool calling, tools registry (native + external + MCP), sessions (SQLite WAL), per-agent permissions, skills and sub-agent delegation
67
+ - **Multi-provider LLM**: LOCAL (Ollama), Groq, Google Gemini and OpenRouter — cloud API keys managed from the config panel, validated against each provider's API and stored encrypted in SQLite
68
+ - **RAG knowledge base**: ChromaDB vector collections with cloud embeddings via OpenRouter; upload files and web pages, cosine-similarity search
69
+ - **LLM-assisted creation**: standalone interfaces to generate skills, tools and agents through an iterative interview (with real tools enabled), with ephemeral cloud model selection per task
70
+ - **Scheduled tasks**: user-defined tasks (description + time + weekdays) managed from the header Agenda or via Telegram; the backend runs them with the selected model and notifies the result in the UI bell and on Telegram
71
+ - **Telegram bot**: remote control that bridges messages to the agent through the web UI (commands, voice transcription, attachments)
72
+ - **Frontend**: chat with SSE streaming, config panel, sessions sidebar, context-window gauge, metrics dashboard
73
+ - **Docker** support and **desktop app mode** (heartbeat watchdog + shutdown endpoint)
74
+
75
+ ---
76
+
77
+ ## Installation
78
+
79
+ ```bash
80
+ pip install synapseForge
81
+ ```
82
+
83
+ Package dependencies: `Pillow` (.ico generation) — everything else is project-level.
84
+
85
+ ## Requirements
86
+
87
+ | Tool | Version | Needed for |
88
+ |------|---------|------------|
89
+ | Python | 3.12+ | `init`, `launch`, `run`, `colors` |
90
+ | Node.js | 20+ | `launch` (frontend build), `run` (dev server) |
91
+ | Docker | 20+ | Optional: containerized deployment |
92
+
93
+ **LLM provider (required):** at least one cloud API key is needed to use the app — [OpenRouter](https://openrouter.ai/settings/keys), [Google Gemini](https://aistudio.google.com/apikey) or [Groq](https://console.groq.com/keys) all offer free tiers. Keys are loaded from the in-app config panel (**Providers**) on first launch; nothing else has to be installed.
94
+
95
+ > The **knowledge base** feature specifically requires an **OpenRouter** key (free tier works). Without it, that section stays disabled — everything else runs normally.
96
+
97
+ **Ollama (optional):** local models are supported but not required. Install Ollama only if you want to run models locally.
98
+
99
+ ---
100
+
101
+ ## Quick Start
102
+
103
+ ### Create a new project
104
+
105
+ ```bash
106
+ synapseforge init my-project
107
+ cd my-project
108
+ ```
109
+
110
+ Interactive GUI pipeline (project data, logos, colors).
111
+
112
+ ### Run in development
113
+
114
+ ```bash
115
+ synapseforge run ./my-project
116
+ ```
117
+
118
+ Requires the project venv to be activated (`VIRTUAL_ENV`). Starts backend + frontend dev servers and opens the browser. Ctrl+C stops both.
119
+
120
+ ### Build a distributable
121
+
122
+ ```bash
123
+ synapseforge launch -p ./my-project -n "MyApp"
124
+ ```
125
+
126
+ Builds the frontend, bundles embedded Python and packages everything into a self-contained zip ready to deliver. By default the backend ships as `.py` sources; pass `-c` / `--compile` to compile it to `.pyc`. Other options: `--skip-frontend`, `--no-embed`.
127
+
128
+ ### Edit colors at runtime (no rebuild)
129
+
130
+ ```bash
131
+ synapseforge colors ./my-project
132
+ ```
133
+
134
+ GUI editor for `frontend/public/colors.json`. Refresh the browser (F5) to see changes instantly.
135
+
136
+ ---
137
+
138
+ ## CLI Reference
139
+
140
+ | Command | Description |
141
+ |---------|-------------|
142
+ | `synapseforge init [dir]` | Scaffold a project from bundled template (GUI) |
143
+ | `synapseforge launch -p <path> -n <exe> [--skip-frontend] [--no-embed] [-c]` | Build self-contained distribution zip (`-c` compiles backend to `.pyc`, default ships `.py`) |
144
+ | `synapseforge colors [dir]` | Edit `frontend/public/colors.json` via GUI (live reload) |
145
+ | `synapseforge run [dir]` | Start uvicorn + npm dev servers, open browser (venv must be active) |
146
+ | `synapseforge --help` | Show global help |
147
+
148
+ ---
149
+
150
+ ## Tech Stack
151
+
152
+ [![Python](https://github.com/synapse-ai-hub/sources/raw/main/badges/python.svg)](https://www.python.org/)
153
+ [![FastAPI](https://github.com/synapse-ai-hub/sources/raw/main/badges/fastapi.svg)](https://fastapi.tiangolo.com/)
154
+ [![SQLite](https://github.com/synapse-ai-hub/sources/raw/main/badges/sqlite.svg)](https://www.sqlite.org/)
155
+ [![ChromaDB](https://github.com/synapse-ai-hub/sources/raw/main/badges/chromadb.svg)](https://www.trychroma.com/)
156
+ [![React](https://github.com/synapse-ai-hub/sources/raw/main/badges/react.svg)](https://react.dev/)
157
+ [![TypeScript](https://github.com/synapse-ai-hub/sources/raw/main/badges/typescript.svg)](https://www.typescriptlang.org/)
158
+ [![Vite](https://github.com/synapse-ai-hub/sources/raw/main/badges/vite.svg)](https://vite.dev/)
159
+ [![Tailwind](https://github.com/synapse-ai-hub/sources/raw/main/badges/tailwind.svg)](https://tailwindcss.com/)
160
+ [![shadcn/ui](https://img.shields.io/badge/shadcn%2Fui-UI-555?labelColor=d0d4dc&logo=shadcnui&logoColor=111)](https://ui.shadcn.com/)
161
+ [![Node.js](https://github.com/synapse-ai-hub/sources/raw/main/badges/nodejs.svg)](https://nodejs.org/)
162
+ [![PyInstaller](https://github.com/synapse-ai-hub/sources/raw/main/badges/pyinstaller.svg)](https://pyinstaller.org/)
163
+ [![Docker](https://github.com/synapse-ai-hub/sources/raw/main/badges/docker.svg)](https://www.docker.com/)
164
+ [![Telegram](https://github.com/synapse-ai-hub/sources/raw/main/badges/telegram.svg)](https://telegram.org/)
165
+ [![PyPI](https://github.com/synapse-ai-hub/sources/raw/main/badges/pypi.svg)](https://pypi.org/)
166
+ [![Groq](https://github.com/synapse-ai-hub/sources/raw/main/badges/groq.svg)](https://groq.com/)
167
+ [![Google Gemini](https://github.com/synapse-ai-hub/sources/raw/main/badges/gemini.svg)](https://ai.google.dev/)
168
+ [![OpenRouter](https://github.com/synapse-ai-hub/sources/raw/main/badges/openrouter.svg)](https://openrouter.ai/)
169
+ [![Ollama](https://img.shields.io/badge/Ollama-Local-555?labelColor=d0d4dc&logo=ollama&logoColor=111)](https://ollama.com/)
170
+
171
+ ---
172
+
173
+ ## Support this project
174
+
175
+ synapseForge will always be free and open source. If you find it useful, consider supporting its development with a [donation via Mercado Pago](https://link.mercadopago.com.ar/synapseforge) — your donation goes directly into new features, fixes and better docs for everyone.
176
+
177
+ ---
178
+
179
+ ## License
180
+
181
+ Apache 2.0
182
+
183
+ ---
184
+
185
+ Copyright (c) 2026 SYNASPE AI SAS
186
+
187
+ ---
@@ -0,0 +1,270 @@
1
+ <p align="center">
2
+ <img src="https://github.com/synapse-ai-hub/sources/raw/main/logo_transparente.png" alt="Logo" width="150">
3
+ </p>
4
+
5
+ ---
6
+
7
+ <h1 align="center">
8
+ <img src="https://github.com/synapse-ai-hub/sources/raw/main/forge.png" alt="synapseForge" width="420">
9
+ </h1>
10
+
11
+ ---
12
+
13
+ <p align="center">
14
+ <a href="./LICENSE">
15
+ <img src="https://img.shields.io/badge/license-Apache%202.0-blue.svg" alt="License: Apache 2.0" />
16
+ </a>
17
+ &nbsp;
18
+ <a href="https://link.mercadopago.com.ar/synapseforge">
19
+ <img src="https://github.com/synapse-ai-hub/sources/raw/main/badges/mercadopago-support.svg" alt="Support this project" />
20
+ </a>
21
+ </p>
22
+
23
+ ---
24
+
25
+ <h3 align="center">Forge agents. Ship intelligence.</h3>
26
+
27
+ ---
28
+
29
+ <p align="center">
30
+ An open-source forge for creating, equipping, running and shipping autonomous AI agents.
31
+
32
+ ---
33
+
34
+ <p align="center">
35
+ <sub>CLI · Agent Factory · Distribution</sub>
36
+ </p>
37
+ </p>
38
+
39
+ ---
40
+
41
+ ```
42
+ FORGE EQUIP RUN SHIP
43
+ ───── ───── ─── ────
44
+ Agents Permissions AgentLoop Portable zip
45
+ Skills Providers Tool calling Embedded Python
46
+ Tools Models RAG search Native launcher
47
+ Knowledge Memory Ready to ship
48
+ Streaming SSE
49
+ ```
50
+
51
+ ---
52
+
53
+ ## What is synapseForge?
54
+
55
+ Most AI agent tools give you pieces and rules. synapseForge gives you the forge.
56
+
57
+ You don't assemble an agent. You forge a system.
58
+
59
+ synapseForge is designed around a simple idea: agents should be built as systems, not assembled from prompts.
60
+
61
+ Define your agents, equip them with skills and tools, connect them to your data sources, and ship a self-contained application — from `pip install` to a distributable zip.
62
+
63
+ ### A forge that can extend itself
64
+
65
+ Create agents, skills and tools through an LLM-assisted workflow. synapseForge doesn't just run agents — it can create the capabilities they need.
66
+
67
+ ---
68
+
69
+ ## How it works
70
+
71
+ ### You build
72
+
73
+ - **Agents** — define roles, permissions and behavior in `.md` files
74
+ - **Skills** — structured knowledge packages with references and frontmatter
75
+ - **Tools** — native (filesystem, web, shell, email) or external `.py` files
76
+ - **RAG collections** — upload files and web pages, indexed with vector embeddings
77
+
78
+ ### The Forge
79
+
80
+ The Forge turns those definitions into autonomous systems.
81
+
82
+ - **Permission engine** — deny-by-default, per-agent, with wildcards and groups
83
+ - **Agent loop** — iterative reasoning → tool calling → execution → continuation, with streaming SSE
84
+ - **Memory** — persistent conversation indexing and cross-session retrieval
85
+ - **Multi-provider LLM** — Ollama (local), Groq, Google Gemini, OpenRouter
86
+ - **MCP integration** — connect external tool servers via the Model Context Protocol
87
+ - **Scheduler** — run prompts on a schedule, notify via UI and Telegram
88
+
89
+ ### You ship
90
+
91
+ ```bash
92
+ synapseforge init my-project # scaffold with GUI
93
+ synapseforge run . # develop locally
94
+ synapseforge launch -n my-app # build portable zip
95
+ ```
96
+
97
+ The result is a self-contained application distribution: embedded Python, compiled backend, built frontend, native launcher. Hand it to anyone.
98
+
99
+ ---
100
+
101
+ ## Quick start
102
+
103
+ > Currently available on [TestPyPI](https://test.pypi.org/project/synapseforge/).
104
+
105
+ ```bash
106
+ pip install synapseForge
107
+
108
+ # Create a project (interactive GUI)
109
+ synapseforge init my-project
110
+ cd my-project
111
+
112
+ # Start in development mode
113
+ synapseforge run .
114
+ ```
115
+
116
+ On first launch, configure an API key from any supported cloud provider ([OpenRouter](https://openrouter.ai/settings/keys), [Google Gemini](https://aistudio.google.com/apikey) or [Groq](https://console.groq.com/keys) — all with free tiers) and press **Apply**. Ollama is optional. The knowledge base requires an OpenRouter key.
117
+
118
+ ---
119
+
120
+ ## CLI
121
+
122
+ | Command | What it does |
123
+ |---------|-------------|
124
+ | `synapseforge init [dir]` | Create a project with interactive GUI |
125
+ | `synapseforge launch -p <path> -n <name>` | Build a portable distribution zip |
126
+ | `synapseforge colors [dir]` | Edit project colors live |
127
+ | `synapseforge run [dir]` | Start development servers |
128
+
129
+ ```mermaid
130
+ flowchart LR
131
+ A["pip install synapseForge"] --> B["synapseforge init"]
132
+ B --> C["GUI: name, logo, colors"]
133
+ C --> D["Template + venv + deps"]
134
+ D --> E["Project ready"]
135
+ E --> F["synapseforge run"]
136
+ E --> G["synapseforge launch"]
137
+ G --> H["Portable zip"]
138
+ ```
139
+
140
+ ---
141
+
142
+ ## Architecture
143
+
144
+ ### Backend
145
+
146
+ FastAPI application with REST/SSE routers. The agent framework lives in `backend/agent/`: AgentLoop with native tool calling, tools registry (native + external + MCP), SQLite sessions, per-agent permissions, skills, RAG (ChromaDB) and long-term memory.
147
+
148
+ **Native tools**: `read`, `write`, `edit`, `glob`, `grep`, `webfetch`, `websearch`, `shell`, `task` (sub-agent delegation), `skill`, `reference`, `rag`, `search_memory`, `check_email`, `send_email`, `help`.
149
+
150
+ ### Frontend
151
+
152
+ React/Vite/TypeScript SPA with Tailwind v4 and shadcn/ui. Multi-page: chat, skill creation, RAG management, docs. SSE streaming, tool call visualization, context window gauge, scheduled tasks, metrics dashboard, Telegram toggle.
153
+
154
+ ### Providers
155
+
156
+ | Provider | Type | Notes |
157
+ |----------|------|-------|
158
+ | Ollama | Local | Optional, requires local install |
159
+ | Groq | Cloud | Free tier |
160
+ | Google Gemini | Cloud | Free tier |
161
+ | OpenRouter | Cloud | Free tier, required for RAG embeddings |
162
+
163
+ API keys are validated on save and stored encrypted (Fernet) in SQLite. No environment variables needed.
164
+
165
+ ### Knowledge base (RAG)
166
+
167
+ ChromaDB with OpenRouter-hosted embeddings (`liquid/lfm-2.5-embedding-350m:free`). Upload files and web pages — content is extracted, chunked and indexed for semantic retrieval. Long-term memory: every conversation turn is automatically indexed and searchable across sessions via `search_memory`.
168
+
169
+ ### Telegram
170
+
171
+ Remote control for the agent. Send messages, switch models, create skills/tools, manage scheduled tasks — all through Telegram. The bot bridges to the same chat flow the frontend uses.
172
+
173
+ ### Scheduled tasks
174
+
175
+ Define tasks (prompt + time + days) from the UI or Telegram. The backend executes them with the selected model and notifies via the UI and Telegram.
176
+
177
+ ---
178
+
179
+ ## Project structure
180
+
181
+ ```plaintext
182
+ synapseForge/
183
+ ├─ synapseforge/ # CLI + tkinter GUIs
184
+ ├─ pipeline/ # Init (template) + Launch (forge)
185
+ ├─ backend/ # FastAPI + Agent Framework
186
+ │ ├─ agent/ # AgentLoop, Tools, Sessions, Permissions
187
+ │ ├─ routes/ # API endpoints
188
+ │ └─ telegram/ # Telegram bot
189
+ ├─ frontend/ # React/Vite/TypeScript SPA
190
+ ├─ template/ # Project template (used by init)
191
+ ├─ tests/ # E2E declarative suite (YAML)
192
+ └─ pyproject.toml # Package config
193
+ ```
194
+
195
+ ---
196
+
197
+ ## User configuration
198
+
199
+ ```plaintext
200
+ ~/.config/synapseForge/
201
+ ├─ skills/ # Installed skills
202
+ ├─ tools/ # Custom tools (.py)
203
+ ├─ agents/ # Agent definitions (.md)
204
+ ├─ knowledge/ # RAG collections (ChromaDB)
205
+ ├─ mcp.json # MCP servers
206
+ └─ config.yaml # Router permissions (optional)
207
+ ```
208
+
209
+ ---
210
+
211
+ ## Testing
212
+
213
+ Declarative E2E suite in `tests/e2e/`. YAML scenarios drive the real backend — chat via SSE, direct API calls — asserting on contracts and structure.
214
+
215
+ ```bash
216
+ python -m tests.e2e.runner # all scenarios
217
+ python -m tests.e2e.runner --only rag # filter by name
218
+ ```
219
+
220
+ ---
221
+
222
+ ## Docker
223
+
224
+ ```bash
225
+ docker compose up --build -d
226
+ # App at http://localhost:8000
227
+ ```
228
+
229
+ ---
230
+
231
+ ## Tech Stack
232
+
233
+ [![Python](https://github.com/synapse-ai-hub/sources/raw/main/badges/python.svg)](https://www.python.org/)
234
+ [![FastAPI](https://github.com/synapse-ai-hub/sources/raw/main/badges/fastapi.svg)](https://fastapi.tiangolo.com/)
235
+ [![SQLite](https://github.com/synapse-ai-hub/sources/raw/main/badges/sqlite.svg)](https://www.sqlite.org/)
236
+ [![ChromaDB](https://github.com/synapse-ai-hub/sources/raw/main/badges/chromadb.svg)](https://www.trychroma.com/)
237
+ [![React](https://github.com/synapse-ai-hub/sources/raw/main/badges/react.svg)](https://react.dev/)
238
+ [![TypeScript](https://github.com/synapse-ai-hub/sources/raw/main/badges/typescript.svg)](https://www.typescriptlang.org/)
239
+ [![Vite](https://github.com/synapse-ai-hub/sources/raw/main/badges/vite.svg)](https://vite.dev/)
240
+ [![Tailwind](https://github.com/synapse-ai-hub/sources/raw/main/badges/tailwind.svg)](https://tailwindcss.com/)
241
+ [![shadcn/ui](https://img.shields.io/badge/shadcn%2Fui-UI-555?labelColor=d0d4dc&logo=shadcnui&logoColor=111)](https://ui.shadcn.com/)
242
+ [![Node.js](https://github.com/synapse-ai-hub/sources/raw/main/badges/nodejs.svg)](https://nodejs.org/)
243
+ [![PyInstaller](https://github.com/synapse-ai-hub/sources/raw/main/badges/pyinstaller.svg)](https://pyinstaller.org/)
244
+ [![Docker](https://github.com/synapse-ai-hub/sources/raw/main/badges/docker.svg)](https://www.docker.com/)
245
+ [![Telegram](https://github.com/synapse-ai-hub/sources/raw/main/badges/telegram.svg)](https://telegram.org/)
246
+ [![PyPI](https://github.com/synapse-ai-hub/sources/raw/main/badges/pypi.svg)](https://pypi.org/)
247
+ [![Groq](https://github.com/synapse-ai-hub/sources/raw/main/badges/groq.svg)](https://groq.com/)
248
+ [![Google Gemini](https://github.com/synapse-ai-hub/sources/raw/main/badges/gemini.svg)](https://ai.google.dev/)
249
+ [![OpenRouter](https://github.com/synapse-ai-hub/sources/raw/main/badges/openrouter.svg)](https://openrouter.ai/)
250
+ [![Ollama](https://img.shields.io/badge/Ollama-Local-555?labelColor=d0d4dc&logo=ollama&logoColor=111)](https://ollama.com/)
251
+
252
+ ---
253
+
254
+ ## Support this project
255
+
256
+ synapseForge is free and open source. If you find it useful, consider supporting its development with a [donation via Mercado Pago](https://link.mercadopago.com.ar/synapseforge).
257
+
258
+ ---
259
+
260
+ ## License
261
+
262
+ This project is licensed under the terms specified in the [LICENSE](./LICENSE) file.
263
+
264
+ ---
265
+
266
+ Copyright (c) 2026 SYNAPSE AI SAS
267
+
268
+ ---
269
+
270
+ *The forge is heating up...*