
Security News
GitHub Actions Pricing Whiplash: Self-Hosted Actions Billing Change Postponed
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.
svelte-git-cms
Advanced tools
- It uses Github issues as a CMS - All issues and labels are only pulled once when your website is visited first time after being deployed. - Anytime you create or update a issue or label it get's synced using github webhook - All subsequent visits to you
Install the package in your sveltekit app
npm i -D svelte-git-cms
Create src/hooks.js with following content
import { githubSync } from 'svelte-git-cms'
/** @type {import('@sveltejs/kit').Handle} */
export async function handle({ event, resolve }) {
await githubSync({
github_repo: 'ak4zh/svelte-git-cms', // your github repo
github_token: process.env.GITHUB_TOKEN // your github token
})
const response = await resolve(event);
return response;
}
githubSync params
{username}/{repo-name}+)+page)*to allow all authors-{issue-number} to ensure unique slugNotes
+ prefix you can change it by set it to any other character or leave it empty for no prefix. In that case all labels will be used as tags.Create an webhook route for github, so github can inform your app when issues or labels change.
a) Create webhook endpoint src/routes/api/git/webhook/+server.js
import { handleWebhook } from 'svelte-git-cms';
/** @type {import('./$types').RequestHandler} */
export async function POST({ request }) {
return handleWebhook(request)
}
b) Go to your github repo Settings > Webhooks > Add webhook and create a new webhook with following config:
https://YOUR_PRODUCTION_DOMAIN/api/git/webhookapplication/jsonIssues and LabelsCreate +page.server.js in the route you want to show the posts / labels.
a) src/routes/+page.server.js
import { labels, posts } from 'svelte-git-cms';
import { get } from 'svelte/store';
/** @type {import('./$types').PageServerLoad} */
export async function load({ params }) {
return {
posts: get(posts),
labels: get(labels)
}
}
b) src/routes/+page.svelte
<script>
/** @type {import('./$types').PageServerData} */
export let data;
</script>
{JSON.stringify(data)}
The idea of using github as CMS is inspired from swyxkit
FAQs
- It uses Github issues as a CMS - All issues and labels are only pulled once when your website is visited first time after being deployed. - Anytime you create or update a issue or label it get's synced using github webhook - All subsequent visits to you
We found that svelte-git-cms demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
GitHub postponed a new billing model for self-hosted Actions after developer pushback, but moved forward with hosted runner price cuts on January 1.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.