npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

couchdb-conflict-manager

v0.0.8

Published

[Demo Video](https://youtu.be/DvJ1gMdjOD4)

Downloads

52

Readme

<couchdb-conflict-manager>

Demo Video

CouchDB Conflict Manager offers a workflow for resolving database conflicts that promotes traceability. Users can monitor the Active Conflicts list, and when a conflict is resolved, conflict revs are deleted from the source database but those conflict revs are also stashed in a separate database as an Archived Conflict and the action is logged in a separate log database. CouchDB Conflict Manager also offers a "Search Active Conflicts" feature that allows full text matching on revs in conflict. Heavy on memory but helpful for finding something that may seem to have gotten lost in a conflict rev.

Install

To integrate into your web project, install via npm and then import from where it makes sense in your app. In an Angular App for example, adding the import statement to polyfills.ts could be a spot.

npm install --save git://github.com/rjsteinert/juicy-ace-editor.git#ES6-modules @polymer/paper-input @polymer/paper-button couchdb-conflict-manager
import '@polymer/paper-input/paper-textarea.js'
import '@polymer/paper-input/paper-input.js'
import '@polymer/paper-button'
import 'juicy-ace-editor/juicy-ace-editor-module.js'
import 'couchdb-conflict-manager/src/couchdb-conflict-manager.js'

Usage

Declare the element in your app and feed it a URL of a database to manage conflicts on along with a username which is not necessarily the couchdb username to tie actions to in the logs.

<style>
    /* Theme */
    * { 
        --mdc-theme-secondary: #333;
    }
</style>
<couchdb-conflict-manager dbUrl="https://user:[email protected]:5984/some-database" username="rjcorwin"></couchdb-conflict-manager>

When the element has been configured to a database, the element will first prompt to install the dependencies on your server. This entails a few new databases and some views.

Develop

  1. Clone this repository.
  2. Set up a CouchDB install with CORS enabled, create a user and a database. e.g. docker run -p 5984:5984 --env "COUCHDB_USER=admin" --env "COUCHDB_PASSWORD=some-secure-password" couchdb
  3. In this repository, add config.json with URL containing credentials to the db and username { "dbUrl": "http://user:pass@localhost:5984/test", "username": "yourName" }.
  4. In this repo, install dependencies with npm install.
  5. Run the dev server with npm start and open http://localhost:8080/. You will find the <couchdb-conflict-manager> element has been templated out for you with your dbUrl configuration from config.json.

Test

We're still finalizing the test harness on this project.