Skip to content

Commit d9e98db

Browse files
first commit, minimal config and styling
1 parent 5441843 commit d9e98db

38 files changed

+728
-1234
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/cover.svg

Lines changed: 0 additions & 7 deletions
This file was deleted.

public/favicon.ico

4.06 KB
Binary file not shown.

public/favicon.svg

Lines changed: 19 additions & 6 deletions
Loading

public/hello-friend-ng.png

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/terminal-preview.svg

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/components/FormattedDate.astro

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/components/PostCard.astro

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
---
2-
import FormattedDate from './FormattedDate.astro';
3-
42
export interface Props {
53
post: {
64
slug: string;
75
data: {
86
title: string;
97
description?: string;
10-
pubDate: Date;
118
author?: string;
129
tags?: string[];
1310
image?: string;
@@ -23,19 +20,16 @@ const isExternal = !!post.data.externalLink;
2320
---
2421

2522
<article class="post on-list">
26-
<h2 class="post-title">
23+
<h2 class="post-title" style="padding-top: 15px;">
2724
<a href={postUrl} target={isExternal ? "_blank" : undefined} rel={isExternal ? "noopener" : undefined}>
2825
{post.data.title}
2926
</a>
3027
</h2>
31-
<div class="post-meta">
32-
<time class="post-date">
33-
<FormattedDate date={post.data.pubDate} />
34-
</time>
35-
{post.data.author && (
28+
{post.data.author && (
29+
<div class="post-meta">
3630
<span class="post-author">{post.data.author}</span>
37-
)}
38-
</div>
31+
</div>
32+
)}
3933
{post.data.tags && post.data.tags.length > 0 && (
4034
<span class="post-tags">
4135
{post.data.tags.map((tag, index) => (
@@ -52,12 +46,16 @@ const isExternal = !!post.data.externalLink;
5246
)}
5347
{post.data.description && (
5448
<div class="post-content">
55-
<p>{post.data.description}</p>
49+
<p>
50+
<a href={postUrl} target={isExternal ? "_blank" : undefined} rel={isExternal ? "noopener" : undefined}>
51+
{post.data.description}
52+
</a>
53+
</p>
5654
</div>
5755
)}
5856
<div>
5957
<a href={postUrl} class="read-more button inline" target={isExternal ? "_blank" : undefined} rel={isExternal ? "noopener" : undefined}>
60-
[Read more]
58+
See the prompt
6159
</a>
6260
</div>
6361
</article>

src/content.config.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import { defineCollection, z } from 'astro:content';
22

3-
const posts = defineCollection({
3+
const library = defineCollection({
44
type: 'content',
55
schema: z.object({
66
title: z.string(),
77
description: z.string().optional(),
8-
pubDate: z.coerce.date(),
9-
updatedDate: z.coerce.date().optional(),
108
author: z.string().optional(),
119
image: z.string().optional(),
10+
icon: z.string().optional(),
1211
externalLink: z.string().optional(),
1312
tags: z.array(z.string()).default([]),
1413
draft: z.boolean().default(false),
1514
}),
1615
});
1716

18-
export const collections = { posts };
17+
export const collections = { library };
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
title: API Network Interception
3+
description: A guide for intercepting and analyzing API network requests with Playwright.
4+
icon: 🌐
5+
tags: ["AI", "Checkly"]
6+
---
7+
8+
If you’re monitoring back end APIs or performing request interception, it can be useful to know exactly what APIs the page relies on. Use the following prompt to analyze network traffic with your AI agent.
9+
10+
```markdown
11+
You are a Playwright network analysis expert specializing in TypeScript, frontend development, and Playwright end-to-end testing.
12+
13+
You are given a scenario and need to perform network analysis on a web page to identify API dependencies and network behavior.
14+
15+
## Instructions
16+
17+
- Use the tools provided by the Playwright MCP server to navigate to the specified website
18+
- Monitor and intercept all network requests during page load and user interactions
19+
- Analyze the network traffic to identify:
20+
- API endpoints being called
21+
- Request methods (GET, POST, PUT, DELETE, etc.)
22+
- Response status codes and timing
23+
- Request/response headers and payloads
24+
- Third-party services and external dependencies
25+
- Categorize network calls by type (API calls, static assets, analytics, etc.)
26+
- Identify any failed requests or performance bottlenecks
27+
- Only after completing the analysis, provide a comprehensive report of all API dependencies and network behavior
28+
29+
## Analysis Output
30+
31+
Provide the following information:
32+
1. **API Endpoints**: List all API calls with methods and response codes
33+
2. **External Dependencies**: Third-party services, CDNs, analytics
34+
3. **Performance Metrics**: Request timing and any slow-loading resources
35+
4. **Error Analysis**: Failed requests and potential issues
36+
5. **Security Observations**: Any insecure requests or potential vulnerabilities
37+
38+
## User Input
39+
40+
Analyze the network traffic and API dependencies of [YOUR-WEBSITE].com
41+
```

0 commit comments

Comments
 (0)