{"id":14968594,"url":"https://github.com/signalpoint/jdrupal","last_synced_at":"2025-12-12T03:18:04.709Z","repository":{"id":12857040,"uuid":"15533067","full_name":"signalpoint/jDrupal","owner":"signalpoint","description":"A JavaScript Library and API for Drupal Applications","archived":false,"fork":false,"pushed_at":"2022-06-07T14:25:56.000Z","size":1202,"stargazers_count":76,"open_issues_count":27,"forks_count":38,"subscribers_count":8,"default_branch":"8.x-1.x","last_synced_at":"2024-10-10T13:43:50.641Z","etag":null,"topics":["drupal","javascript","mobile-app","web-app"],"latest_commit_sha":null,"homepage":"http://jdrupal.tylerfrankenstein.com/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"openresty/openresty.org","license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/signalpoint.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-30T17:51:52.000Z","updated_at":"2023-09-07T19:32:37.000Z","dependencies_parsed_at":"2022-08-31T00:20:13.003Z","dependency_job_id":null,"html_url":"https://github.com/signalpoint/jDrupal","commit_stats":null,"previous_names":["easystreet3/jdrupal"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalpoint%2FjDrupal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalpoint%2FjDrupal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalpoint%2FjDrupal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/signalpoint%2FjDrupal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/signalpoint","download_url":"https://codeload.github.com/signalpoint/jDrupal/tar.gz/refs/heads/8.x-1.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219864035,"owners_count":16555943,"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":["drupal","javascript","mobile-app","web-app"],"created_at":"2024-09-24T13:40:16.117Z","updated_at":"2025-10-26T04:30:58.334Z","avatar_url":"https://github.com/signalpoint.png","language":"JavaScript","readme":"## What is jDrupal?\n\n\u003e A simple Vanilla JavaScript Library and API.\n\n## What is jDrupal used for?\n\n\u003e Drupal 8 Application Development.\n\n## What kind of apps?\n\n\u003e A variety of application architectures, including...\n\n- Mobile Applications (Android, iOS, etc)\n- Web Applications\n- Headless Drupal / Decoupled Drupal\n- [PhoneGap](http://phonegap.com/) ([Cordova](https://cordova.apache.org/))\n\n## jDrupal...\n\n- solves many common development needs for Drupal based applications.\n- provides a familiar Drupal coding experience and syntax for developers.\n- runs alongside any frontend client side framework, or with no framework at all.\n- utilizes JavaScript prototypes and promises.\n\nSince jDrupal has no dependencies and is written in pure JavaScript, it can be used in a wide variety of architectures and frameworks. Just include it in the `\u003chead\u003e` of your app's `index.html` file:\n\n```\n\u003chtml\u003e\n  \u003chead\u003e\n    \u003c!-- ... --\u003e\n    \u003cscript src=\"jdrupal.min.js\"\u003e\u003c/script\u003e\n    \u003c!-- ... --\u003e\n  \u003c/head\u003e\n  \u003cbody\u003e\u003c!-- ... --\u003e\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Quick Examples\n\n```\n// Connect to Drupal and say hello to the current user.\njDrupal.connect().then(function() {\n  var user = jDrupal.currentUser();\n  var msg = user.isAuthenticated() ?\n    'Hello ' + user.getAccountName() : 'Hello World';\n  alert(msg);\n});\n```\n\n```\n// Load a node and display the title.\njDrupal.nodeLoad(123).then(function(node) {\n  alert(node.getTitle());\n});\n```\n\n```\n// Login and show the user their id.\njDrupal.userLogin('bob', 'secret').then(function() {\n  alert(jDrupal.currentUser().id());\n});\n```\n\n```\n// Get results from a view and print the node ids to the console.\njDrupal.viewsLoad('my-view-url').then(function(view) {\n  var results = view.getResults();\n  for (var i = 0; i \u003c results.length; i ++) {\n    var node = new jDrupal.Node(results[i]);\n    console.log('node id: ' + node.id());\n  }\n});\n```\n\n## Getting Started\n\n- [Hello World](http://jdrupal.tylerfrankenstein.com/8/docs/Hello_World)\n\n\u003e jDrupal is best friends with [DrupalGap](http://drupalgap.org), the open source application development kit for Drupal websites.\n\n## Cordova + iOS\n\nIf you're developing an iOS app using cordova, follow [these additional instructions](https://github.com/signalpoint/jDrupal/issues/87#issuecomment-775488402).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignalpoint%2Fjdrupal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsignalpoint%2Fjdrupal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsignalpoint%2Fjdrupal/lists"}