GithubHelp home page GithubHelp logo

dalten-collective / keep Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 1.33 MB

Back up your Urbit

License: GNU Affero General Public License v3.0

hoon 29.82% Shell 2.23% JavaScript 1.56% HTML 0.59% Vue 38.97% TypeScript 21.40% CSS 5.44%

keep's Introduction

keep

Back up your Urbit agents

Architecture

Keep consists of two parts:

  • An agent transformer in keep/lib.hoon, i.e. a function from an agent:gall to an agent:gall. It transforms a regular agent into one that can be backed up.
  • An agent %keep, which stores backups passed to it, as well as controls the transformer on other agents, and stores settings/logs related to this, such as repeating backups, last time an agent was backed up and so on. Architecturally, many of these options would be much simpler to store in the transformer, but due to issues with middleware and agent transformers, we need to keep the transformer stateless. We hope that this can be changed in the future.

Development Setup

You will need to create a fakezod and install the agent. Run bin/setup.sh in a separate process and follow the instructions there. No changes will be made on your behalf.

Once the agent is installed, proceed to setting up the interface (below).

Interface

  • Vue 3
  • Typescript
  • Vite (for proxying to the urbit web interface)
  • NPM (for package management, handled by bin scripts)

Setup

npm-wrapping scripts are provided in the bin/ directory. Follow the steps below to set up your local development environment:

  • bin/install-js-dependencies.sh
  • Have your fakeship from above running. Note the web interface port (ie. dojo> http: web interface live on http://localhost:8080)
  • Get your login code from the fakeship (dojo> +code)
  • Copy interface/.env.example to interface/.env (not checked into git) and edit the port there to reflect the web interface on your fakeship.
  • bin/serve-interface.sh
  • (For running multiple ships in multiple vite instances, you can bypass the bin script and run npm directly from the repo root, passing the ENV variable for the ship's interface a-la: KEEP_URBIT_TARGET='http://localhost:8081' npm run serve --prefix interface)

The fakeship web interface should now be accessible at http://localhost:3000 (provided by Vite). When you first visit the URL you should be prompted for your +code from above.

The Vue interface for this application will be served from http://localhost:3000/apps/keep/ (note the trailing slash!)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.