Skip to content

ASNNetworks/threadline-community

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Threadline Community Snippets

This repository hosts community snippets for the Threadline browser extension.

Structure

/
├── index.json              # Metadata for all snippets
└── snippets/
    ├── snippet-id-en.json  # English version
    ├── snippet-id-nl.json  # Dutch version
    └── ...

Adding a New Snippet

1. Create the snippet file(s)

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
}

2. Add to index.json

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
}

3. Update the index timestamp

Update updatedAt at the root of index.json to trigger cache refresh.

Categories

  • productivity - General productivity prompts
  • coding - Programming and development
  • writing - Writing and editing assistance
  • analysis - Data and content analysis

Languages

Use ISO 639-1 codes as suffix:

  • -en for English
  • -nl for Dutch

Timestamps

All timestamps are Unix milliseconds. Use Date.now() in JavaScript or an online converter.

GitHub Pages Setup

  1. Enable GitHub Pages in Settings → Pages
  2. Select branch: main, folder: / (root)
  3. Your API will be available at:
    • https://{username}.github.io/{repo}/index.json
    • https://{username}.github.io/{repo}/snippets/{id}.json

About

Community Snippets for Threadline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors