# Fidget Data Storage

Fidgets pull data from various different streams and might need to save some of that data.

Data that Fidgets need to save is stored in a database. For the time being, this is stored in a centralized Supabase storage bucket, but down the line this data will be stored in a decentralized manner on IPFS/Arweave.

Data that Fidgets store can be separated into two categories: public and private. Public data is readable by all users while private data can only be read by a specific user.&#x20;

Here's some examples:

* A Fidget that displays Bob's profile picture will place that profile picture into a public bucket, so that all other users that view Bob's profile can see the picture.&#x20;
* A Fidget that allows Bob to sign into Coinbase to purchase more ETH will keep Bob's API key in a private bucket, so that no other users can access that key. Only Bob.

To use these data setters, import these functions from `shared/data/fidgetData.ts:`

```typescript
  readPublicFidgetData
  writePublicFidgetData
  readPrivateFidgetData
  writePivateFidgetData
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nounspace.com/nounspace-alpha/fidgets/fidget-data-storage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
