This is the Guile implementation of Spritely Goblins, a distributed object programming environment. Goblins provides an intuitive security model, automatic local transactions for locally synchronous operations, and an easy to use and efficient asynchronous programming for encapsulated objects which can live anywhere on the network. https://spritely.institute/goblins/
  • Scheme 91.7%
  • Tree-sitter Query 6.3%
  • JavaScript 1%
  • Makefile 0.7%
  • M4 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
David Thompson 6abd6be0eb
All checks were successful
/ no-tabs-please (push) Successful in -9s
/ basic-hoot-check (push) Successful in 1m19s
/ distcheck (push) Successful in 2m6s
/ ocapn-test-suite (push) Successful in 2m17s
Add a note about our Guix channel to the README.
2026-11-25 10:26:11 -05:00
.forgejo/workflows Remove test driver from Hall and use default Autotools driver. 2026-11-20 13:46:15 -05:00
doc Remove op:get, op:index, and op:untag 2026-11-24 16:58:54 +01:00
examples Add end-to-end encrypted relay netlayer 2026-10-15 12:23:29 +02:00
goblins Remove op:get, op:index, and op:untag 2026-11-24 16:58:54 +01:00
hoot-ffi Add the hoot bindings for noise support 2026-10-08 19:51:28 +02:00
js Add noise netlayer 2026-10-08 19:51:28 +02:00
misc Many many many spelling corrections 2025-09-18 14:50:15 +02:00
pre-goblins Rename a OCapN node to a peer 2025-06-30 15:28:50 +02:00
tests Remove op:get, op:index, and op:untag 2026-11-24 16:58:54 +01:00
.gitignore Add slightly cursed goblins.js wrapper. 2025-02-19 15:02:41 -05:00
AUTHORS Add Jessica to AUTHORS 2022-06-24 11:53:12 -04:00
bootstrap.sh Remove more appearances of hall 2022-05-19 13:28:51 -04:00
ChangeLog Change references and links from gitlab to codeberg 2025-03-20 14:15:18 +01:00
configure.ac Address feedback on noise netlayer 2026-10-08 19:51:28 +02:00
COPYING Switch which file is license and which is symlink 2022-05-13 12:42:45 -04:00
coverage.scm Replace tab indent with space in all .scm files 2024-04-08 19:30:51 +02:00
goblins.scm Remove op:get, op:index, and op:untag 2026-11-24 16:58:54 +01:00
guix.scm Update guile noise version 2026-10-15 16:04:19 +02:00
HACKING Move hacking stuff into readme 2022-02-05 18:15:00 -05:00
LICENSE.txt Switch which file is license and which is symlink 2022-05-13 12:42:45 -04:00
live-guile.sh Remove manifest.scm 2026-10-07 21:01:08 +02:00
Makefile.am Do not build relay netlayer and utils if guile-noise is missing. 2026-11-24 11:55:31 -05:00
NEWS Add NEWS entry. 2026-04-21 08:33:54 -04:00
pre-inst-env.in Remove hall, retain its bootstrapped files. 2022-05-19 13:12:13 -04:00
README guile-hall boilerplate 2022-01-25 14:57:36 -05:00
README.org Add a note about our Guix channel to the README. 2026-11-25 10:26:11 -05:00

Spritely Goblins

It is both Spritely's core distributed networked technology, and general enough to be used broadly.

Spritely, and Spritely Goblins, are developed under the stewardship of the Spritely Institute. Support Spritely!

Goblins is a distributed programming system with local transactions and following object capability security principles. See the manual for more details.

It's very early, so I'd caution against using it for anything "production-facing" quite yet. :)

Getting Goblins

Using a package manager

Goblins is available in the following distributions:

GNU Guix

guix install guile-goblins

For a bleeding edge Goblins package, install the Spritely Guix channel and run:

guix install guile-goblins-next

Homebrew (MacOS)

brew tap aconchillo/guile
brew install guile-goblins

Building from a release tarball

If you're reading this file after downloading and extracting a release tarball, then these build instructions are for you!

Build requirements:

Additional runtime requirements:

  • Tor (any recent version) if you plan to use Onion netlayers

Goblins uses the GNU build system. Once the required dependencies have been installed, Goblins can be built by running the following commands:

  ./configure GUILE=$(which guile)
  make
  sudo make install

