create-context-graph 0.1.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.
package/README.md ADDED
@@ -0,0 +1,35 @@
1
+ # create-context-graph
2
+
3
+ Interactive CLI scaffolding tool that generates domain-specific context graph applications with Neo4j.
4
+
5
+ ```bash
6
+ npx create-context-graph
7
+ ```
8
+
9
+ Pick your industry domain (22 available), pick your agent framework (8 options), and get a complete full-stack app — FastAPI backend, Next.js frontend, Neo4j knowledge graph, and AI agent — in under 5 minutes.
10
+
11
+ > This is an npm wrapper that delegates to the Python CLI. Requires Python 3.11+ with [uv](https://docs.astral.sh/uv/) installed.
12
+
13
+ ## Quick Start
14
+
15
+ ```bash
16
+ # Interactive wizard
17
+ npx create-context-graph
18
+
19
+ # Non-interactive
20
+ npx create-context-graph my-app --domain healthcare --framework pydanticai --demo-data
21
+ ```
22
+
23
+ ## Requirements
24
+
25
+ - **Python 3.11+** with `uv` (recommended) or `pip`
26
+ - **Node.js 18+** (for the generated frontend)
27
+ - **Neo4j 5+** (Docker, Aura, or local)
28
+
29
+ ## Documentation
30
+
31
+ See the full documentation at [github.com/neo4j-labs/create-context-graph](https://github.com/neo4j-labs/create-context-graph).
32
+
33
+ ## License
34
+
35
+ Apache-2.0
@@ -0,0 +1,71 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * create-context-graph — npm wrapper
5
+ *
6
+ * This is a thin shim that delegates to the Python CLI.
7
+ * It tries (in order): uvx, pipx, python3 -m
8
+ */
9
+
10
+ import { execFileSync, execSync } from "child_process";
11
+
12
+ const args = process.argv.slice(2);
13
+
14
+ function tryRun(command, commandArgs) {
15
+ try {
16
+ execFileSync(command, commandArgs, { stdio: "inherit" });
17
+ return true;
18
+ } catch (err) {
19
+ if (err.status !== null) {
20
+ // Command ran but exited with non-zero — propagate exit code
21
+ process.exit(err.status);
22
+ }
23
+ return false; // Command not found
24
+ }
25
+ }
26
+
27
+ function commandExists(cmd) {
28
+ try {
29
+ execSync(`which ${cmd}`, { stdio: "ignore" });
30
+ return true;
31
+ } catch {
32
+ return false;
33
+ }
34
+ }
35
+
36
+ // Try uvx (preferred — uses uv's ephemeral environment)
37
+ if (commandExists("uvx")) {
38
+ if (tryRun("uvx", ["create-context-graph", ...args])) {
39
+ process.exit(0);
40
+ }
41
+ }
42
+
43
+ // Try pipx
44
+ if (commandExists("pipx")) {
45
+ if (tryRun("pipx", ["run", "create-context-graph", ...args])) {
46
+ process.exit(0);
47
+ }
48
+ }
49
+
50
+ // Try python3 -m (package installed globally or in active venv)
51
+ if (commandExists("python3")) {
52
+ if (tryRun("python3", ["-m", "create_context_graph", ...args])) {
53
+ process.exit(0);
54
+ }
55
+ }
56
+
57
+ // Nothing worked
58
+ console.error(`
59
+ create-context-graph requires Python 3.11+
60
+
61
+ Install uv (recommended):
62
+ curl -LsSf https://astral.sh/uv/install.sh | sh
63
+
64
+ Then run:
65
+ uvx create-context-graph
66
+
67
+ Or install directly:
68
+ pip install create-context-graph
69
+ create-context-graph
70
+ `);
71
+ process.exit(1);
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "create-context-graph",
3
+ "version": "0.1.0",
4
+ "description": "Interactive CLI scaffolding tool for domain-specific context graph applications with Neo4j",
5
+ "bin": {
6
+ "create-context-graph": "./bin/create-context-graph"
7
+ },
8
+ "keywords": [
9
+ "neo4j",
10
+ "context-graph",
11
+ "ai-agent",
12
+ "scaffolding",
13
+ "cli",
14
+ "knowledge-graph",
15
+ "pydanticai",
16
+ "langgraph",
17
+ "crewai"
18
+ ],
19
+ "author": "William Lyon",
20
+ "license": "Apache-2.0",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/neo4j-labs/create-context-graph"
24
+ },
25
+ "homepage": "https://github.com/neo4j-labs/create-context-graph",
26
+ "engines": {
27
+ "node": ">=18"
28
+ },
29
+ "files": [
30
+ "bin/create-context-graph",
31
+ "README.md"
32
+ ]
33
+ }