{"id":15233435,"url":"https://github.com/sendanor/nor-app","last_synced_at":"2026-01-28T15:31:44.552Z","repository":{"id":141493867,"uuid":"64555133","full_name":"sendanor/nor-app","owner":"sendanor","description":"Sendanor Hypermedia App Server","archived":false,"fork":false,"pushed_at":"2018-03-24T13:30:26.000Z","size":210,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-14T22:13:00.943Z","etag":null,"topics":["backend","database","hypermedia","nopg-database","postgresql-database","restful","server"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sendanor.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-30T17:07:40.000Z","updated_at":"2020-08-28T08:22:05.000Z","dependencies_parsed_at":"2023-05-22T23:45:40.543Z","dependency_job_id":null,"html_url":"https://github.com/sendanor/nor-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sendanor/nor-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendanor%2Fnor-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendanor%2Fnor-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendanor%2Fnor-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendanor%2Fnor-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sendanor","download_url":"https://codeload.github.com/sendanor/nor-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sendanor%2Fnor-app/sbom","scorecard":{"id":810988,"data":{"date":"2025-08-11","repo":{"name":"github.com/sendanor/nor-app","commit":"157ccab1260b5a0827f7763b75be2fca7ee8ad27"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}}]},"last_synced_at":"2025-08-23T13:10:30.534Z","repository_id":141493867,"created_at":"2025-08-23T13:10:30.534Z","updated_at":"2025-08-23T13:10:30.534Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["backend","database","hypermedia","nopg-database","postgresql-database","restful","server"],"created_at":"2024-09-29T05:08:54.697Z","updated_at":"2026-01-28T15:31:44.537Z","avatar_url":"https://github.com/sendanor.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![view on npm](http://img.shields.io/npm/v/nor-app.svg)](https://www.npmjs.org/package/nor-app)\n[![npm module downloads](http://img.shields.io/npm/dt/nor-app.svg)](https://www.npmjs.org/package/nor-app)\n[![Dependency Status](https://david-dm.org/sendanor/nor-app.svg)](https://david-dm.org/sendanor/nor-app)\n\u003c!---\n[![Build Status](https://travis-ci.org/sendanor/nor-app.svg?branch=master)](https://travis-ci.org/sendanor/nor-app)\n[![Coverage Status](https://coveralls.io/repos/github/sendanor/nor-app/badge.svg?branch=master)](https://coveralls.io/github/sendanor/nor-app?branch=master)\n--\u003e\n\nnor-app -- Hypermedia App Server\n================================\n\n`nor-app` provides a HTTP interface in to a [nor-nopg \ndatabase](https://github.com/sendanor/nor-nopg) -- which provides noSQL features in a \nPostgreSQL database server.\n\n### Features\n\n* Web based UI to maintain document types with [JSON Schema](http://json-schema.org/)\n* Web interface to create, search, edit and delete documents\n* Maintains a hypermedia JSON REST API for the data\n\n### See also\n\n* [nopg](https://github.com/sendanor/nor-nopg-cli) -- Shell scripting CLI for nor-nopg\n\n### Requirements\n\n* Ubuntu Linux LTS 14.04 (other Linux systems probably work, too)\n* [Node.js v4.4.](http://nodejs.org)\n* [PostgreSQL 9.3 Server](https://www.postgresql.org/), with extensions:\n  * `pvl8`\n  * `uuid-ossp`\n  * `tcn`\n  * `moddatetime`\n* See other dependencies from [the NPM registry](https://www.npmjs.com/package/nor-app)\n\n### Development\n\n* Trello board: https://trello.com/b/MHiSILez\n\n### Install\n\n#### Installing globally\n\nInstall `nor-nopg`: \n\n```\nnpm install -g nor-nopg\n```\n\nInstall `nor-app`: \n\n```\nnpm install -g nor-app\n```\n\n#### Creating a database\n\nCreate a PostgreSQL database with these extensions:\n\n```\nCREATE EXTENSION plv8;\nCREATE EXTENSION \"uuid-ossp\";\nCREATE EXTENSION tcn;\nCREATE EXTENSION moddatetime;\n```\n\nSet your database configurations into a `PGCONFIG` environment variable: \n\n```\nexport PGCONFIG='postgres://app:password@localhost/app'\n```\n\n#### Setting name and port\n\nName your application (default name is `nor-app`): \n\n```\nexport APPNAME='myapp'\n```\n\nYou can also change your application port (default port is `3000`):\n\n```\nexport PORT='8080'\n```\n\n#### Initializing NoPG\n\n```\nnor-nopg init\n```\n\n#### Start the server\n\n```\nnor-app start\n```\n\nCheck the logs at `~/.nor-app/logs/myapp/`. \n\nIf there's any problems, just [create an issue](https://github.com/sendanor/nor-app/issues).\n\n#### Create admin user\n\n```\nnor-app-useradd --email='demo@example.com'\n```\n\nWrite down the password, you need it to login :)\n\n#### Installing as a dependency\n\nYou may want to use `nor-app` as a dependency instead of a global command.\n\nCreate a directory for your project and initialize NPM there:\n\n```\nmkdir myapp\ncd myapp\nnpm init\nnpm install --save nor-nopg\nnpm install --save nor-app\n```\n\n...then edit `scripts` section in your `./package.json` to look like this:\n\n```json\n{\n  \"scripts\": {\n    \"test\": \"echo \\\"Error: no test specified\\\" \u0026\u0026 exit 1\",\n    \"init\": \"nor-nopg init\",\n    \"start\": \"nor-app start\",\n    \"stop\": \"nor-app stop\"\n  }\n}\n```\n\nAfter that, you can initialize the NoPg database with a command \n`npm run init` instead of `nor-nopg init` and start the server simply \nwith a command `npm start` and stop it `npm stop`.\n\n### After installation\n\nOpen your browser at http://localhost:3000 and login\n\n... and design your database in the browser...\n\n... and access REST interface from: http://localhost:3000/api/\n\n### Troubleshooting\n\nIf something doesn't work, check log files at `~/.nor-app/logs/myapp/`.\n\n### Testing API\n\nWe recommend using [jsonview](https://chrome.google.com/webstore/detail/jsonview/chklaanhfefbnpoihckbnefhakgolnmc) when working in Google Chrome.\n\n#### Testing API with `curl`\n\nWe also have a curl wrapper `./tools/curl` which makes it easier to work with our API.\n\nEasiest way to get a cookie is from logged in session using Google Chrome's inspector. \n\nCopy the value of `connect.sid`:\n\n```\nnpm config set nor-app:curl_cookie 'connect.sid=your-value-here'\n```\n\nThen you can use the api:\n\n```\n./tools/curl http://localhost:3000/api/\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsendanor%2Fnor-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsendanor%2Fnor-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsendanor%2Fnor-app/lists"}