Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @wmfs/tymly-pg-plugin with all npm packages installed. Try it out:

var tymlyPgPlugin = require("@wmfs/tymly-pg-plugin")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@wmfs/tymly-pg-plugin v1.204.0

Replace Tymly's out-the-box memory storage with PostgreSQL


Tymly Package npm (scoped) CircleCI codecov CodeFactor Dependabot badge Commitizen friendly JavaScript Style Guide license

Plugin for TymlyJS that provides PostgreSQL persistence


$ npm install pg-info --save



The audit service allows Tymly to keep a history of change in records.

If you do not want a model to keep a history of changes then add the flag "audit": false to it's json definition. Tymly will store this history in the 'rewind' model.

This service will pick up any file in the /pg-scripts directory of a blueprint with the following file naming convention: audit-{function-name}.sql where {function-name} is the name of your function.

This function will then be applied to all models by default unless they have "audit":false.


Keeps storage of relevant blueprint objects and creates them in the database provided at PG_CONNECTION_STRING.


Before running these tests, you'll need a test PostgreSQL database available and set a PG_CONNECTION_STRING environment variable to point to it, for example:


$ npm test



RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free