{"id":13508096,"url":"https://github.com/thlorenz/level-json-edit","last_synced_at":"2025-03-29T20:14:15.944Z","repository":{"id":10724660,"uuid":"12976486","full_name":"thlorenz/level-json-edit","owner":"thlorenz","description":"Taking editing json to the next level with multilevel.","archived":false,"fork":false,"pushed_at":"2013-10-14T18:18:24.000Z","size":380,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-05T12:46:18.899Z","etag":null,"topics":[],"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/thlorenz.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}},"created_at":"2013-09-20T15:09:21.000Z","updated_at":"2013-10-14T18:18:24.000Z","dependencies_parsed_at":"2022-09-02T06:20:46.253Z","dependency_job_id":null,"html_url":"https://github.com/thlorenz/level-json-edit","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Flevel-json-edit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Flevel-json-edit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Flevel-json-edit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thlorenz%2Flevel-json-edit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thlorenz","download_url":"https://codeload.github.com/thlorenz/level-json-edit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246237436,"owners_count":20745348,"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":[],"created_at":"2024-08-01T02:00:47.920Z","updated_at":"2025-03-29T20:14:15.925Z","avatar_url":"https://github.com/thlorenz.png","language":"JavaScript","readme":"# level-json-edit [![build status](https://secure.travis-ci.org/thlorenz/level-json-edit.png)](http://travis-ci.org/thlorenz/level-json-edit)\n\nTaking editing json to the next level with multilevel.\n\n## Status\n\nFairly well tested, but still **in beta**.\n\nLots of API may change (especially event names), and missing documentation needs to be added.\n\nAdditionally the example is currently incomplete.\n\n## Installation\n\n    npm install level-json-edit\n\n## API\n\n### ServerSide\n\n####*function (server, config, authentication)*\n\n```\n/**\n * Initializes server side end of level-json-edit.\n *\n * @name exports\n * @function\n * @param server\n * @param config {Object} with the following properties:\n *  - dbPath {String} path to level db\n *  - isIndex {Function} should return true if prefix is for a sublevel that is an index, otherwise false\n *  - dataPrefix {String} the prefix of the sublevel that contains the json data\n *  - endpoint {String} ('/engine') any common string that server and client use to connect multilevel\n *  - mixin {Function} (optional) mixin extra functionality into the db, i.e. install a level-live-stream\n *  @param authentication {Object} passed to multilevel server creation (https://github.com/juliangruber/multilevel#authentication)\n *  - auth: {Function} to authenticate user\n *  - access: {Function} called when db is accessed with particular method, throw Error if user is not authorized\n */\n```\n\n### Client Side\n\n####*function (opts, containers)*\n\n```\n/**\n * Initializes the client side part of level-json-editor\n * \n * @name exports\n * @function\n * @param opts {Object}\n *  - isIndex {Function} should return true if sublevel is an index, false if not\n *  - valiate {Function} (optional) return false if the data about to be saved is not valid\n *, - dataPrefix {String} the prefix of the sublevel holding the data\n * @param containers {Object}\n *  - indexes {DOMElement} will hold the db indexes\n *  - editor {DOMElement} will hold the actual data editor\n *  - saveButton {DOMElement} will hold the button which will save the edited data\n *  @return {Object} with the following properties:\n *    - on {Function} allows subscribing to various events\n *    - indexes {Object} the indexes viewer (json-editor)\n *    - editor {Object} the data editor (json-editor)\n *    - refreshIndexes {Function} refreshes the indexes view with the current data in index sublevels and calls back when finished\n */\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":["leveldb related"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthlorenz%2Flevel-json-edit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthlorenz%2Flevel-json-edit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthlorenz%2Flevel-json-edit/lists"}