Skip to content

An unofficial client for the Deta Space API, implementing the TompHTTP Bare Server.

Notifications You must be signed in to change notification settings

Endercass/deta-space-bare-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deta Bare Client

API Wrapper for Deta Space, implementing the TompHTTP specifications

Usage

See the Authentication Doc for more information on how to get your access token.

bare
  .createBareClient(`http://${window.location.host}/bare/`)
  .then(async (client) => {
    const spaceFetch = detaBareClient.fetchFn(
      prompt("Deta Space Token"),
      client
    );
    spaceFetch("/apps")
      .then((res) => res.json())
      .then((payload) => {
        console.log(payload);
      })
      .catch((err) => {
        console.error(err);
      });
  });

About

An unofficial client for the Deta Space API, implementing the TompHTTP Bare Server.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 91.6%
  • HTML 8.4%