Note that ./configure uses a default prefix. You can check the load path with guile -c "(display %load-path)";. E.g. if this shows (/usr/local/share/guile/3.0 /usr/local/share/guile/site/3.0 /usr/local/share/guile/site /usr/local/share/guile), you can set the correct prefix with ./configure GUILE=$(which guile) --prefix=/usr/local.

Contributing

Checking out and building Goblins

By far the easiest way to hack on goblins is to develop using Guix.

First check out Goblins:

  cd /my/projects/dir/
  git clone https://codeberg.org/spritely/goblins.git
  cd goblins

Now we can use guix shell to make a useful environment for us to hack in, then run the autotools stuff.

  guix shell
  # In the guix environment, run:
  ./bootstrap.sh && ./configure && make check

If the tests pass, you're ready to go! You can now hack this project's files to your heart's content, whilst testing them from your guix environment.

(You can also run guix environment with --pure if it accidentally finds your system guile.)

Setup for hacking on Goblins

Editor setup

You're going to want/need:

Then, at minimum, you'll want to put in your .emacs:

(show-paren-mode 1)  ; Match parentheses

However you probably also want some combination of:

Now you'll have a nice hacking setup! Be sure to read the Geiser manual.

Running Guile with the path setup right

Simply run:

  ./live-guile.sh

Follow the instructions at the top, which should look something like:

  ***********************************************
  ** Setting up Guile to listen on a socket... **
  **                                           **
  ** Connect in emacs via:                     **
  **   M-x geiser-connect-local <RET>          **
  **       guile <RET>                         **
  **       /tmp/guile-goblins.sock <RET>       **
  ***********************************************

Sounds like good advice! Give that a try!

TEMPORARY: Live hacking "fix"

The traditional way to hack Guile is to use Geiser, both evaluating from some foo.scm file/buffer with more "permanent" code via, for example, the C-x C-e / C-x C-b / C-x C-k commands to evaluate an expression, evaluate a whole buffer, or compile a buffer's content, and switching back and forth between that and the (usually called *Geiser Guile REPL*) experimental-hacking-and-debugging REPL.

This works with Goblins, but Geiser does some things to temporarily redirect output/error ports when doing the file/buffer oriented evaluation, and unfortunately this results in Goblins vats potentially breaking due to spawning a separate thread which inherit these temporarily redirected ports, which then are closed when the evaluation succeeds. We have a long-term plan to deal with this, but in the meanwhile, whenever you start a Guile / Geiser hacking session, first execute:

  > (use-modules (goblins))

… from the *Geiser Guile REPL*. Otherwise vats may mysteriously "hang". We know this is an annoyance! It'll be fixed soon!

Running test coverage

You should check any changes you make are tested. To help with this there is a coverage tool you can run. You can run it by:

guile -L `pwd` --debug coverage.scm

NB: if you do not specify the –debug flag, no coverage data will be generated.

This will generate a lcov.info file which you can then generate a coverage report using the `genhtml` command from the lcov tools (you may wish to look into the -o option as it generates lots of files). The coverage currently includes certain guile modules which you can ignore. E.g.

  mkdir /tmp/goblins-coverage
  genhtml -o /tmp/goblins-coverage/ lcov.info
  # There should now exist /tmp/goblins-coverage/index.html

OCapN Test suite

If you're working on anything related to OCapN in Goblins, it's good to ensure the test suite still passes. The test suite and how to run it is located here.

The test suite requires implementing certain objects and exporting them at specific sturdyrefs. This has been done for you and you can find those implementations within the tests/ocapn-test-suite.scm. To run this you should run:

  $ ./pre-inst-env guile tests/ocapn-test-suite.scm
Connect test suite to: <sturdyref>

This optionally allows you to specify the name of a netlayer to run on, so far the two names supported are tcp-testing-only and onion. The default when neither is specified is tcp-testing-only.

Copy the sturdyref it gives you and then in the OCapN test suite you can run it with this command:

  $ python3 test_runner.py --captp-version=1.0 <sturdyref>

This typically takes a minute or so to run all the tests.

AI policy

We do not accept pull requests or issue reports generated by large language models, either in whole or in part.

A note on licensing

Spritely Goblins is released under Apache v2.

Note that this is not anti-copyleft positioning; copyleft is a viable strategy for preserving user freedom. In the case of Spritely, we are aiming for a wide adoption of ideas and protocols, so it's a different strategic choice.

Note that we do not waive the attribution requirements of our licenses, including for ingestion into machine learning models. If you train on and produce code derived from our work, you must uphold all attribution requirements in produced works.