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

datomic-free

v0.1.3-1

Published

npm use of @cldwalker's datomic-free wrapper

Downloads

26

Readme

Description

A wrapper around Datomic Free that makes it easy to start Datomic Free transactors and upgrade to newer versions.

Installation

For first time users:

With NPM (Node.js)

NPM

This npm install datomic-free also auto-installs the bon dependency, globally.

Build Status

If datomic-free doesn't work - set / export $NODE_PATH to the dir containing your global node_modules. Run dirname $(which bon) to find out where they go.

NOTE: please choose either the npm approach above or the manual one below. If you do both, the script may not run as it should. Verify with type -a datomic-free for which there should be only one datomic-free.

If unhappy with this npm distribution just npm rm -g datomic-free.

Manually (zsh)

$ git clone https://github.com/cldwalker/datomic-free.git ~/.datomic-free
$ ~/.datomic-free/bin/datomic-free start

# To make it easy to use `datomic-free` add an alias to your bashrc/zshrc
$ echo 'alias datomic-free=$HOME/.datomic-free/bin/datomic-free' >> ~/.zshrc
$ . ~/.zshrc

Upgrade

The node package versions are independent of datomic-free releases or Datomic itself. Just like with the manual install, the code is cloned to ~/.datomic-free/ and upgrades would be manual too.

Some day there may be a datomic-free upgrade command to git pull as a convenience.

Upgrading Datomic is called datomic-free update, covered in the Usage section below.

Usage

$ datomic-free start

To specify transactor.properties, only with an absolute path:

$ datomic-free start /absolute/path/to/transactor.properties

To migrate existing data/ to datomic-free:

$ rm -rf ~/.datomic-free/data
$ cp -R $OLD_DATOMIC_REPO/data  ~/.datomic-free/

Whenever you'd like to update to the latest datomic-free:

$ datomic-free update

This new version is now the active datomic-free version. Since datomic-free keeps data outside of versions in ~/.datomic-free/data, you use the same data across versions by default.

To update to a specific version, pass a version:

$ datomic-free update 0.8.3627

To use another version you've already installed:

$ datomic-free use 0.8.3646

Further

See datomic-free's TODO section about possible improvements. Some of these have already been implemented with dbin which makes it possible to run both datomic-free and datomic-pro servers - using optional JSON configuration.

License

See LICENSE.txt. This project is in no way affiliated with Datomic (Metadata Partners, LLC).

Credits

  • Thanks to @cldwalker for the datomic-free script
  • Thanks to @richhickey and @stuarthalloway for datomic
  • Thanks to @rkneufeld for the downloading function of the shell script
  • Bug fixes: @sherbondy