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

benchling-api-unofficial

v0.0.1

Published

An unofficial node.js module for accessing the [benchling](https://benchling.com/) API.

Downloads

8

Readme

An unofficial node.js module for accessing the benchling API.

Installation

npm install benchling-api-unofficial

Setup

First you need an API key. Unfortunately the only way to get one currently seems to be to ask benchling support. Log in to benchling and use the bottom right icon to open a chat then ask support for API access. They can take a few days to reply.

Once they enable API access log onto benchling once again, then go to your settings page by clicking the left bottom icon and find the 'settings' link near the top of the pop-up. Scroll to the bottom and you'll see a button called Generate API key. Click it and copy the key string.

Install dependencies and create a settings.js file:

npm install # <- only required if you cloned from git
cp settings.js.example settings.js

Edit the settings.js file setting the apiKey property to the API you copied from the benchling settings page.

Now you can try an example, e.g. to list all of your benchling sequences:

./examples/sequence_list.js

Usage

Here's an example of listing all folders containing the string 'mySequences':

var benchling = require('benchling-api-unofficial')(1, '<myApiKey>');

benchling.folder.list({query: 'mySequences'}, function(err, data) {
  if(data) return console.error(err);

  console.log(data);
});

API

Currently only a subset of the full API is implemented.

All functions return one or two arguments: err, [data].

The following functions are available:

sequence

  • sequence.list([opts], cb)
  • sequence.get(id, [opts], cb)
  • sequence.create(obj, [opts], cb)
  • sequence.update(id, obj, [opts], cb)
  • sequence.del(id, [opts], cb)

folder

  • folder.list([opts], cb)
  • folder.get(id, [opts], cb)
  • folder.create(obj, [opts], cb)
  • folder.update(id, obj, [opts], cb)
  • folder.del(id, [opts], cb)

See the official benchling API documentation for more info.

Legal

Copyright 2017 BioBricks Foundation.

License: AGPLv3.

Benchling is not in any way affiliated with the BioBricks Foundation nor this git project nor any of the authors of this project and neither the BioBricks Foundation nor this git project is in any way endorsed by Benchling.