{"id":16642913,"url":"https://github.com/webmaxru/angular-neo4j","last_synced_at":"2025-03-21T15:32:28.398Z","repository":{"id":38814981,"uuid":"131732011","full_name":"webmaxru/angular-neo4j","owner":"webmaxru","description":"Neo4j Bolt driver wrapper for Angular","archived":false,"fork":false,"pushed_at":"2023-01-04T03:22:57.000Z","size":2312,"stargazers_count":18,"open_issues_count":30,"forks_count":6,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-10-22T11:02:11.979Z","etag":null,"topics":["angular","cypher","graph","graph-database","neo4j","neo4j-driver"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/angular-neo4j","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webmaxru.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-01T15:51:01.000Z","updated_at":"2022-10-19T07:06:09.000Z","dependencies_parsed_at":"2023-02-01T18:32:01.868Z","dependency_job_id":null,"html_url":"https://github.com/webmaxru/angular-neo4j","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fangular-neo4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fangular-neo4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fangular-neo4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webmaxru%2Fangular-neo4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webmaxru","download_url":"https://codeload.github.com/webmaxru/angular-neo4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221816553,"owners_count":16885356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angular","cypher","graph","graph-database","neo4j","neo4j-driver"],"created_at":"2024-10-12T08:06:22.672Z","updated_at":"2024-10-28T10:23:08.344Z","avatar_url":"https://github.com/webmaxru.png","language":"JavaScript","readme":"### Neo4j Bolt driver wrapper for Angular\n\nUse Neo4j Bolt driver for JavaScript from your Angular application. A special browser version of the driver supports connecting to Neo4j over WebSockets.\n\n#### Installation\n\nTo install this library, run:\n\n```bash\n$ npm install angular-neo4j --save\n```\n```js\nimport { AngularNeo4jModule } from 'angular-neo4j';\n\n@NgModule({\n  imports: [\n    AngularNeo4jModule\n  ]\n})\nexport class AppModule { }\n```\n\n### Usage\nThe module includes a service and a design-free component using this service: login form and query form. You are welcome to use this component as a foundation for your custom one.\n\nThe fastest way to test everything:\n\n```html\n  \u003cangular-neo4j\u003e\u003c/angular-neo4j\u003e\n```\n\nUse the service in your own component:\n\n```javascript\n  import { AngularNeo4jService } from './angular-neo4j.service';\n  ...\n  constructor(private neo4j: AngularNeo4jService) {}\n```\n- `connect( url: string, username: string, password: string, encrypted?: boolean )` - Connect to your Neo4j instance. Returns a promise with a driver instance.\n```javascript\n\n  const url = 'bolt://localhost:7687';\n  const username = 'neo4j';\n  const password = 'neo4j';\n  const encrypted = true;\n\n  this.neo4j\n      .connect(\n        url,\n        username,\n        password,\n        encrypted\n      )\n      .then(driver =\u003e {\n        if (driver) {\n          console.log(`Successfully connected to ${url}`);\n        }\n      });\n```\n- `run( query: string, params?: object)` - Run the query with parameters. Returns a promise with array of records.\n```javascript\n\n  const query = 'MATCH (n:USER {name: {name}}) RETURN n';\n  const params = { name: 'bob' };\n\n  this.neo4j.run(query, params).then(res =\u003e {\n      console.log(res);\n    });\n```\n- `disconnect()` - Close the active driver.\n```javascript\n  this.neo4j.disconnect()\n```\n\n### Note on security\n\nDo not hardcode your Neo4j username and password in the Angular app - always use login form to authenticate.\n\n## License\n\nMIT © [Maxim Salnikov](mailto:salnikov@gmail.com)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmaxru%2Fangular-neo4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebmaxru%2Fangular-neo4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebmaxru%2Fangular-neo4j/lists"}