
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
A utility to interact with remote repositories seamlessly. Supports fetching remotes, getting references/tags/branches from either the remote or the local copy, and copying files.
By default, this library supports GitHub and BitBucket git remotes.
Adding remotes is pretty trivial since all it really needs is a URL.
First you need to create a custom remote object.
View lib/remotes/github.js for an example.
All it needs is a .name and a .url( user, repo => URL) function.
Then you need to set this remote to glitter.remotes[name]=.
See lib/remotes/index.js.
For example:
var local = {
name: 'local',
url: function (user, repo) {
// ignores the `user` field,
// though you could optionally just use the `user` field
// as the repo.
return 'https://localhost:8080/' + repo;
}
};
Glitter.remotes.local =
Glitter.remotes.someAlias = local;
var glitter = Glitter('local', null, 'module');
And you're set!
Where the repositories are cloned to.
Create a new instance. Currently supported remotes are:
github - set your optional GitHub credentials as the GLITTER_GITHUB environmental variablegit clone
Clone the remote repository locally. Does not check whether the repository has already been cloned.
Checks whether a repository is installed.
git fetch -f --all
Update all the branches and references of the local copy.
updated is whether any references were updated.
git show
Lookup a commit sha from a reference.
If remote is true, will .update() from the origin if no references are found.
This requires a local copy of the repository to be installed.
git archive <reference> | tar -x -C <folder>
Copy the repository at reference to folder.
Requires a local copy.
git ls-remote and git show-ref
Gets all HEAD and tag references,
References is an array of references of the form [<name>, <commit sha>].
If remote is true, gets the references directly from the remote.
.getReferences(remote), but only HEAD references are returned.
.getReferences(remote), but only tags are returned.
.getTags(remote), except only valid semantic versions are returned.
It returns an array of [<tag>, <sha>].
Same like .getVersions(), but you pass a semver range,
and it will return the max satisfying range.
It returns a single [<tag>, <sha>] unless null.
FAQs
git abstraction
The npm package glitter receives a total of 6 weekly downloads. As such, glitter popularity was classified as not popular.
We found that glitter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.