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

sencillo

v0.1.3

Published

Bindings to libgit2... de una forma sencilla

Downloads

15

Readme

Sencillo

**NOTE: Sencillo is currently undergoing heavy refactoring/rewriting. It will eventually look quite different from what it does now. the idea is to make good bindings, and also make the simple things (common every day commands) as easy as possible to use.

all this came from a branch of gitteh. this is not gitteh original! thanks @jmendeth!!

Installation

npm install sencillo

Currently, installing Sencillo with NPM means it will compile it's own bundled version of libgit2, even if it's already installed on your system. this is to avoid breaking functionality.

Future

  • compile everything with node-gyp, and skip the cmake step entirely.
  • examples, etc. everything really. shitloads of stuff to do...

OLD DOCS

What?

Node bindings to the excellent libgit2 C library. The bindings cover most of the libgit2 API, however I took some liberties. For example...

  • There's no notion of "oids" like in other libraries, all object ids are referenced by their 40 character SHA1 string.
  • I didn't just write some quick bridge code to access libgit2 stuff, I took the time to distill the libgit2 API into an organized, intuitive set of objects you can work with.
  • I avoided calling into C code where possible. This means that when you're composing a new commit for example, you can set most of the properties of the commit on a JS object as standard properties, then call save() when you're ready. Calling into C++ code is inherently expensive with V8.
  • Although some of it is missing from the repo at the moment, I've written lots of little stress tests to make sure this library doesn't go ahead and segfault your server. Libgit2 isn't thread-safe at all. Hey, no need to thank me, it's all part of the job (it's why I get to wear a cape, and you don't). Essentially this means that you, libgit2, Node, and V8's garbage compiler can all play in the sandpit nicely together.
  • I didn't bother wrapping blob API functions, since all they do is offer helper methods to load files into blobs, save blobs out to files etc. You can do all this with a RawObject, it exposes a Buffer with the contents of any objects in a git repo. Node has cooler filesystem stuff anyway.
  • No animals were harmed during development, except that one little hamst... you know what? Never mind.

Why?

Why not? Libgit2 is an excellent way to work with a Git repository in a well-defined and speedy manner.

Or you could, you know, manually execute git CLI commands and parse stdout. Have fun with that.

How?

Installation can be done via npm.

npm install gitteh

Currently, installing Gitteh via NPM will mean that Gitteh will compile it's own bundled version of libgit2, even if it's already installed on your system. I've done this because libgit2 is releasing quite rapidly and each release is breaking functionality. So while libgit2 is in alpha state, I will be forcing a specific version of libgit2 with each release of Gitteh.

The current version of Gitteh requires libgit2 v0.11.0.

Documentation can be found here.. You should also check out the examples in the examples/ dir in the repo.