1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { makeHtmlPage } from "https://esm.town/v/xkonti/makeHtmlPage";
import { markdownToHtml } from "https://esm.town/v/xkonti/markdownToHtml";
export const getPolicy = (apiName: string, contactEmail: string, lastUpdated: string) => {
if (apiName == null || apiName === "") apiName = "Memory API";
if (contactEmail == null || contactEmail === "") throw new Error("Contact email must be specified");
if (lastUpdated == null || lastUpdated === "") throw new Error("The last updated date must be specified");
const body = markdownToHtml(
`# ${apiName} Privacy Policy
Last Updated: ${lastUpdated}
## 1. Introduction
Welcome to ${apiName}. This privacy policy outlines our practices regarding the collection, use, and sharing of information through ${apiName}.
## 2. Data Collection and Use
${apiName} allows users to store, retrieve, list, and delete data. The data stored can be of any type as inputted by the user. We do not restrict or control the content of the data stored. ${apiName} serves as a public database accessible to anyone with an
## 3. User Restrictions
${apiName} does not impose age or user restrictions. However, users are advised to consider the sensitivity of the information they share.
## 4. Global Use
Our API is accessible globally. Users from all regions can store and access data on ${apiName}.
## 5. Data Management
Given the nature of ${apiName}, there are no user accounts or user identification measures. The API operates like a public database where data can be added, viewed, and deleted by any user. Users should be aware that any data they input can be accessed, mo
## 6. Data Security
${apiName} is protected by an API key; beyond this, there is no specific data security measure in place. Users should not store sensitive, personal, or confidential information using ${apiName}. We assume no responsibility for the security of the data stor
## 7. Third-Party Involvement
The API code is run and data is stored by val.town. They act as a third-party service provider for ${apiName}.
## 8. Changes to This Policy
We reserve the right to modify this privacy policy at any time. Any changes will be effective immediately upon posting on our website.
## 9. Contact Us
For any questions or concerns regarding this privacy policy, please contact us at ${contactEmail}.`,
);
return makeHtmlPage("Privacy policy", body);
};