Skip to content

Commit af00111

Browse files
committed
docs: project introduction
1 parent f03ae8e commit af00111

File tree

2 files changed

+93
-19
lines changed

2 files changed

+93
-19
lines changed

README.md

Lines changed: 83 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,100 @@
1-
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
1+
# Source Map Online Parser
2+
3+
<div align="center">
4+
<img src="design/logo.svg" alt="Source Map Online Parser Logo" width="200"/>
5+
<br/>
6+
<p><em>Online JavaScript Source Map parser, supporting single file parsing and error stack parsing</em></p>
7+
</div>
8+
9+
## Features
10+
11+
- 🔍 **Source Map Parsing**: Parse and analyze JavaScript source maps online
12+
- 📝 **Error Stack Parsing**: Convert minified error stacks to original source locations
13+
- 🎯 **Single File Support**: Parse individual source map files
14+
- 🌙 **Dark Mode**: Support for both light and dark themes
15+
- 📱 **Responsive Design**: Works seamlessly on desktop and mobile devices
16+
- 🚀 **Fast & Efficient**: Built with Next.js and optimized for performance
217

318
## Getting Started
419

5-
First, run the development server:
20+
### Prerequisites
21+
22+
- Node.js >= 22.15.0
23+
- pnpm >= 10.11.0
24+
25+
### Installation
26+
27+
1. Clone the repository:
28+
```bash
29+
git clone https://github.com/whale4113/sourcemap-online
30+
cd sourcemap-online
31+
```
32+
33+
2. Install dependencies:
34+
```bash
35+
pnpm install
36+
```
637

38+
3. Start the development server:
739
```bash
8-
npm run dev
9-
# or
10-
yarn dev
11-
# or
1240
pnpm dev
13-
# or
14-
bun dev
1541
```
1642

17-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
43+
4. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
44+
45+
## Development
46+
47+
### Project Structure
48+
49+
```
50+
sourcemap-online/
51+
├── app/ # Next.js app directory
52+
├── components/ # React components
53+
├── lib/ # Utility functions and shared logic
54+
├── public/ # Static assets
55+
└── styles/ # Global styles
56+
```
57+
58+
### Available Scripts
59+
60+
- `pnpm dev` - Start development server
61+
- `pnpm build` - Build for production
62+
- `pnpm start` - Start production server
63+
- `pnpm lint` - Run ESLint
64+
65+
### Tech Stack
66+
67+
- [Next.js](https://nextjs.org/) - React framework
68+
- [TypeScript](https://www.typescriptlang.org/) - Type safety
69+
- [Tailwind CSS](https://tailwindcss.com/) - Styling
70+
- [Zustand](https://github.com/pmndrs/zustand) - State management
71+
- [source-map-js](https://github.com/7rulnik/source-map-js) - Source map parsing
72+
73+
## Contributing
1874

19-
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
75+
We welcome contributions! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
2076

21-
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
77+
### How to Contribute
2278

23-
## Learn More
79+
1. Fork the repository
80+
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
81+
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
82+
4. Push to the branch (`git push origin feature/amazing-feature`)
83+
5. Open a Pull Request
2484

25-
To learn more about Next.js, take a look at the following resources:
85+
### Development Guidelines
2686

27-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
87+
- Follow the existing code style
88+
- Write meaningful commit messages
89+
- Add tests for new features
90+
- Update documentation as needed
2991

30-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
92+
## License
3193

32-
## Deploy on Vercel
94+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
3395

34-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
96+
## Acknowledgments
3597

36-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
98+
- [Next.js](https://nextjs.org/) for the amazing framework
99+
- [source-map-js](https://github.com/7rulnik/source-map-js) for the source map parsing library
100+
- All contributors who have helped shape this project

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
"name": "sourcemap-online",
33
"version": "0.1.0",
44
"private": true,
5+
"description": "Online JavaScript Source Map parser, supporting single file parsing and error stack parsing, helping developers quickly locate source code positions.",
6+
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/whale4113/sourcemap-online.git"
10+
},
11+
"homepage": "https://github.com/whale4113/sourcemap-online#readme",
12+
"bugs": {
13+
"url": "https://github.com/whale4113/sourcemap-online/issues"
14+
},
515
"scripts": {
616
"dev": "next dev --turbopack",
717
"build": "next build",

0 commit comments

Comments
 (0)