This repository hosts community snippets for the Threadline browser extension.
/
├── index.json # Metadata for all snippets
└── snippets/
├── snippet-id-en.json # English version
├── snippet-id-nl.json # Dutch version
└── ...
Create JSON files in /snippets/ with the naming convention: {slug}-{lang}.json
{
"id": "my-snippet-en",
"title": "My Snippet Title",
"description": "A brief description (shown in browse list).",
"content": "The full prompt content that gets inserted...",
"category": "productivity",
"tags": ["tag1", "tag2"],
"language": "en",
"creator": {
"name": "Your Name",
"url": "https://your-website.com"
},
"createdAt": 1735084800000,
"updatedAt": 1735084800000
}Add an entry to the snippets array in index.json:
{
"id": "my-snippet-en",
"title": "My Snippet Title",
"description": "A brief description.",
"category": "productivity",
"tags": ["tag1", "tag2"],
"language": "en",
"creator": {
"name": "Your Name",
"url": "https://your-website.com"
},
"createdAt": 1735084800000,
"updatedAt": 1735084800000
}Update updatedAt at the root of index.json to trigger cache refresh.
productivity- General productivity promptscoding- Programming and developmentwriting- Writing and editing assistanceanalysis- Data and content analysis
Use ISO 639-1 codes as suffix:
-enfor English-nlfor Dutch
All timestamps are Unix milliseconds. Use Date.now() in JavaScript or an online converter.
- Enable GitHub Pages in Settings → Pages
- Select branch:
main, folder:/ (root) - Your API will be available at:
https://{username}.github.io/{repo}/index.jsonhttps://{username}.github.io/{repo}/snippets/{id}.json